ri

package
v0.0.0-...-aed5015 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

rigo/definitions.go

rigo/ri/handles.go

rigo/ri/handles.go

rigo/ri/handles.go

rigo/ri/handles.go

Index

Constants

View Source
const (
	MinimalBloomFilterSize  int = 16
	DefaultBloomFilterSize  int = 512 * 3
	BloomFilterDoubleHashI0 int = 123
	BloomFilterDoubleHashI1 int = 456
)
View Source
const (
	ImplementationVersion = "3.2.1 November 2005"
	Major                 = 3
	Minor                 = 2
	Patch                 = 1
)
View Source
const (
	PARAMETERLIST RtToken = "_PARAMETERLIST_"
	DEPTH         RtName  = "_DEPTH_"
	DEBUGBARRIER  RtName  = "-->"
)
View Source
const (
	BesselFilter              RtFilterFunc = "bessel"
	BlackmanHarrisFilter      RtFilterFunc = "blackman-harris"
	BoxFilter                 RtFilterFunc = "box"
	TriangleFilter            RtFilterFunc = "triangle"
	DiskFilter                RtFilterFunc = "disk"
	CatmullRomFilter          RtFilterFunc = "catmull-rom"
	GaussianFilter            RtFilterFunc = "gaussian"
	MitchellFilter            RtFilterFunc = "mitchell"
	LanczosFilter             RtFilterFunc = "lanczos"
	SeperableCatmullRomFilter RtFilterFunc = "seperable-catmull-rom"
	SincFilter                RtFilterFunc = "sinc"

	ReadArchiveCallback RtArchiveCallbackFunc = "ReadArchive"

	Uniform  RtToken = "uniform"
	Vertex   RtToken = "vertex"
	Varying  RtToken = "varying"
	Constant RtToken = "constant"

	ProcDelayedReadArchive RtProcSubdivFunc = "DelayedReadArchive"
	ProcRunProgram         RtProcSubdivFunc = "RunProgram"
	ProcDynamicLoad        RtProcSubdivFunc = "DynamicLoad"

	Proc2DelayedReadArchive RtProc2SubdivFunc = "DelayedReadArchive"
	Proc2DynamicLoad        RtProc2SubdivFunc = "DynamicLoad"

	SimpleBound RtProc2BoundFunc = "Bound"
	DSOBound    RtProc2BoundFunc = "DSOBound"

	ProcFree RtProcFreeFunc = "free"

	StructuralHint RtName = "##"
	RIBStructure   RtName = "##RenderMan RIB-Structure 1.1"
)
View Source
const (
	RIBVersion                RtFloat = 3.04
	PrototypesBloomFilterKeys int     = 137
)
View Source
const USEDEBUG = false /* FIXME: fails tests when true */

Variables

View Source
var (
	ErrArrayTooBig    = fmt.Errorf("insufficient memory to construct array")
	ErrBadArgument    = fmt.Errorf("incorrect parameter value")
	ErrBadArray       = fmt.Errorf("invalid array specification")
	ErrBadBasis       = fmt.Errorf("undefined basis matrix name")
	ErrBadColor       = fmt.Errorf("invalid color specification")
	ErrBadHandle      = fmt.Errorf("invalid light or object handle")
	ErrBadParamlist   = fmt.Errorf("parameter list type mismatch")
	ErrBadRIBCode     = fmt.Errorf("invalid encoded RIB request code")
	ErrBadStringToken = fmt.Errorf("undefined encoded string token")
	ErrBadToken       = fmt.Errorf("invalid binary token")
	ErrBadVersion     = fmt.Errorf("protocol version number mismatch")
	ErrLimitCheck     = fmt.Errorf("overflowing an internal limit")
	ErrOutOfMemory    = fmt.Errorf("generic instance of insufficient memory")
	ErrProtocolBotch  = fmt.Errorf("malformed binary encoding")
	ErrStringTooBig   = fmt.Errorf("insufficient memory to read string")
	ErrSyntaxError    = fmt.Errorf("general syntactic error")
	ErrUnregistered   = fmt.Errorf("undefined RIB request")
	ErrNotSupported   = fmt.Errorf("not supported at this time")
)
View Source
var (
	PrototypesBloomFilterData = []int{} /* 2432 elements not displayed */

	PrototypesData string = "" /* 5176-byte string literal not displayed */

	PrototypesIndices = []int{} /* 137 elements not displayed */
)

Functions

func ClassTypeNameCount

func ClassTypeNameCount(t RtToken) (RtToken, RtToken, RtToken, RtInt)

FIXME

func CorrectParser

func CorrectParser(proto *PrototypeInformation, args []Rter, tokens []Rter, values []Rter) ([]Rter, []Rter, []Rter, error)

func Hash

func Hash(key string) []int

func RiPrototypes

func RiPrototypes() map[RtName]*PrototypeInformation

func Serialise

func Serialise(list []Rter) string

func Unmix

func Unmix(list []Rter) ([]Rter, []Rter)

Types

type ArchiveWriter

type ArchiveWriter interface {
	Write([]byte) (int, error)
}

type BloomFilter

type BloomFilter struct {
	// contains filtered or unexported fields
}

func NewBloomFilter

func NewBloomFilter(size int) *BloomFilter

func RiBloomFilter

func RiBloomFilter() *BloomFilter

func (*BloomFilter) Append

func (f *BloomFilter) Append(keys ...string) *BloomFilter

func (*BloomFilter) IsMember

func (f *BloomFilter) IsMember(keys ...string) bool

func (*BloomFilter) Len

func (f *BloomFilter) Len() int

func (*BloomFilter) Print

func (f *BloomFilter) Print() string

func (*BloomFilter) Raw

func (f *BloomFilter) Raw() (int, []int)

func (*BloomFilter) Stats

func (f *BloomFilter) Stats() (int, float64, float64)

func (*BloomFilter) String

func (f *BloomFilter) String() string

type ErrorAbort

type ErrorAbort int

func (ErrorAbort) Handle

func (e ErrorAbort) Handle(err RtError) error

func (ErrorAbort) Name

func (e ErrorAbort) Name() RtErrorHandler

type ErrorIgnore

type ErrorIgnore int

func (ErrorIgnore) Handle

func (e ErrorIgnore) Handle(err RtError) error

func (ErrorIgnore) Name

func (e ErrorIgnore) Name() RtErrorHandler

type ErrorPrint

type ErrorPrint int

func (ErrorPrint) Handle

func (e ErrorPrint) Handle(err RtError) error

func (ErrorPrint) Name

func (e ErrorPrint) Name() RtErrorHandler

type LightHandler

type LightHandler interface {
	/* Generate or provide a RtLightHandle */
	Generate() (RtLightHandle, error)
	/* Check an existing RtLightHandle */
	Check(RtLightHandle) error
	/* Example output of this generator */
	Example() RtLightHandle
}

LightHandler

type LightNumberGenerator

type LightNumberGenerator struct {
	// contains filtered or unexported fields
}

LightNumberGenerator implements the old style of int handles

func NewLightNumberGenerator

func NewLightNumberGenerator() *LightNumberGenerator

NewLightNumberGenerator

func NewPrefixLightNumberGenerator

func NewPrefixLightNumberGenerator(prefix string) *LightNumberGenerator

NewPrefixLightNumberGenerator

func (*LightNumberGenerator) Check

func (*LightNumberGenerator) Example

func (g *LightNumberGenerator) Example() RtLightHandle

func (*LightNumberGenerator) Generate

func (g *LightNumberGenerator) Generate() (RtLightHandle, error)

type LightUniqueGenerator

type LightUniqueGenerator struct {
	// contains filtered or unexported fields
}

LightUniqueGenerator

func NewLightUniqueGenerator

func NewLightUniqueGenerator() *LightUniqueGenerator

NewLightUniqueGenerator

func NewPrefixLightUniqueGenerator

func NewPrefixLightUniqueGenerator(prefix string) *LightUniqueGenerator

NewPrefixLightUniqueGenerator

func (*LightUniqueGenerator) Check

func (*LightUniqueGenerator) Example

func (g *LightUniqueGenerator) Example() RtLightHandle

func (*LightUniqueGenerator) Generate

func (g *LightUniqueGenerator) Generate() (RtLightHandle, error)

type ObjectHandler

type ObjectHandler interface {
	Generate() (RtObjectHandle, error)
	Check(RtObjectHandle) error
	Example() RtObjectHandle
}

ObjectHandler

type ObjectNumberGenerator

type ObjectNumberGenerator struct {
	// contains filtered or unexported fields
}

ObjectNumberGenerator implements the old style of int handles

func NewObjectNumberGenerator

func NewObjectNumberGenerator() *ObjectNumberGenerator

NewObjectNumberGenerator

func NewPrefixObjectNumberGenerator

func NewPrefixObjectNumberGenerator(prefix string) *ObjectNumberGenerator

NewPrefixObjectNumberGenerator

func (*ObjectNumberGenerator) Check

func (*ObjectNumberGenerator) Example

func (*ObjectNumberGenerator) Generate

func (g *ObjectNumberGenerator) Generate() (RtObjectHandle, error)

type ObjectUniqueGenerator

type ObjectUniqueGenerator struct {
	// contains filtered or unexported fields
}

ObjectUniqueGenerator

func NewObjectUniqueGenerator

func NewObjectUniqueGenerator() *ObjectUniqueGenerator

NewObjectUniqueGenerator

func NewPrefixObjectUniqueGenerator

func NewPrefixObjectUniqueGenerator(prefix string) *ObjectUniqueGenerator

NewPrefixObjectUniqueGenerator

func (*ObjectUniqueGenerator) Check

func (*ObjectUniqueGenerator) Example

func (*ObjectUniqueGenerator) Generate

func (g *ObjectUniqueGenerator) Generate() (RtObjectHandle, error)

type PrototypeArgument

type PrototypeArgument struct {
	Type    string
	Example Rter
	Name    string
}

func (*PrototypeArgument) String

func (p *PrototypeArgument) String() string

type PrototypeInformation

type PrototypeInformation struct {
	Name          RtName
	Arguments     []*PrototypeArgument
	Parameterlist bool
}

func ParsePrototype

func ParsePrototype(stream string) *PrototypeInformation

func (*PrototypeInformation) String

func (p *PrototypeInformation) String() string

type RIBTokenIO

type RIBTokenIO struct {
	// contains filtered or unexported fields
}

func (*RIBTokenIO) Print

func (w *RIBTokenIO) Print() string

func (*RIBTokenIO) Read

func (w *RIBTokenIO) Read() (rib.Token, error)

func (*RIBTokenIO) Write

func (w *RIBTokenIO) Write(t rib.Token)

type Ri

type Ri struct {
	RiContexter
	RiDictionarer
	// contains filtered or unexported fields
}

Ri is the main interface

func NewRi

func NewRi(ctx RiContexter) *Ri

func NewTest

func NewTest() *Ri

func (*Ri) ArchiveBegin

func (r *Ri) ArchiveBegin(id RtToken, parameterlist ...Rter) (ArchiveWriter, error)

func (*Ri) ArchiveEnd

func (r *Ri) ArchiveEnd(id RtToken) error

func (*Ri) ArchiveInstance

func (r *Ri) ArchiveInstance(id RtToken, parameterlist ...Rter) error

func (*Ri) ArchiveRecord

func (r *Ri) ArchiveRecord(typeof RtToken, format RtString, args ...interface{}) error

ArchiveRecord

func (*Ri) ArchiveRecordV

func (r *Ri) ArchiveRecordV(args, tokens, values []Rter) error

func (*Ri) AreaLightSource

func (r *Ri) AreaLightSource(shadername RtToken, parameterlist ...Rter) (RtLightHandle, error)

AreaLightSource

func (*Ri) AreaLightSourceV

func (r *Ri) AreaLightSourceV(args, tokens, values []Rter) error

func (*Ri) Atmosphere

func (r *Ri) Atmosphere(shadername RtToken, parameterlist ...Rter) error

Atmosphere this procedure sets the current atmosphere shader.

func (*Ri) AtmosphereV

func (r *Ri) AtmosphereV(args, tokens, values []Rter) error

func (*Ri) Attribute

func (r *Ri) Attribute(name RtToken, parameterlist ...Rter) error

Attribute Set the paramters of the attribute name. Implementation-specific

func (*Ri) AttributeBegin

func (r *Ri) AttributeBegin(args ...RtAnnotation) error

AttributeBegin push the current set of attributes, you can add a single annotation

func (*Ri) AttributeBeginV

func (r *Ri) AttributeBeginV(args, tokens, values []Rter) error

func (*Ri) AttributeEnd

func (r *Ri) AttributeEnd(args ...RtAnnotation) error

AttributeEnd pop the current set of attributes

func (*Ri) AttributeEndV

func (r *Ri) AttributeEndV(args, tokens, values []Rter) error

func (*Ri) AttributeV

func (r *Ri) AttributeV(args, tokens, values []Rter) error

func (*Ri) Basis

func (r *Ri) Basis(ubasis RtBasis, ustep RtInt, vbasis RtBasis, vstep RtInt) error

Basis Set the current u-basis to ubasis and the current v-basis to vbasis.

func (*Ri) Begin

func (r *Ri) Begin(name RtToken) error

func (*Ri) Blobby

func (r *Ri) Blobby(nleaf, ncode RtInt, code RtIntArray, nfloats RtInt, floats RtFloatArray, nstrings RtInt, strings RtStringArray, parameterlist ...Rter) error

Blobby

func (*Ri) BloomFilter

func (r *Ri) BloomFilter() *BloomFilter

func (*Ri) Bound

func (r *Ri) Bound(bound RtBound) error

Bound This procedure sets the current bound to bound. The bounding box.

func (*Ri) BoundV

func (r *Ri) BoundV(args, tokens, values []Rter) error

func (*Ri) Bxdf

func (r *Ri) Bxdf(name RtToken, handle RtShaderHandle, parameterlist ...Rter) error

Bxdf is used to assign a Bxdf to a surface. Dxdfs take precedence over Surface when an integratir is * active but are ignored whren no itegrator has been specified.

func (*Ri) Camera

func (r *Ri) Camera(name RtToken, parameterlist ...Rter) error

Camera

func (*Ri) Clipping

func (r *Ri) Clipping(near, far RtFloat) error

Clipping sets the position of the near and far clipping planes along the direction of view.

func (*Ri) ClippingPlane

func (r *Ri) ClippingPlane(x, y, z, nx, ny, nz RtFloat) error

ClippingPlane adds a user-specified clipping plane.

func (*Ri) Color

func (r *Ri) Color(color RtColor) error

Color set the current color

func (*Ri) ColorSamples

func (r *Ri) ColorSamples(n RtInt, nRGB RtFloatArray, RGBn RtFloatArray) error

ColorSamples controls the number of color components or samples to be used in specifying colors

func (*Ri) ColorSamplesV

func (r *Ri) ColorSamplesV(args, tokens, values []Rter) error

func (*Ri) ColorV

func (r *Ri) ColorV(args, tokens, values []Rter) error

func (*Ri) Comment

func (r *Ri) Comment(comment RtName) error

Comment

func (*Ri) ConcatTransform

func (r *Ri) ConcatTransform(transform RtMatrix) error

ConcatTransform concatenate the transformation transform onto the current transformation.

func (*Ri) Cone

func (r *Ri) Cone(height, radius, thetamax RtFloat, parameterlist ...Rter) error

Cone

func (*Ri) CoordSysTransform

func (r *Ri) CoordSysTransform(name RtToken) error

CoordSysTransform This function replaces the current transformation matrix with the matrix that * forms the name coordinate system.

func (*Ri) CoordinateSystem

func (r *Ri) CoordinateSystem(name RtToken) error

CoordinateSystem This function marks the coordinate system defined by the current transformation * with the name space and saves it

func (*Ri) CropWindow

func (r *Ri) CropWindow(xmin, xmax, ymin, ymax RtFloat) error

CropWindow render only a subrectangle of the image.

func (*Ri) Curves

func (r *Ri) Curves(typeof RtToken, ncurves RtInt, nvertices RtIntArray, wrap RtToken, parameterlist ...Rter) error

Curves

func (*Ri) Cylinder

func (r *Ri) Cylinder(radius, zmin, zmax, thetamax RtFloat, parameterlist ...Rter) error

Cylinder

func (*Ri) Declare

func (r *Ri) Declare(name, declaration RtString) error

Declare Declare the name and type of a variable

func (*Ri) DeclareV

func (r *Ri) DeclareV(args, tokens, values []Rter) error

func (*Ri) Deformation

func (r *Ri) Deformation(name RtToken, parameterlist ...Rter) error

Deformation

func (*Ri) DepthOfField

func (r *Ri) DepthOfField(fstop, focallength, focaldistance RtFloat) error

DepthOfField focaldistance sets the distance along the direction of view at which objects will be in focus.

func (*Ri) Detail

func (r *Ri) Detail(bound RtBound) error

Detail set the current bound to bound

func (*Ri) DetailRange

func (r *Ri) DetailRange(minvisible, lowertransition, uppertransition, maxvisible RtFloat) error

DetailRange set the current detail range

func (*Ri) DetailRangeV

func (r *Ri) DetailRangeV(args, tokens, values []Rter) error

func (*Ri) DetailV

func (r *Ri) DetailV(args, tokens, values []Rter) error

func (*Ri) Disk

func (r *Ri) Disk(height, radius, thetamax RtFloat, parameterlist ...Rter) error

Disk

func (*Ri) Displacement

func (r *Ri) Displacement(shadername RtToken, parameterlist ...Rter) error

Displacement set the current displacement shader to the named shader.

func (*Ri) DisplacementV

func (r *Ri) DisplacementV(args, tokens, values []Rter) error

func (*Ri) Display

func (r *Ri) Display(name, typeof, mode RtToken, parameterlist ...Rter) error

Display choose a display by name and set the type of output being generated.

func (*Ri) DisplayChannel

func (r *Ri) DisplayChannel(channel RtToken, parameterlist ...Rter) error

DisplayChannel

func (*Ri) DisplayV

func (r *Ri) DisplayV(args, tokens, values []Rter) error

func (*Ri) EditAttributeBegin

func (r *Ri) EditAttributeBegin(name RtToken) error

EditAttributeBegin

func (*Ri) EditAttributeEnd

func (r *Ri) EditAttributeEnd() error

EditAttributeEnd

func (*Ri) EditBegin

func (r *Ri) EditBegin(name RtToken, parameterlist ...Rter) error

EditBegin

func (*Ri) EditEnd

func (r *Ri) EditEnd() error

EditEnd

func (*Ri) EditWorldBegin

func (r *Ri) EditWorldBegin(name RtToken, parameterlist ...Rter) error

func (*Ri) EditWorldEnd

func (r *Ri) EditWorldEnd() error

EditWorldEnd

func (*Ri) Else

func (r *Ri) Else() error

Else

func (*Ri) ElseIf

func (r *Ri) ElseIf(operation RtString) error

ElseIf

func (*Ri) ElseIfV

func (r *Ri) ElseIfV(args, tokens, values []Rter) error

func (*Ri) ElseV

func (r *Ri) ElseV(args, tokens, values []Rter) error

func (*Ri) EnableLightFilter

func (r *Ri) EnableLightFilter(light RtLightHandle, filter RtToken, onoff RtBoolean) error

EnableLightFilter

func (*Ri) End

func (r *Ri) End() error

func (*Ri) ErrorHandler

func (r *Ri) ErrorHandler(handler RtErrorHandlerFuncer) error

ErrorHandler

func (*Ri) Exposure

func (r *Ri) Exposure(gain, gamma RtFloat) error

Exposure this functions controls the sensitivity and nonlinearity of the exposure process.

func (*Ri) ExposureV

func (r *Ri) ExposureV(args, tokens, values []Rter) error

func (*Ri) Exterior

func (r *Ri) Exterior(shadername RtToken, parameterlist ...Rter) error

Exterior this procedure sets the curent exterior volume shader.

func (*Ri) ExteriorV

func (r *Ri) ExteriorV(args, tokens, values []Rter) error

func (*Ri) Format

func (r *Ri) Format(xresolution, yresolution RtInt, pixelaspectratio RtFloat) error

Format set the horizontal and vertical resolution (in pixels) of the image to be rendered

func (*Ri) FrameAspectRatio

func (r *Ri) FrameAspectRatio(frameaspectratio RtFloat) error

FrameAspectRatio is the ration of the width to the height of the desired image.

func (*Ri) FrameBegin

func (r *Ri) FrameBegin(frame RtInt) error

FrameBegin mark the beginning of a single frame of an animated sequenece

func (*Ri) FrameEnd

func (r *Ri) FrameEnd() error

FrameEnd mark the end of a single frame of an animated sequence

func (*Ri) GeneralPolygon

func (r *Ri) GeneralPolygon(nloops RtInt, nvertices RtIntArray, parameterlist ...Rter) error

GeneralPolygon Define a general planar concave polygon with holes

func (*Ri) GeneralPolygonV

func (r *Ri) GeneralPolygonV(args, tokens, values []Rter) error

func (*Ri) GeometricApproximation

func (r *Ri) GeometricApproximation(typeof RtToken, value RtFloat) error

GeometricApproximation

func (*Ri) GeometricApproximationV

func (r *Ri) GeometricApproximationV(args, tokens, values []Rter) error

func (*Ri) Geometry

func (r *Ri) Geometry(typeof RtToken, parameterlist ...Rter) error

Geometry

func (*Ri) GeometryV

func (r *Ri) GeometryV(args, tokens, values []Rter) error

func (*Ri) Hider

func (r *Ri) Hider(typeof RtToken, parameterlist ...Rter) error

Hider

func (*Ri) HiderV

func (r *Ri) HiderV(args, tokens, values []Rter) error

func (*Ri) HierarchicalSubdivisionMesh

func (r *Ri) HierarchicalSubdivisionMesh(mask RtToken, nf RtInt, nverts, verts RtIntArray, nt RtInt, tags RtTokenArray,
	nargs, intargs RtIntArray, floatargs RtFloatArray, stringargs RtTokenArray, parameterlist ...Rter) error

HierarchicalSubdivisionMesh

func (*Ri) Hyperboloid

func (r *Ri) Hyperboloid(point1, point2 RtPoint, thetamax RtFloat, parameterlist ...Rter) error

Hyperboloid

func (*Ri) Identity

func (r *Ri) Identity() error

Identity set the current transformation to the identity

func (*Ri) IfBegin

func (r *Ri) IfBegin(operation RtString) error

IfBegin

func (*Ri) IfBeginV

func (r *Ri) IfBeginV(args, tokens, values []Rter) error

func (*Ri) IfEnd

func (r *Ri) IfEnd() error

IfEnd

func (*Ri) IfEndV

func (r *Ri) IfEndV(args, tokens, values []Rter) error

func (*Ri) Illuminate

func (r *Ri) Illuminate(light RtLightHandle, onoff RtBoolean) error

Illuminate If onoff is true and the light source referred to by the light is not * currently in the4 current light source list, then add it to that list

func (*Ri) IlluminateV

func (r *Ri) IlluminateV(args, tokens, values []Rter) error

func (*Ri) Imager

func (r *Ri) Imager(name RtToken, parameterlist ...Rter) error

Imager; select an imager function programmed in the Shading Language.

func (*Ri) ImagerV

func (r *Ri) ImagerV(args, tokens, values []Rter) error

func (*Ri) Integrator

func (r *Ri) Integrator(name RtToken, handle RtShaderHandle, parameterlist ...Rter) error

Integrator procedure is used to specify an integrator. RIS-Mode only.

func (*Ri) Interior

func (r *Ri) Interior(shadername RtToken, parameterlist ...Rter) error

Interior this procedure sets the current interior volume shader.

func (*Ri) InteriorV

func (r *Ri) InteriorV(args, tokens, values []Rter) error

func (*Ri) LightFilter

func (r *Ri) LightFilter(name RtToken, handle RtToken, parameterlist ...Rter) error

LightFilter

func (*Ri) LightSource

func (r *Ri) LightSource(shadername RtToken, parameterlist ...Rter) (RtLightHandle, error)

LightSource create a non-area light

func (*Ri) LightSourceV

func (r *Ri) LightSourceV(args, tokens, values []Rter) error

func (*Ri) MakeBrickMap

func (r *Ri) MakeBrickMap(nptcs RtInt, ptcs RtStringArray, bkm RtString, parameterlist ...Rter) error

MakeBrickMap

func (*Ri) MakeBump

func (r *Ri) MakeBump(pic, text RtString, swrap, twrap RtToken, filterfunc RtFilterFunc, swidth, twidth RtFloat, parameterlist ...Rter) error

MakeBump

func (*Ri) MakeCubeFaceEnvironment

func (r *Ri) MakeCubeFaceEnvironment(px, nx, py, ny, pz, nz, texturename RtString, fov RtFloat, filterfunc RtFilterFunc, swidth, twidth RtFloat, parameterlist ...Rter) error

MakeCubeFaceEnviroment

func (*Ri) MakeCubeFaceEnvironmentV

func (r *Ri) MakeCubeFaceEnvironmentV(args, tokens, values []Rter) error

func (*Ri) MakeLatLongEnvironment

func (r *Ri) MakeLatLongEnvironment(picturename, texturename RtString, filterfunc RtFilterFunc, swidth, twidth RtFloat, parameterlist ...Rter) error

MakeLatLongEnvironment

func (*Ri) MakeLatLongEnvironmentV

func (r *Ri) MakeLatLongEnvironmentV(args, tokens, values []Rter) error

func (*Ri) MakeShadow

func (r *Ri) MakeShadow(picturename, texturename RtString, parameterlist ...Rter) error

MakeShadow

func (*Ri) MakeShadowV

func (r *Ri) MakeShadowV(args, tokens, values []Rter) error

func (*Ri) MakeTexture

func (r *Ri) MakeTexture(picturename, texturename RtString, swrap, twrap RtToken, filterfunc RtFilterFunc, swidth, twidth RtFloat, parameterlist ...Rter) error

MakeTexture Convert an image in a standard picture file whise name is picturename

func (*Ri) MakeTextureV

func (r *Ri) MakeTextureV(args, tokens, values []Rter) error

func (*Ri) Matte

func (r *Ri) Matte(onoff RtBoolean) error

Matte indicates whether subsequent primitives are matte objects

func (*Ri) MatteV

func (r *Ri) MatteV(args, tokens, values []Rter) error

func (*Ri) MotionBegin

func (r *Ri) MotionBegin(n RtInt, t ...RtFloat) error

MotionBegin

func (*Ri) MotionBeginV

func (r *Ri) MotionBeginV(args, tokens, values []Rter) error

func (*Ri) MotionEnd

func (r *Ri) MotionEnd() error

MotionEnd

func (*Ri) MotionEndV

func (r *Ri) MotionEndV(args, tokens, values []Rter) error

func (*Ri) NuPatch

func (r *Ri) NuPatch(nu, uorder RtInt, uknot RtFloatArray, umin, umax RtFloat, nv, vorder RtInt, vknot RtFloatArray, vmin, vmax RtFloat, parameterlist ...Rter) error

NuPatch

func (*Ri) ObjectBegin

func (r *Ri) ObjectBegin() (RtObjectHandle, error)

ObjectBegin

func (*Ri) ObjectEnd

func (r *Ri) ObjectEnd() error

ObjectEnd

func (*Ri) ObjectInstance

func (r *Ri) ObjectInstance(handle RtObjectHandle) error

ObjectInstance

func (*Ri) Opacity

func (r *Ri) Opacity(color RtColor) error

Opacity set the current opacity

func (*Ri) OpacityV

func (r *Ri) OpacityV(args, tokens, values []Rter) error

func (*Ri) Option

func (r *Ri) Option(name RtToken, parameterlist ...Rter) error

Option render programs may have additional implementation-specific options.

func (*Ri) OptionV

func (r *Ri) OptionV(args, tokens, values []Rter) error

func (*Ri) Orientation

func (r *Ri) Orientation(orientation RtToken) error

Orientation This procedure sets the current orientation to be either "outside", "inside","lh","rh"

func (*Ri) OrientationV

func (r *Ri) OrientationV(args, tokens, values []Rter) error

func (*Ri) Paraboloid

func (r *Ri) Paraboloid(radius, zmin, zmax, tmax RtFloat, parameterlist ...Rter) error

Paraboloid

func (*Ri) ParseRIB

func (ri *Ri) ParseRIB(reader io.Reader) error

func (*Ri) ParseRIBString

func (ri *Ri) ParseRIBString(content string) error

func (*Ri) Patch

func (r *Ri) Patch(typeof RtToken, parameterlist ...Rter) error

Patch define a single patch

func (*Ri) PatchMesh

func (r *Ri) PatchMesh(typeof RtToken, nu RtInt, uwrap RtToken, nv RtInt, vwrap RtToken, parameterlist ...Rter) error

PatchMesh This primitive is a compact way of specifying a quadrilateral mesh of patches

func (*Ri) Pattern

func (r *Ri) Pattern(name RtToken, handle RtShaderHandle, parameterlist ...Rter) error

Pattern is used to wire in textures and patterns.

func (*Ri) Perspective

func (r *Ri) Perspective(fov RtFloat) error

Perspective Concatenate a perspective transformation onto the current transformation.

func (*Ri) PixelFilter

func (r *Ri) PixelFilter(filterfunc RtFilterFunc, xwidth, ywidth RtFloat) error

PixelFilter antialiasing is performed by filtering the geometry (or supersampling) and then * sampling at pixel locations.

func (*Ri) PixelFilterV

func (r *Ri) PixelFilterV(args, tokens, values []Rter) error

func (*Ri) PixelSamples

func (r *Ri) PixelSamples(xsamples, ysamples RtFloat) error

PixelSamples set the effective hider sampling rate in the horizontal and vertial directions

func (*Ri) PixelSamplesV

func (r *Ri) PixelSamplesV(args, tokens, values []Rter) error

func (*Ri) PixelVariance

func (r *Ri) PixelVariance(variation RtFloat) error

PixelVariance the color of a pixel computed by the rendering program

func (*Ri) PixelVarianceV

func (r *Ri) PixelVarianceV(args, tokens, values []Rter) error

func (*Ri) Points

func (r *Ri) Points(npoints RtInt, parameterlist ...Rter) error

Points

func (*Ri) PointsGeneralPolygons

func (r *Ri) PointsGeneralPolygons(nploys RtInt, nloops, nvertices, vertices RtIntArray, parameterlist ...Rter) error

PointsGeneralPolygons

func (*Ri) PointsGeneralPolygonsV

func (r *Ri) PointsGeneralPolygonsV(args, tokens, values []Rter) error

func (*Ri) PointsPolygons

func (r *Ri) PointsPolygons(npolys RtInt, nvertices RtIntArray, vertices RtIntArray, parameterlist ...Rter) error

PointsPolygons Degine npolys planar convex polygons that share vertices

func (*Ri) PointsPolygonsV

func (r *Ri) PointsPolygonsV(args, tokens, values []Rter) error

func (*Ri) Polygon

func (r *Ri) Polygon(nvertices RtInt, parameterlist ...Rter) error

Polygon nvertices is the number of vertices in a single closed planar convex polygen

func (*Ri) PolygonV

func (r *Ri) PolygonV(args, tokens, values []Rter) error

func (*Ri) Procedural

func (r *Ri) Procedural(args RtStringArray, bound RtBound, subdividefunc RtProcSubdivFunc, freefunc RtProcFreeFunc) error

Procedural

func (*Ri) Procedural2

func (r *Ri) Procedural2(subdividefunc RtProc2SubdivFunc, boundfunc RtProc2BoundFunc, parameterlist ...Rter) error

Procedural2

func (*Ri) Projection

func (r *Ri) Projection(token RtToken, parameterlist ...Rter) error

Projection the project determines how camera coordinates are converted to screen coordinates

func (*Ri) Quantize

func (r *Ri) Quantize(typeof RtToken, one, min, max RtInt, ditheramplitude RtFloat) error

Quantize set the quantization parameters for colors or depth.

func (*Ri) QuantizeV

func (r *Ri) QuantizeV(args, tokens, values []Rter) error

func (*Ri) ReadArchive

func (r *Ri) ReadArchive(name RtToken, callback RtArchiveCallbackFunc, parameterlist ...Rter) error

ReadArchive

func (*Ri) ReadArchiveV

func (r *Ri) ReadArchiveV(args, tokens, values []Rter) error

func (*Ri) RelativeDetail

func (r *Ri) RelativeDetail(relativedetail RtFloat) error

RelativeDetail the relative level of detail scales the results of all level of detail calculations.

func (*Ri) RelativeDetailV

func (r *Ri) RelativeDetailV(args, tokens, values []Rter) error

func (*Ri) ResourceBegin

func (r *Ri) ResourceBegin() error

ResourceBegin

func (*Ri) ResourceEnd

func (r *Ri) ResourceEnd() error

ResourceEnd

func (*Ri) ReverseOrientation

func (r *Ri) ReverseOrientation() error

ReverseOrientation causes the current orientation to be toggled

func (*Ri) ReverseOrientationV

func (r *Ri) ReverseOrientationV(args, tokens, values []Rter) error

func (*Ri) Rotate

func (r *Ri) Rotate(angle, dx, dy, dz RtFloat) error

Rotate Concatenate a rotation of angle degrees about the given axis onto the current transformation

func (*Ri) Scale

func (r *Ri) Scale(sx, sy, sz RtFloat) error

Scale Concatenate a scaling onto the current transformation

func (*Ri) ScopedCoordinateSystem

func (r *Ri) ScopedCoordinateSystem(name RtString) error

ScopedCoordinateSystem

func (*Ri) ScreenWindow

func (r *Ri) ScreenWindow(left, right, bottom, top RtFloat) error

ScreenWindow this procedure defines a rectangle in the image plane.

func (*Ri) Shader

func (r *Ri) Shader(name RtToken, handle RtToken, parameterlist ...Rter) error

Shader

func (*Ri) ShadingInterpolation

func (r *Ri) ShadingInterpolation(typeof RtToken) error

ShadingInterpolation this function controls how values are interpolated between shading samples

func (*Ri) ShadingInterpolationV

func (r *Ri) ShadingInterpolationV(args, tokens, values []Rter) error

func (*Ri) ShadingRate

func (r *Ri) ShadingRate(size RtFloat) error

ShadingRate set the current shading rate to size

func (*Ri) ShadingRateV

func (r *Ri) ShadingRateV(args, tokens, values []Rter) error

func (*Ri) Shutter

func (r *Ri) Shutter(min, max RtFloat) error

Shutter sets the times at which the shutter opens and closes.

func (*Ri) Sides

func (r *Ri) Sides(sides RtInt) error

Sides if sides is 2, subsequent surfaces are considered two-sided

func (*Ri) SidesV

func (r *Ri) SidesV(args, tokens, values []Rter) error

func (*Ri) Skew

func (r *Ri) Skew(angle, dx1, dy1, dz1, dx2, dy2, dz2 RtFloat) error

Skew Concatenate a skew onto the current transformation

func (*Ri) SolidBegin

func (r *Ri) SolidBegin(operation RtToken) error

SolidBegin

func (*Ri) SolidEnd

func (r *Ri) SolidEnd() error

SolidEnd

func (*Ri) Sphere

func (r *Ri) Sphere(radius, zmin, zmax, thetamax RtFloat, parameterlist ...Rter) error

Sphere

func (*Ri) SubdivisionMesh

func (r *Ri) SubdivisionMesh(scheme RtToken, nfaces RtInt, nvertices, vertices RtIntArray, ntags RtInt, tags RtTokenArray, nargs, intargs RtIntArray, floatargs RtFloatArray, parameterlist ...Rter) error

SubdivisionMesh

func (*Ri) Surface

func (r *Ri) Surface(shadername RtToken, parameterlist ...Rter) error

Surface shadername is the name of a surface shader

func (*Ri) SurfaceV

func (r *Ri) SurfaceV(args, tokens, values []Rter) error

func (*Ri) System

func (r *Ri) System(name RtString) error

System

func (*Ri) TextureCoordinates

func (r *Ri) TextureCoordinates(s1, t1, s2, t2, s3, t3, s4, t4 RtFloat) error

TextureCoordinates set the current set of texture coordinates to the values

func (*Ri) TextureCoordinatesV

func (r *Ri) TextureCoordinatesV(args, tokens, values []Rter) error

func (*Ri) Torus

func (r *Ri) Torus(majorradius, minorradius, phimin, phimax, thetamax RtFloat, parameterlist ...Rter) error

Torus

func (*Ri) Transform

func (r *Ri) Transform(transform RtMatrix) error

Transform set the current transformation to the transformation transform

func (*Ri) TransformBegin

func (r *Ri) TransformBegin() error

TransformBegin Push the current transformation

func (*Ri) TransformEnd

func (r *Ri) TransformEnd() error

TransformEnd Pop the current transformation

func (*Ri) Translate

func (r *Ri) Translate(dx, dy, dz RtFloat) error

Translate Concatenate a translation onto the current transformation

func (*Ri) TrimCurve

func (r *Ri) TrimCurve(nloops RtInt, ncurves RtIntArray, order RtIntArray, knot RtFloatArray, min, max, RtFloat, n RtIntArray, u, v, w RtFloatArray) error

TrimCurve

func (*Ri) User

func (r *Ri) User(reader RterReader) error

User special func for client libraries to write to

func (*Ri) VPAtmosphere

func (r *Ri) VPAtmosphere(name RtToken, parameterlist ...Rter) error

VPAtmosphere

func (*Ri) VPInterior

func (r *Ri) VPInterior(name RtToken, parameterlist ...Rter) error

VPInterior

func (*Ri) VPSurface

func (r *Ri) VPSurface(name RtToken, parameterlist ...Rter) error

VPSurface

func (*Ri) Volume

func (r *Ri) Volume(typeof RtToken, bound RtBound, dimensions RtIntArray, parameterlist ...Rter) error

Volume

func (*Ri) VolumePixelSamples

func (r *Ri) VolumePixelSamples(x RtFloat, y RtFloat) error

VolumePixelSamples

func (*Ri) WorldBegin

func (r *Ri) WorldBegin(args ...RtAnnotation) error

WorldBegin is invoked, all rendering options are frozen

func (*Ri) WorldEnd

func (r *Ri) WorldEnd(args ...RtAnnotation) error

WorldEnd

func (*Ri) WriteTo

func (r *Ri) WriteTo(name RtName, args, tokens, values []Rter) error

type RiContexter

type RiContexter interface {
	Write(RtName, []Rter, []Rter, []Rter) error
	OpenRaw(RtToken) (ArchiveWriter, error)
	CloseRaw(RtToken) error
	LightHandle() (RtLightHandle, error)
	CheckLightHandle(RtLightHandle) error
	ObjectHandle() (RtObjectHandle, error)
	CheckObjectHandle(RtObjectHandle) error
	ShaderHandle() (RtShaderHandle, error)
	CheckShaderHandle(RtShaderHandle) error

	Shader(RtShaderHandle) ShaderWriter
}

type RtAnnotation

type RtAnnotation string

RtAnnotation (TODO: move this to RtxAnnotation as it does not belong in the Ri spec.)

func (RtAnnotation) Equal

func (s RtAnnotation) Equal(o Rter) bool

func (RtAnnotation) Serialise

func (s RtAnnotation) Serialise() string

func (RtAnnotation) String

func (s RtAnnotation) String() string

func (RtAnnotation) Type

func (s RtAnnotation) Type() string

type RtArchiveCallbackFunc

type RtArchiveCallbackFunc string

RtArchiveCallbackFunc

func (RtArchiveCallbackFunc) Equal

func (s RtArchiveCallbackFunc) Equal(o Rter) bool

func (RtArchiveCallbackFunc) Serialise

func (s RtArchiveCallbackFunc) Serialise() string

func (RtArchiveCallbackFunc) String

func (s RtArchiveCallbackFunc) String() string

func (RtArchiveCallbackFunc) Type

func (s RtArchiveCallbackFunc) Type() string

type RtBasis

type RtBasis [16]RtFloat

RtBasis

func (RtBasis) Equal

func (b RtBasis) Equal(o Rter) bool

func (RtBasis) Serialise

func (b RtBasis) Serialise() string

func (RtBasis) String

func (m RtBasis) String() string

func (RtBasis) Type

func (m RtBasis) Type() string

type RtBoolean

type RtBoolean bool

RtBoolean boolean value

func (RtBoolean) Equal

func (s RtBoolean) Equal(o Rter) bool

func (RtBoolean) Serialise

func (s RtBoolean) Serialise() string

func (RtBoolean) String

func (s RtBoolean) String() string

func (RtBoolean) Type

func (s RtBoolean) Type() string

type RtBound

type RtBound [6]RtFloat

RtBound

func (RtBound) Equal

func (b RtBound) Equal(o Rter) bool

func (RtBound) Serialise

func (b RtBound) Serialise() string

func (RtBound) String

func (b RtBound) String() string

func (RtBound) Type

func (b RtBound) Type() string

type RtColor

type RtColor []RtFloat

RtColor implemented as an array

func Str2Color

func Str2Color(str string) RtColor

func (RtColor) Equal

func (c RtColor) Equal(o Rter) bool

func (RtColor) Serialise

func (c RtColor) Serialise() string

func (RtColor) String

func (c RtColor) String() string

func (RtColor) Type

func (c RtColor) Type() string

type RtError

type RtError struct {
	Code     int
	Severity int
	Msg      string
}

func (RtError) Error

func (err RtError) Error() error

func (RtError) String

func (err RtError) String() string

type RtErrorHandler

type RtErrorHandler string

RtErrorHandler

func (RtErrorHandler) Equal

func (s RtErrorHandler) Equal(o Rter) bool

func (RtErrorHandler) Serialise

func (s RtErrorHandler) Serialise() string

func (RtErrorHandler) String

func (s RtErrorHandler) String() string

func (RtErrorHandler) Type

func (s RtErrorHandler) Type() string

type RtErrorHandlerFuncer

type RtErrorHandlerFuncer interface {
	Name() RtErrorHandler
	Handle(err RtError) error
}

type RtFilterFunc

type RtFilterFunc string

RtFilterFunc

func (RtFilterFunc) Equal

func (s RtFilterFunc) Equal(o Rter) bool

func (RtFilterFunc) Serialise

func (s RtFilterFunc) Serialise() string

func (RtFilterFunc) String

func (s RtFilterFunc) String() string

func (RtFilterFunc) Type

func (s RtFilterFunc) Type() string

type RtFloat

type RtFloat float64

RtFloat float64 value

func (RtFloat) Equal

func (f RtFloat) Equal(o Rter) bool

func (RtFloat) Serialise

func (f RtFloat) Serialise() string

func (RtFloat) String

func (f RtFloat) String() string

func (RtFloat) Type

func (f RtFloat) Type() string

type RtFloatArray

type RtFloatArray []RtFloat

RtFloatArray float64 array

func (RtFloatArray) Equal

func (a RtFloatArray) Equal(o Rter) bool

func (RtFloatArray) Serialise

func (a RtFloatArray) Serialise() string

func (RtFloatArray) String

func (a RtFloatArray) String() string

func (RtFloatArray) Type

func (a RtFloatArray) Type() string

type RtHpoint

type RtHpoint [4]RtFloat

RtHpoint

func (RtHpoint) Equal

func (h RtHpoint) Equal(o Rter) bool

func (RtHpoint) Serialise

func (h RtHpoint) Serialise() string

func (RtHpoint) String

func (h RtHpoint) String() string

func (RtHpoint) Type

func (h RtHpoint) Type() string

type RtInt

type RtInt int

RtInt integer value

func (RtInt) Equal

func (i RtInt) Equal(o Rter) bool

func (RtInt) Serialise

func (i RtInt) Serialise() string

func (RtInt) String

func (i RtInt) String() string

func (RtInt) Type

func (i RtInt) Type() string

type RtIntArray

type RtIntArray []RtInt

RtIntArray integer array

func (RtIntArray) Equal

func (a RtIntArray) Equal(o Rter) bool

func (RtIntArray) Serialise

func (a RtIntArray) Serialise() string

func (RtIntArray) String

func (a RtIntArray) String() string

func (RtIntArray) Type

func (a RtIntArray) Type() string

type RtInterval

type RtInterval [2]RtFloat

RtInternal

func (RtInterval) Equal

func (i RtInterval) Equal(o Rter) bool

func (RtInterval) Serialise

func (i RtInterval) Serialise() string

func (RtInterval) String

func (i RtInterval) String() string

func (RtInterval) Type

func (i RtInterval) Type() string

type RtLightHandle

type RtLightHandle string

RtLightHandle * note -- updated to string handles [Siggraph 2009 course 9; Byron Bashforth]

func (RtLightHandle) Equal

func (l RtLightHandle) Equal(o Rter) bool

func (RtLightHandle) Serialise

func (l RtLightHandle) Serialise() string

func (RtLightHandle) String

func (l RtLightHandle) String() string

func (RtLightHandle) Type

func (l RtLightHandle) Type() string

type RtMatrix

type RtMatrix [16]RtFloat

RtMatrix

func (RtMatrix) Equal

func (m RtMatrix) Equal(o Rter) bool

func (RtMatrix) Serialise

func (m RtMatrix) Serialise() string

func (RtMatrix) String

func (m RtMatrix) String() string

func (RtMatrix) Type

func (m RtMatrix) Type() string

type RtName

type RtName string

RtName internal use for RIB command names

func (RtName) Equal

func (s RtName) Equal(o Rter) bool

func (RtName) Prefix

func (s RtName) Prefix(pre string) RtName

func (RtName) Serialise

func (s RtName) Serialise() string

func (RtName) String

func (s RtName) String() string

func (RtName) Trim

func (s RtName) Trim(pre string) RtName

func (RtName) Type

func (s RtName) Type() string

type RtNormal

type RtNormal [3]RtFloat

RtNormal

func Str2Normal

func Str2Normal(str string) RtNormal

func (RtNormal) Equal

func (n RtNormal) Equal(o Rter) bool

func (RtNormal) Serialise

func (n RtNormal) Serialise() string

func (RtNormal) String

func (n RtNormal) String() string

func (RtNormal) Type

func (n RtNormal) Type() string

type RtObjectHandle

type RtObjectHandle string

RtObjectHandle * note -- updated to string handles [Siggraph 2009 course 9; Byron Bashforth]

func (RtObjectHandle) Equal

func (l RtObjectHandle) Equal(o Rter) bool

func (RtObjectHandle) Serialise

func (l RtObjectHandle) Serialise() string

func (RtObjectHandle) String

func (l RtObjectHandle) String() string

func (RtObjectHandle) Type

func (l RtObjectHandle) Type() string

type RtPoint

type RtPoint [3]RtFloat

RtPoint

func (RtPoint) Equal

func (p RtPoint) Equal(o Rter) bool

func (RtPoint) Serialise

func (p RtPoint) Serialise() string

func (RtPoint) String

func (p RtPoint) String() string

func (RtPoint) Type

func (p RtPoint) Type() string

type RtPointArray

type RtPointArray []RtPoint

RtPointArray

func (RtPointArray) Equal

func (p RtPointArray) Equal(o Rter) bool

func (RtPointArray) Serialise

func (p RtPointArray) Serialise() string

func (RtPointArray) String

func (p RtPointArray) String() string

func (RtPointArray) Type

func (p RtPointArray) Type() string

type RtProc2BoundFunc

type RtProc2BoundFunc string

RtProc2BoundFunc

func (RtProc2BoundFunc) Equal

func (s RtProc2BoundFunc) Equal(o Rter) bool

func (RtProc2BoundFunc) Serialise

func (s RtProc2BoundFunc) Serialise() string

func (RtProc2BoundFunc) String

func (s RtProc2BoundFunc) String() string

func (RtProc2BoundFunc) Type

func (s RtProc2BoundFunc) Type() string

type RtProc2SubdivFunc

type RtProc2SubdivFunc string

RtProc2SubdivFunc

func (RtProc2SubdivFunc) Equal

func (s RtProc2SubdivFunc) Equal(o Rter) bool

func (RtProc2SubdivFunc) Serialise

func (s RtProc2SubdivFunc) Serialise() string

func (RtProc2SubdivFunc) String

func (s RtProc2SubdivFunc) String() string

func (RtProc2SubdivFunc) Type

func (s RtProc2SubdivFunc) Type() string

type RtProcFreeFunc

type RtProcFreeFunc string

RtProcFreeFunc

func (RtProcFreeFunc) Equal

func (s RtProcFreeFunc) Equal(o Rter) bool

func (RtProcFreeFunc) Serialise

func (s RtProcFreeFunc) Serialise() string

func (RtProcFreeFunc) String

func (s RtProcFreeFunc) String() string

func (RtProcFreeFunc) Type

func (s RtProcFreeFunc) Type() string

type RtProcSubdivFunc

type RtProcSubdivFunc string

RtProcSubdivFunc subdivision function

func (RtProcSubdivFunc) Equal

func (s RtProcSubdivFunc) Equal(o Rter) bool

func (RtProcSubdivFunc) Serialise

func (s RtProcSubdivFunc) Serialise() string

func (RtProcSubdivFunc) String

func (s RtProcSubdivFunc) String() string

func (RtProcSubdivFunc) Type

func (s RtProcSubdivFunc) Type() string

type RtShaderHandle

type RtShaderHandle string

RtShaderHandler - used in RIS

func (RtShaderHandle) Equal

func (l RtShaderHandle) Equal(o Rter) bool

func (RtShaderHandle) Serialise

func (l RtShaderHandle) Serialise() string

func (RtShaderHandle) String

func (l RtShaderHandle) String() string

func (RtShaderHandle) Type

func (l RtShaderHandle) Type() string

type RtString

type RtString string

RtString

func (RtString) Equal

func (s RtString) Equal(o Rter) bool

func (RtString) Serialise

func (s RtString) Serialise() string

func (RtString) String

func (s RtString) String() string

func (RtString) Type

func (s RtString) Type() string

type RtStringArray

type RtStringArray []RtString

RtStringArray array of strings

func (RtStringArray) Equal

func (a RtStringArray) Equal(o Rter) bool

func (RtStringArray) Serialise

func (a RtStringArray) Serialise() string

func (RtStringArray) String

func (a RtStringArray) String() string

func (RtStringArray) Type

func (a RtStringArray) Type() string

type RtToken

type RtToken string

RtToken

const (
	A                                  RtToken = "a"
	ABORT                              RtToken = "abort"
	ADD                                RtToken = "add"
	ADDCOVERAGE                        RtToken = "addcoverage"
	AI                                 RtToken = "ai"
	ALGORITHM                          RtToken = "algorithm"
	AMBIENTLIGHT                       RtToken = "ambientlight"
	AMPLITUDE                          RtToken = "amplitude"
	APERTURE                           RtToken = "aperture"
	ARCHIVE                            RtToken = "archive"
	ATMOSPHERES                        RtToken = "atmospheres"
	ATRIBUTECOMBINING                  RtToken = "atributecombining"
	AUTOBIAS                           RtToken = "autobias"
	AZ                                 RtToken = "az"
	AZI                                RtToken = "azi"
	BACKFACETOLERANCE                  RtToken = "backfacetolerance"
	BACKFACING                         RtToken = "backfacing"
	BACKGROUND                         RtToken = "background"
	BEAMDISTRIBUTION                   RtToken = "beamdistribution"
	BESSEL                             RtToken = "bessel"
	BEZIER                             RtToken = "bezier"
	BIAS                               RtToken = "bias"
	BIAS0                              RtToken = "bias0"
	BIAS1                              RtToken = "bias1"
	BICUBIC                            RtToken = "bicubic"
	BILINEAR                           RtToken = "bilinear"
	BINARY                             RtToken = "binary"
	BINARYFORCE                        RtToken = "binaryforce"
	BLACK                              RtToken = "black"
	BLACKMANHARRIS                     RtToken = "blackmanharris"
	BLP                                RtToken = "blp"
	BOUND                              RtToken = "bound"
	BOUND0                             RtToken = "bound0"
	BOUND1                             RtToken = "bound1"
	BOX                                RtToken = "box"
	BRICKMEMORY                        RtToken = "brickmemory"
	BSPLINE                            RtToken = "bspline"
	BUCKET                             RtToken = "bucket"
	BUCKETSIZE                         RtToken = "bucketsize"
	BUCKETSTRIDE                       RtToken = "bucketstride"
	BUMPY                              RtToken = "bumpy"
	CACHEDIFFUSECOLORS                 RtToken = "cachediffusecolors"
	CACHEMODE                          RtToken = "cachemode"
	CAMERA                             RtToken = "camera"
	CAMERAHITMODE                      RtToken = "camerahitmode"
	CATMARK                            RtToken = "catmark"
	CATROM                             RtToken = "catrom"
	CAUSTICMAP                         RtToken = "causticmap"
	CENTERED                           RtToken = "centered"
	CENTERFILTER                       RtToken = "centerfilter"
	CHANLIST                           RtToken = "chanlist"
	CHECKNANS                          RtToken = "checknans"
	CI                                 RtToken = "ci"
	CLAMP                              RtToken = "clamp"
	CLAMPCOLOR                         RtToken = "clampcolor"
	CLAMPED                            RtToken = "clamped"
	CLAMPINGENABLE                     RtToken = "clampingenable"
	CLAMPMOTION                        RtToken = "clampmotion"
	CLAMPWIDTH                         RtToken = "clampwidth"
	CLEARLOCALS                        RtToken = "clearlocals"
	CLIPPING                           RtToken = "clipping"
	CLIPPINGPLANE                      RtToken = "clippingplane"
	COLOR                              RtToken = "color"
	COLORCLAMP                         RtToken = "colorclamp"
	COMBINED                           RtToken = "combined"
	COMMENT                            RtToken = "comment"
	COMPRESSION                        RtToken = "compression"
	COMPRESSIONQ                       RtToken = "compressionq"
	CONDABORT                          RtToken = "condabort"
	CONEANGLE                          RtToken = "coneangle"
	CONEDELTAANGLE                     RtToken = "conedeltaangle"
	CONSTANT                           RtToken = "constant"
	CONSTANTWIDTH                      RtToken = "constantwidth"
	CONTINUATIONBYDEFAULT              RtToken = "continuationbydefault"
	COORDINATESYSTEM                   RtToken = "coordinatesystem"
	CORNER                             RtToken = "corner"
	CPUTIME                            RtToken = "cputime"
	CREASE                             RtToken = "crease"
	CROPWINDOW                         RtToken = "cropwindow"
	CS                                 RtToken = "cs"
	CUBIC                              RtToken = "cubic"
	CULL                               RtToken = "cull"
	CURRENT                            RtToken = "current"
	DEBUG                              RtToken = "debug"
	DECIMATIONRATE                     RtToken = "decimationrate"
	DEEPSHADOWERROR                    RtToken = "deepshadowerror"
	DEEPSHADOWMEMORY                   RtToken = "deepshadowmemory"
	DEEPSHADOWSIMPLIFYERROR            RtToken = "deepshadowsimplifyerror"
	DEEPSHADOWTILES                    RtToken = "deepshadowtiles"
	DEFCACHE                           RtToken = "defcache"
	DEFINITION                         RtToken = "definition"
	DELETELIGHTS                       RtToken = "deletelights"
	DEPTHBIAS                          RtToken = "depthbias"
	DEPTHCUE                           RtToken = "depthcue"
	DEPTHFILTER                        RtToken = "depthfilter"
	DEPTHMODE                          RtToken = "depthmode"
	DEPTHOFFIELD                       RtToken = "depthoffield"
	DERIVATIVES                        RtToken = "derivatives"
	DETAIL                             RtToken = "detail"
	DETAILRANGE                        RtToken = "detailrange"
	DFAMODE                            RtToken = "dfamode"
	DICE                               RtToken = "dice"
	DICEMETHOD                         RtToken = "dicemethod"
	DIFFERENCE                         RtToken = "difference"
	DIFFUSE                            RtToken = "diffuse"
	DIFFUSEHITMODE                     RtToken = "diffusehitmode"
	DISABLE                            RtToken = "disable"
	DISABLELIGHTS                      RtToken = "disablelights"
	DISK                               RtToken = "disk"
	DISPLACEMENT                       RtToken = "displacement"
	DISPLACEMENTBOUND                  RtToken = "displacementbound"
	DISPLACEMENTS                      RtToken = "displacements"
	DISPLACE_RATIOS                    RtToken = "displace_ratios"
	DISPLAY                            RtToken = "display"
	DISPLAYEXPOSURE                    RtToken = "displayexposure"
	DISPLAYONLYEDITLIGHTS              RtToken = "displayonlyeditlights"
	DISPLAYOPACITYCHAN                 RtToken = "displayopacitychan"
	DISPLAYQUANTIZE                    RtToken = "displayquantize"
	DISTANCE                           RtToken = "distance"
	DISTANTLIGHT                       RtToken = "distantlight"
	DITHER                             RtToken = "dither"
	DOF                                RtToken = "dof"
	DOFASPECT                          RtToken = "dofaspect"
	DOUBLECOMP                         RtToken = "doublecomp"
	DOUBLESHADED                       RtToken = "doubleshaded"
	DPDTIME                            RtToken = "dpdtime"
	DPDU                               RtToken = "dpdu"
	DPDV                               RtToken = "dpdv"
	DSOFILE                            RtToken = "dsofile"
	DSOFLOAT                           RtToken = "dsofloat"
	DSONAME                            RtToken = "dsoname"
	DSOPARAM                           RtToken = "dsoparam"
	DSOSTRING                          RtToken = "dsostring"
	DYNAMIC                            RtToken = "dynamic"
	EDGEEDIT                           RtToken = "edgeedit"
	EDITLIGHTS                         RtToken = "editlights"
	EMISSIONBIAS                       RtToken = "emissionbias"
	EMISSIONPOINTCLOUD                 RtToken = "emissionpointcloud"
	EMIT                               RtToken = "emit"
	EMPTY                              RtToken = "empty"
	ENABLE                             RtToken = "enable"
	ENABLEGAUSSIAN                     RtToken = "enablegaussian"
	ENABLELERP                         RtToken = "enablelerp"
	ENABLELIGHTS                       RtToken = "enablelights"
	ENABLEUSERLOBES                    RtToken = "enableuserlobes"
	ENDOFFRAME                         RtToken = "endofframe"
	EPSILON1                           RtToken = "epsilon1"
	EPSILON2                           RtToken = "epsilon2"
	ESTIMATOR                          RtToken = "estimator"
	EXCLUSIVE                          RtToken = "exclusive"
	EXITAT                             RtToken = "exitat"
	EXPOSURE                           RtToken = "exposure"
	EXTRAPOLATE                        RtToken = "extrapolate"
	EXTREMEDISPLACEMENT                RtToken = "extremedisplacement"
	EXTREMEMOTIONDOF                   RtToken = "extrememotiondof"
	EYESPLITS                          RtToken = "eyesplits"
	FACEEDIT                           RtToken = "faceedit"
	FACEINDEX                          RtToken = "faceindex"
	FACEVARYINGINTERPBOUNDARY          RtToken = "facevaryinginterpboundary"
	FALLOFFPOWER                       RtToken = "falloffpower"
	FILE                               RtToken = "file"
	FILEMODE                           RtToken = "filemode"
	FILENAME                           RtToken = "filename"
	FILTER                             RtToken = "filter"
	FILTERING                          RtToken = "filtering"
	FILTERWIDTH                        RtToken = "filterwidth"
	FINISHRENDERING                    RtToken = "finishrendering"
	FLATNESS                           RtToken = "flatness"
	FOCUSFACTOR                        RtToken = "focusfactor"
	FOCUSREGION                        RtToken = "focusregion"
	FOG                                RtToken = "fog"
	FORCEDSAMPLING                     RtToken = "forcedsampling"
	FORMATPIXELASPECTRATIO             RtToken = "formatpixelaspectratio"
	FORMATRESOLUTION                   RtToken = "formatresolution"
	FOV                                RtToken = "fov"
	FRAME                              RtToken = "frame"
	FRAMEASPECTRATIO                   RtToken = "frameaspectratio"
	FRAMEBUFFER                        RtToken = "framebuffer"
	FRAMECAMERA                        RtToken = "framecamera"
	FREQUENCYFRAMETIME                 RtToken = "frequencyframetime"
	FROM                               RtToken = "from"
	FRUSTUM                            RtToken = "frustum"
	GAUSSIAN                           RtToken = "gaussian"
	GEOCACHEMEMORY                     RtToken = "geocachememory"
	GEOMETRICAPPROXIMATIONFLATNESS     RtToken = "geometricapproximationflatness"
	GEOMETRICAPPROXIMATIONFOCUSFACTOR  RtToken = "geometricapproximationfocusfactor"
	GEOMETRICAPPROXIMATIONMOTIONFACTOR RtToken = "geometricapproximationmotionfactor"
	GLOBALMAP                          RtToken = "globalmap"
	GPRIMLOG                           RtToken = "gprimlog"
	GPRIMSPLITS                        RtToken = "gprimsplits"
	GRIDAREA                           RtToken = "gridarea"
	GRIDCACHESIZE                      RtToken = "gridcachesize"
	GRIDMEMORY                         RtToken = "gridmemory"
	GRIDS                              RtToken = "grids"
	GRIDSIZE                           RtToken = "gridsize"
	GROUPING                           RtToken = "grouping"
	GRP_MEMBERSHIP                     RtToken = "grp_membership"
	GRP_TRACESUBSET                    RtToken = "grp_tracesubset"
	HAIR                               RtToken = "hair"
	HANDLE                             RtToken = "handle"
	HANDLEID                           RtToken = "handleid"
	HANDLER                            RtToken = "handler"
	HEMISPHERESAMPLEMEMORY             RtToken = "hemispheresamplememory"
	HERMITE                            RtToken = "hermite"
	HIDDEN                             RtToken = "hidden"
	HOLE                               RtToken = "hole"
	I                                  RtToken = "i"
	ID                                 RtToken = "id"
	IDENTIFIER                         RtToken = "identifier"
	IGNORE                             RtToken = "ignore"
	ILLUMINATEHANDLE                   RtToken = "illuminatehandle"
	IMMEDIATESUBDIVIDE                 RtToken = "immediatesubdivide"
	IMPORTANCETHRESHOLD                RtToken = "importancethreshold"
	INDEXOFREFRACTION                  RtToken = "indexofrefraction"
	INSIDE                             RtToken = "inside"
	INTENSITY                          RtToken = "intensity"
	INTERLEAVE                         RtToken = "interleave"
	INTERPBOUNDARY                     RtToken = "interpboundary"
	INTERPRETATION                     RtToken = "interpretation"
	INTERSECTION                       RtToken = "intersection"
	INTERSECTPRIORITY                  RtToken = "intersectpriority"
	INTERVAL                           RtToken = "interval"
	JITTER                             RtToken = "jitter"
	KA                                 RtToken = "ka"
	KD                                 RtToken = "kd"
	KEEPFILES                          RtToken = "keepfiles"
	KR                                 RtToken = "kr"
	KS                                 RtToken = "ks"
	LAGRANGIAN                         RtToken = "lagrangian"
	LANCZOS                            RtToken = "lanczos"
	LEVELSET                           RtToken = "levelset"
	LH                                 RtToken = "lh"
	LIGHT                              RtToken = "light"
	LIGHTCOLOR                         RtToken = "lightcolor"
	LIGHTING                           RtToken = "lighting"
	LIMITS                             RtToken = "limits"
	LINEAR                             RtToken = "linear"
	LODRANGE                           RtToken = "lodrange"
	LOOP                               RtToken = "loop"
	LPEGROUP                           RtToken = "lpegroup"
	MARCH                              RtToken = "march"
	MATRIXCACHEMEMORY                  RtToken = "matrixcachememory"
	MATTE                              RtToken = "matte"
	MATTEFILE                          RtToken = "mattefile"
	MAXANGLE                           RtToken = "maxangle"
	MAXDEPTH                           RtToken = "maxdepth"
	MAXDIFFUSEDEPTH                    RtToken = "maxdiffusedepth"
	MAXDISTANCE                        RtToken = "maxdistance"
	MAXERROR                           RtToken = "maxerror"
	MAXHAIRLENGTH                      RtToken = "maxhairlength"
	MAXHAIRVOLUME                      RtToken = "maxhairvolume"
	MAXPATHLENGTH                      RtToken = "maxpathlength"
	MAXPIXELDIST                       RtToken = "maxpixeldist"
	MAXRAYDEPTH                        RtToken = "maxraydepth"
	MAXSPECULARDEPTH                   RtToken = "maxspeculardepth"
	MAXVPDEPTH                         RtToken = "maxvpdepth"
	MERGE                              RtToken = "merge"
	METAL                              RtToken = "metal"
	MIDPOINT                           RtToken = "midpoint"
	MINDISTANCE                        RtToken = "mindistance"
	MINMAX                             RtToken = "minmax"
	MINSTOREDEPTH                      RtToken = "minstoredepth"
	MINWIDTH                           RtToken = "minwidth"
	MITCHELL                           RtToken = "mitchell"
	MODE                               RtToken = "mode"
	MOTIONFACTOR                       RtToken = "motionfactor"
	MPCACHE                            RtToken = "mpcache"
	MPCACHEDIR                         RtToken = "mpcachedir"
	MPCACHESTRIDE                      RtToken = "mpcachestride"
	MPMEMORY                           RtToken = "mpmemory"
	MULTIGRIDS                         RtToken = "multigrids"
	N                                  RtToken = "n"
	NAME                               RtToken = "name"
	NDC                                RtToken = "ndc"
	NEARHITHER                         RtToken = "nearhither"
	NEWER                              RtToken = "newer"
	NEWGROUP                           RtToken = "newgroup"
	NG                                 RtToken = "ng"
	NONPERIODIC                        RtToken = "nonperiodic"
	NONUNIFORM                         RtToken = "nonuniform"
	NP                                 RtToken = "np"
	NURBCURVATUREDICEFACTOR            RtToken = "nurbcurvaturedicefactor"
	OBJECT                             RtToken = "object"
	OBJECTCACHE                        RtToken = "objectcache"
	OCCLUSIONBOUND                     RtToken = "occlusionbound"
	OCTREEMEMORY                       RtToken = "octreememory"
	OFFSET                             RtToken = "offset"
	OI                                 RtToken = "oi"
	OLDMOTIONFACTOR                    RtToken = "oldmotionfactor"
	OPACITY                            RtToken = "opacity"
	OPACITYCACHEMEMORY                 RtToken = "opacitycachememory"
	OPACITYMETHOD                      RtToken = "opacitymethod"
	OPACITYMULTIPLIER                  RtToken = "opacitymultiplier"
	OPAQUE                             RtToken = "opaque"
	ORDER                              RtToken = "order"
	ORDERORIGIN                        RtToken = "orderorigin"
	ORIENTATION                        RtToken = "orientation"
	ORIGIN                             RtToken = "origin"
	ORTHOGRAPHIC                       RtToken = "orthographic"
	OS                                 RtToken = "os"
	OTHRESHOLD                         RtToken = "othreshold"
	OUTPUTALLDECLARES                  RtToken = "outputalldeclares"
	OUTSIDE                            RtToken = "outside"
	P                                  RtToken = "p"
	PAINT                              RtToken = "paint"
	PAINTEDPLASTIC                     RtToken = "paintedplastic"
	PATTERN                            RtToken = "pattern"
	PDISC                              RtToken = "pdisc"
	PERIODIC                           RtToken = "periodic"
	PERSISTENT                         RtToken = "persistent"
	PERSPECTIVE                        RtToken = "perspective"
	PHOTON                             RtToken = "photon"
	PHOTONLIFETIME                     RtToken = "photonlifetime"
	PIXELFILTERNAME                    RtToken = "pixelfiltername"
	PIXELFILTERWIDTH                   RtToken = "pixelfilterwidth"
	PIXELSAMPLES                       RtToken = "pixelsamples"
	PIXELVARIANCE                      RtToken = "pixelvariance"
	PLANARPROJECTION                   RtToken = "planarprojection"
	PLASTIC                            RtToken = "plastic"
	POINTFALLOFFPOWER                  RtToken = "pointfalloffpower"
	POINTLIGHT                         RtToken = "pointlight"
	POINTMEMORY                        RtToken = "pointmemory"
	POWER                              RtToken = "power"
	PREBIAS                            RtToken = "prebias"
	PRECISION                          RtToken = "precision"
	PRESERVECV                         RtToken = "preservecv"
	PRIMITIVE                          RtToken = "primitive"
	PRINT                              RtToken = "print"
	PRINTONCE                          RtToken = "printonce"
	PROCEDURAL                         RtToken = "procedural"
	PROJECTIONFOV                      RtToken = "projectionfov"
	PROJECTIONNAME                     RtToken = "projectionname"
	PT                                 RtToken = "pt"
	PTEXTUREMAXFILES                   RtToken = "ptexturemaxfiles"
	PTEXTUREMEMORY                     RtToken = "ptexturememory"
	PVN                                RtToken = "pvn"
	PW                                 RtToken = "pw"
	PYRAMID                            RtToken = "pyramid"
	PYRAMIDENABLE                      RtToken = "pyramidenable"
	PZ                                 RtToken = "pz"
	QUANTIZEDITHER                     RtToken = "quantizedither"
	QUANTIZERANGE                      RtToken = "quantizerange"
	QUANTIZETYPE                       RtToken = "quantizetype"
	R                                  RtToken = "r"
	RADIOSITYCACHEMEMORY               RtToken = "radiositycachememory"
	RADIOSITYCACHEOMITMINUSONE         RtToken = "radiositycacheomitminusone"
	RADIUS                             RtToken = "radius"
	RASTER                             RtToken = "raster"
	RASTERORIENT                       RtToken = "rasterorient"
	RAYDEPTH                           RtToken = "raydepth"
	RAY_KAYJIYA                        RtToken = "ray_kayjiya"
	RAY_LIST                           RtToken = "ray_list"
	RAY_TREE                           RtToken = "ray_tree"
	REFLECTION                         RtToken = "reflection"
	REFLECTSUBSET                      RtToken = "reflectsubset"
	REFWARNING                         RtToken = "refwarning"
	RELATIVEDETAIL                     RtToken = "relativedetail"
	RELATIVEPIXELVARIANCE              RtToken = "relativepixelvariance"
	RELATIVESHADINGRATE                RtToken = "relativeshadingrate"
	RELIGHTING                         RtToken = "relighting"
	REMAP                              RtToken = "remap"
	RENDER                             RtToken = "render"
	RENDERMEMORY                       RtToken = "rendermemory"
	RENDERNULL                         RtToken = "rendernull"
	RENDERTIME                         RtToken = "rendertime"
	REPELFILE                          RtToken = "repelfile"
	REPELPARAMS                        RtToken = "repelparams"
	RERENDERBAKEDBDIR                  RtToken = "rerenderbakedbdir"
	RESETRELATIVESHADINGRATE           RtToken = "resetrelativeshadingrate"
	RESIZE                             RtToken = "resize"
	RESOLUTION                         RtToken = "resolution"
	RESOLUTIONUNIT                     RtToken = "resolutionunit"
	RESOURCE                           RtToken = "resource"
	REVERSEORIENTATION                 RtToken = "reverseorientation"
	REVERSESIGN                        RtToken = "reversesign"
	RGB                                RtToken = "rgb"
	RGBA                               RtToken = "rgba"
	RGBAI                              RtToken = "rgbai"
	RGBAZ                              RtToken = "rgbaz"
	RGBAZI                             RtToken = "rgbazi"
	RGBI                               RtToken = "rgbi"
	RGBZ                               RtToken = "rgbz"
	RGBZI                              RtToken = "rgbzi"
	RH                                 RtToken = "rh"
	RIB                                RtToken = "rib"
	RIBPARSE                           RtToken = "ribparse"
	RIFCONTROL                         RtToken = "rifcontrol"
	RIXPLUGIN                          RtToken = "rixplugin"
	ROUGHNESS                          RtToken = "roughness"
	ROWSPERSTRIP                       RtToken = "rowsperstrip"
	RUNFLAGS                           RtToken = "runflags"
	S                                  RtToken = "s"
	SAMPLEMOTION                       RtToken = "samplemotion"
	SAVEDATTRIBUTES                    RtToken = "savedattributes"
	SAVESHADERSTATE                    RtToken = "saveshaderstate"
	SCOPEDCOORDINATESYSTEM             RtToken = "scopedcoordinatesystem"
	SCOPENAMES                         RtToken = "scopenames"
	SCREEN                             RtToken = "screen"
	SCREENWINDOW                       RtToken = "screenwindow"
	SEARCHPATH                         RtToken = "searchpath"
	SENSE                              RtToken = "sense"
	SEPARATE                           RtToken = "separate"
	SEPCATROM                          RtToken = "sepcatrom"
	SHADE                              RtToken = "shade"
	SHADEGROUPS                        RtToken = "shadegroups"
	SHADEGROUPSIZEFACTOR               RtToken = "shadegroupsizefactor"
	SHADEQUEUESIZEFACTOR               RtToken = "shadequeuesizefactor"
	SHADER                             RtToken = "shader"
	SHADERINSTANCEID                   RtToken = "shaderinstanceid"
	SHADERPROFILE                      RtToken = "shaderprofile"
	SHADESIZE                          RtToken = "shadesize"
	SHADEWCACHE                        RtToken = "shadewcache"
	SHADING                            RtToken = "shading"
	SHADINGGROUP                       RtToken = "shadinggroup"
	SHADINGINTERPOLATION               RtToken = "shadinginterpolation"
	SHADINGMODEL                       RtToken = "shadingmodel"
	SHADINGRATE                        RtToken = "shadingrate"
	SHADOW                             RtToken = "shadow"
	SHADOWSUBSET                       RtToken = "shadowsubset"
	SHINYMETAL                         RtToken = "shinymetal"
	SHUTTER                            RtToken = "shutter"
	SHUTTEROPENING                     RtToken = "shutteropening"
	SIDES                              RtToken = "sides"
	SIGMA                              RtToken = "sigma"
	SIGMABLUR                          RtToken = "sigmablur"
	SINC                               RtToken = "sinc"
	SMOOTH                             RtToken = "smooth"
	SMOOTHTRIANGLES                    RtToken = "smoothtriangles"
	SOURCE                             RtToken = "source"
	SPATIALGROUPING                    RtToken = "spatialgrouping"
	SPECULAR                           RtToken = "specular"
	SPECULARCOLOR                      RtToken = "specularcolor"
	SPECULARHITMODE                    RtToken = "specularhitmode"
	SPECULARTHRESHOLD                  RtToken = "specularthreshold"
	SPHERE                             RtToken = "sphere"
	SPHERICALPROJECTION                RtToken = "sphericalprojection"
	SPOTLIGHT                          RtToken = "spotlight"
	SRGB                               RtToken = "srgb"
	ST                                 RtToken = "st"
	STANDARD                           RtToken = "standard"
	STATISTICS                         RtToken = "statistics"
	STITCH                             RtToken = "stitch"
	STOCHASTIC                         RtToken = "stochastic"
	STRATEGY                           RtToken = "strategy"
	STREAMMARKER                       RtToken = "streammarker"
	STRUCTURE                          RtToken = "structure"
	STYLESHEET                         RtToken = "stylesheet"
	SUBOCCLUSION                       RtToken = "subocclusion"
	SUBPIXEL                           RtToken = "subpixel"
	SUBWINDOW                          RtToken = "subwindow"
	SUSPENDRENDERING                   RtToken = "suspendrendering"
	T                                  RtToken = "t"
	TEXTURE                            RtToken = "texture"
	TEXTURECOORDINATES                 RtToken = "texturecoordinates"
	TEXTUREMEMORY                      RtToken = "texturememory"
	TEXTURENAME                        RtToken = "texturename"
	THREADS                            RtToken = "threads"
	THRESHOLD                          RtToken = "threshold"
	TIMER                              RtToken = "timer"
	TO                                 RtToken = "to"
	TRACE                              RtToken = "trace"
	TRACEENABLE                        RtToken = "traceenable"
	TRACEMINWIDTH                      RtToken = "traceminwidth"
	TRANSFORM                          RtToken = "transform"
	TRANSIENT                          RtToken = "transient"
	TRANSMISSION                       RtToken = "transmission"
	TRANSMISSIONHITMODE                RtToken = "transmissionhitmode"
	TRANSMITSUBSET                     RtToken = "transmitsubset"
	TRANSPARENT                        RtToken = "transparent"
	TRIANGLE                           RtToken = "triangle"
	TRIM                               RtToken = "trim"
	TRIMCURVE                          RtToken = "trimcurve"
	TRIMDEVIATION                      RtToken = "trimdeviation"
	U                                  RtToken = "u"
	UBASISNAME                         RtToken = "ubasisname"
	UNIFORM_TRIMRANGE                  RtToken = "uniform_trimrange"
	UNION                              RtToken = "union"
	UNKNOWN                            RtToken = "unknown"
	USER                               RtToken = "user"
	UVW                                RtToken = "uvw"
	V                                  RtToken = "v"
	VARSUBST                           RtToken = "varsubst"
	VBASISNAME                         RtToken = "vbasisname"
	VDMAG                              RtToken = "vdmag"
	VERBATIM                           RtToken = "verbatim"
	VERTEXEDIT                         RtToken = "vertexedit"
	VIEWFRUSTUMDISTANCE                RtToken = "viewfrustumdistance"
	VISIBILITY                         RtToken = "visibility"
	VISIBLEPOINTS                      RtToken = "visiblepoints"
	VOLUME                             RtToken = "volume"
	VOLUMEBOX                          RtToken = "volumebox"
	VOLUMECONE                         RtToken = "volumecone"
	VOLUMECYLINDER                     RtToken = "volumecylinder"
	VOLUMEELLIPSOID                    RtToken = "volumeellipsoid"
	VOLUMEINTERPRETATION               RtToken = "volumeinterpretation"
	VOLUMEPIXELSAMPLES                 RtToken = "volumepixelsamples"
	VPDEPTH                            RtToken = "vpdepth"
	VPDEPTHSHADINGRATE                 RtToken = "vpdepthshadingrate"
	VPICOLOR                           RtToken = "vpicolor"
	VPIDEPTH                           RtToken = "vpidepth"
	VPIMAGE                            RtToken = "vpimage"
	VPINTERIORHEURISTIC                RtToken = "vpinteriorheuristic"
	VPIOBJECTID                        RtToken = "vpiobjectid"
	VPRELATIVESHADINGRATE              RtToken = "vprelativeshadingrate"
	VPVOLUMEINTERSECTIONS              RtToken = "vpvolumeintersections"
	VPVOLUMES                          RtToken = "vpvolumes"
	W                                  RtToken = "w"
	WIDTH                              RtToken = "width"
	WIDTHMINSEGMENTS                   RtToken = "widthminsegments"
	WORLD                              RtToken = "world"
	WORLDCAMERA                        RtToken = "worldcamera"
	WORLDDISTANCE                      RtToken = "worlddistance"
	WRITETODISK                        RtToken = "writetodisk"
	XMLFILENAME                        RtToken = "xmlfilename"
	YSPLITS                            RtToken = "ysplits"
	Z                                  RtToken = "z"
	ZBLUR                              RtToken = "zblur"
	ZCOMPRESSION                       RtToken = "zcompression"
	ZFILE                              RtToken = "zfile"
	ZI                                 RtToken = "zi"
	ZLERP                              RtToken = "zlerp"
	ZTHRESHOLD                         RtToken = "zthreshold"
)

func (RtToken) Equal

func (s RtToken) Equal(o Rter) bool

func (RtToken) Serialise

func (s RtToken) Serialise() string

func (RtToken) String

func (s RtToken) String() string

func (RtToken) Type

func (s RtToken) Type() string

type RtTokenArray

type RtTokenArray []RtToken

RtToken array

func (RtTokenArray) Equal

func (a RtTokenArray) Equal(o Rter) bool

func (RtTokenArray) Serialise

func (a RtTokenArray) Serialise() string

func (RtTokenArray) String

func (a RtTokenArray) String() string

func (RtTokenArray) Type

func (a RtTokenArray) Type() string

type RtVector

type RtVector [3]RtFloat

RtVector

func Str2Vector

func Str2Vector(str string) RtVector

func (RtVector) Equal

func (v RtVector) Equal(o Rter) bool

func (RtVector) Serialise

func (v RtVector) Serialise() string

func (RtVector) String

func (v RtVector) String() string

func (RtVector) Type

func (v RtVector) Type() string

type Rtattr

type Rtattr interface {
	NameOf() RtName /* useful in caching systems */
	Break() (RtToken, Rter)
}

type Rter

type Rter interface {
	String() string
	Serialise() string
	Type() string
	Equal(Rter) bool
}

func Mix

func Mix(params, values []Rter) []Rter

type RterArray

type RterArray []Rter

func (RterArray) Equal

func (s RterArray) Equal(o Rter) bool

func (RterArray) Serialise

func (s RterArray) Serialise() string

func (RterArray) String

func (s RterArray) String() string

func (RterArray) Type

func (s RterArray) Type() string

type RterReader

type RterReader interface {
	ReadFrom() (RtName, []Rter, []Rter, []Rter)
}

type RterWriter

type RterWriter interface {
	WriteTo(RtName, []Rter, []Rter, []Rter) error
}

type ShaderHandler

type ShaderHandler interface {
	Generate() (RtShaderHandle, error)
	Check(RtShaderHandle) error
	Example() RtShaderHandle
}

ShaderHandler

type ShaderNumberGenerator

type ShaderNumberGenerator struct {
	// contains filtered or unexported fields
}

ShaderNumberGenerator

func NewPrefixShaderNumberGenerator

func NewPrefixShaderNumberGenerator(prefix string) *ShaderNumberGenerator

NewPrefixShaderNumberGenerator

func NewShaderNumberGenerator

func NewShaderNumberGenerator() *ShaderNumberGenerator

NewShaderNumberGenerator

func (*ShaderNumberGenerator) Check

func (*ShaderNumberGenerator) Example

func (*ShaderNumberGenerator) Generate

func (g *ShaderNumberGenerator) Generate() (RtShaderHandle, error)

type ShaderUniqueGenerator

type ShaderUniqueGenerator struct {
	// contains filtered or unexported fields
}

ShaderUniqueGenerator

func NewPrefixShaderUniqueGenerator

func NewPrefixShaderUniqueGenerator(prefix string) *ShaderUniqueGenerator

NewPrefixShaderUniqueGenerator

func NewShaderUniqueGenerator

func NewShaderUniqueGenerator() *ShaderUniqueGenerator

NewShaderUniqueGenerator

func (*ShaderUniqueGenerator) Check

func (*ShaderUniqueGenerator) Example

func (*ShaderUniqueGenerator) Generate

func (g *ShaderUniqueGenerator) Generate() (RtShaderHandle, error)

type ShaderWriter

type ShaderWriter interface {
	Write() (RtName, RtShaderHandle, []Rter, []Rter, []Rter)
}

type TestContext

type TestContext struct {
	// contains filtered or unexported fields
}

func (*TestContext) CheckLightHandle

func (b *TestContext) CheckLightHandle(h RtLightHandle) error

func (*TestContext) CheckObjectHandle

func (b *TestContext) CheckObjectHandle(h RtObjectHandle) error

func (*TestContext) CheckShaderHandle

func (b *TestContext) CheckShaderHandle(h RtShaderHandle) error

func (*TestContext) CloseRaw

func (b *TestContext) CloseRaw(id RtToken) error

func (*TestContext) LightHandle

func (b *TestContext) LightHandle() (RtLightHandle, error)

func (*TestContext) ObjectHandle

func (b *TestContext) ObjectHandle() (RtObjectHandle, error)

func (*TestContext) OpenRaw

func (b *TestContext) OpenRaw(id RtToken) (ArchiveWriter, error)

func (*TestContext) Shader

func (*TestContext) ShaderHandle

func (b *TestContext) ShaderHandle() (RtShaderHandle, error)

func (*TestContext) Write

func (b *TestContext) Write(name RtName, args, params, values []Rter) error

Directories

Path Synopsis
RtToken generator
RtToken generator
rigo/ri/rib/parser.go
rigo/ri/rib/parser.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL