Documentation ¶
Overview ¶
rigo/definitions.go
rigo/ri/handles.go
rigo/ri/handles.go
rigo/ri/handles.go
rigo/ri/handles.go
Index ¶
- Constants
- Variables
- func ClassTypeNameCount(t RtToken) (RtToken, RtToken, RtToken, RtInt)
- func CorrectParser(proto *PrototypeInformation, args []Rter, tokens []Rter, values []Rter) ([]Rter, []Rter, []Rter, error)
- func Hash(key string) []int
- func RiPrototypes() map[RtName]*PrototypeInformation
- func Serialise(list []Rter) string
- func Unmix(list []Rter) ([]Rter, []Rter)
- type ArchiveWriter
- type BloomFilter
- func (f *BloomFilter) Append(keys ...string) *BloomFilter
- func (f *BloomFilter) IsMember(keys ...string) bool
- func (f *BloomFilter) Len() int
- func (f *BloomFilter) Print() string
- func (f *BloomFilter) Raw() (int, []int)
- func (f *BloomFilter) Stats() (int, float64, float64)
- func (f *BloomFilter) String() string
- type ErrorAbort
- type ErrorIgnore
- type ErrorPrint
- type LightHandler
- type LightNumberGenerator
- type LightUniqueGenerator
- type ObjectHandler
- type ObjectNumberGenerator
- type ObjectUniqueGenerator
- type PrototypeArgument
- type PrototypeInformation
- type RIBTokenIO
- type Ri
- func (r *Ri) ArchiveBegin(id RtToken, parameterlist ...Rter) (ArchiveWriter, error)
- func (r *Ri) ArchiveEnd(id RtToken) error
- func (r *Ri) ArchiveInstance(id RtToken, parameterlist ...Rter) error
- func (r *Ri) ArchiveRecord(typeof RtToken, format RtString, args ...interface{}) error
- func (r *Ri) ArchiveRecordV(args, tokens, values []Rter) error
- func (r *Ri) AreaLightSource(shadername RtToken, parameterlist ...Rter) (RtLightHandle, error)
- func (r *Ri) AreaLightSourceV(args, tokens, values []Rter) error
- func (r *Ri) Atmosphere(shadername RtToken, parameterlist ...Rter) error
- func (r *Ri) AtmosphereV(args, tokens, values []Rter) error
- func (r *Ri) Attribute(name RtToken, parameterlist ...Rter) error
- func (r *Ri) AttributeBegin(args ...RtAnnotation) error
- func (r *Ri) AttributeBeginV(args, tokens, values []Rter) error
- func (r *Ri) AttributeEnd(args ...RtAnnotation) error
- func (r *Ri) AttributeEndV(args, tokens, values []Rter) error
- func (r *Ri) AttributeV(args, tokens, values []Rter) error
- func (r *Ri) Basis(ubasis RtBasis, ustep RtInt, vbasis RtBasis, vstep RtInt) error
- func (r *Ri) Begin(name RtToken) error
- func (r *Ri) Blobby(nleaf, ncode RtInt, code RtIntArray, nfloats RtInt, floats RtFloatArray, ...) error
- func (r *Ri) BloomFilter() *BloomFilter
- func (r *Ri) Bound(bound RtBound) error
- func (r *Ri) BoundV(args, tokens, values []Rter) error
- func (r *Ri) Bxdf(name RtToken, handle RtShaderHandle, parameterlist ...Rter) error
- func (r *Ri) Camera(name RtToken, parameterlist ...Rter) error
- func (r *Ri) Clipping(near, far RtFloat) error
- func (r *Ri) ClippingPlane(x, y, z, nx, ny, nz RtFloat) error
- func (r *Ri) Color(color RtColor) error
- func (r *Ri) ColorSamples(n RtInt, nRGB RtFloatArray, RGBn RtFloatArray) error
- func (r *Ri) ColorSamplesV(args, tokens, values []Rter) error
- func (r *Ri) ColorV(args, tokens, values []Rter) error
- func (r *Ri) Comment(comment RtName) error
- func (r *Ri) ConcatTransform(transform RtMatrix) error
- func (r *Ri) Cone(height, radius, thetamax RtFloat, parameterlist ...Rter) error
- func (r *Ri) CoordSysTransform(name RtToken) error
- func (r *Ri) CoordinateSystem(name RtToken) error
- func (r *Ri) CropWindow(xmin, xmax, ymin, ymax RtFloat) error
- func (r *Ri) Curves(typeof RtToken, ncurves RtInt, nvertices RtIntArray, wrap RtToken, ...) error
- func (r *Ri) Cylinder(radius, zmin, zmax, thetamax RtFloat, parameterlist ...Rter) error
- func (r *Ri) Declare(name, declaration RtString) error
- func (r *Ri) DeclareV(args, tokens, values []Rter) error
- func (r *Ri) Deformation(name RtToken, parameterlist ...Rter) error
- func (r *Ri) DepthOfField(fstop, focallength, focaldistance RtFloat) error
- func (r *Ri) Detail(bound RtBound) error
- func (r *Ri) DetailRange(minvisible, lowertransition, uppertransition, maxvisible RtFloat) error
- func (r *Ri) DetailRangeV(args, tokens, values []Rter) error
- func (r *Ri) DetailV(args, tokens, values []Rter) error
- func (r *Ri) Disk(height, radius, thetamax RtFloat, parameterlist ...Rter) error
- func (r *Ri) Displacement(shadername RtToken, parameterlist ...Rter) error
- func (r *Ri) DisplacementV(args, tokens, values []Rter) error
- func (r *Ri) Display(name, typeof, mode RtToken, parameterlist ...Rter) error
- func (r *Ri) DisplayChannel(channel RtToken, parameterlist ...Rter) error
- func (r *Ri) DisplayV(args, tokens, values []Rter) error
- func (r *Ri) EditAttributeBegin(name RtToken) error
- func (r *Ri) EditAttributeEnd() error
- func (r *Ri) EditBegin(name RtToken, parameterlist ...Rter) error
- func (r *Ri) EditEnd() error
- func (r *Ri) EditWorldBegin(name RtToken, parameterlist ...Rter) error
- func (r *Ri) EditWorldEnd() error
- func (r *Ri) Else() error
- func (r *Ri) ElseIf(operation RtString) error
- func (r *Ri) ElseIfV(args, tokens, values []Rter) error
- func (r *Ri) ElseV(args, tokens, values []Rter) error
- func (r *Ri) EnableLightFilter(light RtLightHandle, filter RtToken, onoff RtBoolean) error
- func (r *Ri) End() error
- func (r *Ri) ErrorHandler(handler RtErrorHandlerFuncer) error
- func (r *Ri) Exposure(gain, gamma RtFloat) error
- func (r *Ri) ExposureV(args, tokens, values []Rter) error
- func (r *Ri) Exterior(shadername RtToken, parameterlist ...Rter) error
- func (r *Ri) ExteriorV(args, tokens, values []Rter) error
- func (r *Ri) Format(xresolution, yresolution RtInt, pixelaspectratio RtFloat) error
- func (r *Ri) FrameAspectRatio(frameaspectratio RtFloat) error
- func (r *Ri) FrameBegin(frame RtInt) error
- func (r *Ri) FrameEnd() error
- func (r *Ri) GeneralPolygon(nloops RtInt, nvertices RtIntArray, parameterlist ...Rter) error
- func (r *Ri) GeneralPolygonV(args, tokens, values []Rter) error
- func (r *Ri) GeometricApproximation(typeof RtToken, value RtFloat) error
- func (r *Ri) GeometricApproximationV(args, tokens, values []Rter) error
- func (r *Ri) Geometry(typeof RtToken, parameterlist ...Rter) error
- func (r *Ri) GeometryV(args, tokens, values []Rter) error
- func (r *Ri) Hider(typeof RtToken, parameterlist ...Rter) error
- func (r *Ri) HiderV(args, tokens, values []Rter) error
- func (r *Ri) HierarchicalSubdivisionMesh(mask RtToken, nf RtInt, nverts, verts RtIntArray, nt RtInt, tags RtTokenArray, ...) error
- func (r *Ri) Hyperboloid(point1, point2 RtPoint, thetamax RtFloat, parameterlist ...Rter) error
- func (r *Ri) Identity() error
- func (r *Ri) IfBegin(operation RtString) error
- func (r *Ri) IfBeginV(args, tokens, values []Rter) error
- func (r *Ri) IfEnd() error
- func (r *Ri) IfEndV(args, tokens, values []Rter) error
- func (r *Ri) Illuminate(light RtLightHandle, onoff RtBoolean) error
- func (r *Ri) IlluminateV(args, tokens, values []Rter) error
- func (r *Ri) Imager(name RtToken, parameterlist ...Rter) error
- func (r *Ri) ImagerV(args, tokens, values []Rter) error
- func (r *Ri) Integrator(name RtToken, handle RtShaderHandle, parameterlist ...Rter) error
- func (r *Ri) Interior(shadername RtToken, parameterlist ...Rter) error
- func (r *Ri) InteriorV(args, tokens, values []Rter) error
- func (r *Ri) LightFilter(name RtToken, handle RtToken, parameterlist ...Rter) error
- func (r *Ri) LightSource(shadername RtToken, parameterlist ...Rter) (RtLightHandle, error)
- func (r *Ri) LightSourceV(args, tokens, values []Rter) error
- func (r *Ri) MakeBrickMap(nptcs RtInt, ptcs RtStringArray, bkm RtString, parameterlist ...Rter) error
- func (r *Ri) MakeBump(pic, text RtString, swrap, twrap RtToken, filterfunc RtFilterFunc, ...) error
- func (r *Ri) MakeCubeFaceEnvironment(px, nx, py, ny, pz, nz, texturename RtString, fov RtFloat, ...) error
- func (r *Ri) MakeCubeFaceEnvironmentV(args, tokens, values []Rter) error
- func (r *Ri) MakeLatLongEnvironment(picturename, texturename RtString, filterfunc RtFilterFunc, ...) error
- func (r *Ri) MakeLatLongEnvironmentV(args, tokens, values []Rter) error
- func (r *Ri) MakeShadow(picturename, texturename RtString, parameterlist ...Rter) error
- func (r *Ri) MakeShadowV(args, tokens, values []Rter) error
- func (r *Ri) MakeTexture(picturename, texturename RtString, swrap, twrap RtToken, ...) error
- func (r *Ri) MakeTextureV(args, tokens, values []Rter) error
- func (r *Ri) Matte(onoff RtBoolean) error
- func (r *Ri) MatteV(args, tokens, values []Rter) error
- func (r *Ri) MotionBegin(n RtInt, t ...RtFloat) error
- func (r *Ri) MotionBeginV(args, tokens, values []Rter) error
- func (r *Ri) MotionEnd() error
- func (r *Ri) MotionEndV(args, tokens, values []Rter) error
- func (r *Ri) NuPatch(nu, uorder RtInt, uknot RtFloatArray, umin, umax RtFloat, nv, vorder RtInt, ...) error
- func (r *Ri) ObjectBegin() (RtObjectHandle, error)
- func (r *Ri) ObjectEnd() error
- func (r *Ri) ObjectInstance(handle RtObjectHandle) error
- func (r *Ri) Opacity(color RtColor) error
- func (r *Ri) OpacityV(args, tokens, values []Rter) error
- func (r *Ri) Option(name RtToken, parameterlist ...Rter) error
- func (r *Ri) OptionV(args, tokens, values []Rter) error
- func (r *Ri) Orientation(orientation RtToken) error
- func (r *Ri) OrientationV(args, tokens, values []Rter) error
- func (r *Ri) Paraboloid(radius, zmin, zmax, tmax RtFloat, parameterlist ...Rter) error
- func (ri *Ri) ParseRIB(reader io.Reader) error
- func (ri *Ri) ParseRIBString(content string) error
- func (r *Ri) Patch(typeof RtToken, parameterlist ...Rter) error
- func (r *Ri) PatchMesh(typeof RtToken, nu RtInt, uwrap RtToken, nv RtInt, vwrap RtToken, ...) error
- func (r *Ri) Pattern(name RtToken, handle RtShaderHandle, parameterlist ...Rter) error
- func (r *Ri) Perspective(fov RtFloat) error
- func (r *Ri) PixelFilter(filterfunc RtFilterFunc, xwidth, ywidth RtFloat) error
- func (r *Ri) PixelFilterV(args, tokens, values []Rter) error
- func (r *Ri) PixelSamples(xsamples, ysamples RtFloat) error
- func (r *Ri) PixelSamplesV(args, tokens, values []Rter) error
- func (r *Ri) PixelVariance(variation RtFloat) error
- func (r *Ri) PixelVarianceV(args, tokens, values []Rter) error
- func (r *Ri) Points(npoints RtInt, parameterlist ...Rter) error
- func (r *Ri) PointsGeneralPolygons(nploys RtInt, nloops, nvertices, vertices RtIntArray, parameterlist ...Rter) error
- func (r *Ri) PointsGeneralPolygonsV(args, tokens, values []Rter) error
- func (r *Ri) PointsPolygons(npolys RtInt, nvertices RtIntArray, vertices RtIntArray, parameterlist ...Rter) error
- func (r *Ri) PointsPolygonsV(args, tokens, values []Rter) error
- func (r *Ri) Polygon(nvertices RtInt, parameterlist ...Rter) error
- func (r *Ri) PolygonV(args, tokens, values []Rter) error
- func (r *Ri) Procedural(args RtStringArray, bound RtBound, subdividefunc RtProcSubdivFunc, ...) error
- func (r *Ri) Procedural2(subdividefunc RtProc2SubdivFunc, boundfunc RtProc2BoundFunc, ...) error
- func (r *Ri) Projection(token RtToken, parameterlist ...Rter) error
- func (r *Ri) Quantize(typeof RtToken, one, min, max RtInt, ditheramplitude RtFloat) error
- func (r *Ri) QuantizeV(args, tokens, values []Rter) error
- func (r *Ri) ReadArchive(name RtToken, callback RtArchiveCallbackFunc, parameterlist ...Rter) error
- func (r *Ri) ReadArchiveV(args, tokens, values []Rter) error
- func (r *Ri) RelativeDetail(relativedetail RtFloat) error
- func (r *Ri) RelativeDetailV(args, tokens, values []Rter) error
- func (r *Ri) ResourceBegin() error
- func (r *Ri) ResourceEnd() error
- func (r *Ri) ReverseOrientation() error
- func (r *Ri) ReverseOrientationV(args, tokens, values []Rter) error
- func (r *Ri) Rotate(angle, dx, dy, dz RtFloat) error
- func (r *Ri) Scale(sx, sy, sz RtFloat) error
- func (r *Ri) ScopedCoordinateSystem(name RtString) error
- func (r *Ri) ScreenWindow(left, right, bottom, top RtFloat) error
- func (r *Ri) Shader(name RtToken, handle RtToken, parameterlist ...Rter) error
- func (r *Ri) ShadingInterpolation(typeof RtToken) error
- func (r *Ri) ShadingInterpolationV(args, tokens, values []Rter) error
- func (r *Ri) ShadingRate(size RtFloat) error
- func (r *Ri) ShadingRateV(args, tokens, values []Rter) error
- func (r *Ri) Shutter(min, max RtFloat) error
- func (r *Ri) Sides(sides RtInt) error
- func (r *Ri) SidesV(args, tokens, values []Rter) error
- func (r *Ri) Skew(angle, dx1, dy1, dz1, dx2, dy2, dz2 RtFloat) error
- func (r *Ri) SolidBegin(operation RtToken) error
- func (r *Ri) SolidEnd() error
- func (r *Ri) Sphere(radius, zmin, zmax, thetamax RtFloat, parameterlist ...Rter) error
- func (r *Ri) SubdivisionMesh(scheme RtToken, nfaces RtInt, nvertices, vertices RtIntArray, ntags RtInt, ...) error
- func (r *Ri) Surface(shadername RtToken, parameterlist ...Rter) error
- func (r *Ri) SurfaceV(args, tokens, values []Rter) error
- func (r *Ri) System(name RtString) error
- func (r *Ri) TextureCoordinates(s1, t1, s2, t2, s3, t3, s4, t4 RtFloat) error
- func (r *Ri) TextureCoordinatesV(args, tokens, values []Rter) error
- func (r *Ri) Torus(majorradius, minorradius, phimin, phimax, thetamax RtFloat, ...) error
- func (r *Ri) Transform(transform RtMatrix) error
- func (r *Ri) TransformBegin() error
- func (r *Ri) TransformEnd() error
- func (r *Ri) Translate(dx, dy, dz RtFloat) error
- func (r *Ri) TrimCurve(nloops RtInt, ncurves RtIntArray, order RtIntArray, knot RtFloatArray, ...) error
- func (r *Ri) User(reader RterReader) error
- func (r *Ri) VPAtmosphere(name RtToken, parameterlist ...Rter) error
- func (r *Ri) VPInterior(name RtToken, parameterlist ...Rter) error
- func (r *Ri) VPSurface(name RtToken, parameterlist ...Rter) error
- func (r *Ri) Volume(typeof RtToken, bound RtBound, dimensions RtIntArray, parameterlist ...Rter) error
- func (r *Ri) VolumePixelSamples(x RtFloat, y RtFloat) error
- func (r *Ri) WorldBegin(args ...RtAnnotation) error
- func (r *Ri) WorldEnd(args ...RtAnnotation) error
- func (r *Ri) WriteTo(name RtName, args, tokens, values []Rter) error
- type RiContexter
- type RtAnnotation
- type RtArchiveCallbackFunc
- type RtBasis
- type RtBoolean
- type RtBound
- type RtColor
- type RtError
- type RtErrorHandler
- type RtErrorHandlerFuncer
- type RtFilterFunc
- type RtFloat
- type RtFloatArray
- type RtHpoint
- type RtInt
- type RtIntArray
- type RtInterval
- type RtLightHandle
- type RtMatrix
- type RtName
- type RtNormal
- type RtObjectHandle
- type RtPoint
- type RtPointArray
- type RtProc2BoundFunc
- type RtProc2SubdivFunc
- type RtProcFreeFunc
- type RtProcSubdivFunc
- type RtShaderHandle
- type RtString
- type RtStringArray
- type RtToken
- type RtTokenArray
- type RtVector
- type Rtattr
- type Rter
- type RterArray
- type RterReader
- type RterWriter
- type ShaderHandler
- type ShaderNumberGenerator
- type ShaderUniqueGenerator
- type ShaderWriter
- type TestContext
- func (b *TestContext) CheckLightHandle(h RtLightHandle) error
- func (b *TestContext) CheckObjectHandle(h RtObjectHandle) error
- func (b *TestContext) CheckShaderHandle(h RtShaderHandle) error
- func (b *TestContext) CloseRaw(id RtToken) error
- func (b *TestContext) LightHandle() (RtLightHandle, error)
- func (b *TestContext) ObjectHandle() (RtObjectHandle, error)
- func (b *TestContext) OpenRaw(id RtToken) (ArchiveWriter, error)
- func (b *TestContext) Shader(h RtShaderHandle) ShaderWriter
- func (b *TestContext) ShaderHandle() (RtShaderHandle, error)
- func (b *TestContext) Write(name RtName, args, params, values []Rter) error
Constants ¶
const ( MinimalBloomFilterSize int = 16 DefaultBloomFilterSize int = 512 * 3 BloomFilterDoubleHashI0 int = 123 BloomFilterDoubleHashI1 int = 456 )
const ( ImplementationVersion = "3.2.1 November 2005" Major = 3 Minor = 2 Patch = 1 )
const ( PARAMETERLIST RtToken = "_PARAMETERLIST_" DEPTH RtName = "_DEPTH_" DEBUGBARRIER RtName = "-->" )
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" )
const ( RIBVersion RtFloat = 3.04 PrototypesBloomFilterKeys int = 137 )
const USEDEBUG = false /* FIXME: fails tests when true */
Variables ¶
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") )
var ( PrototypesBloomFilterData = []int{} /* 2432 elements not displayed */ PrototypesData string = "" /* 5176-byte string literal not displayed */ PrototypesIndices = []int{} /* 137 elements not displayed */ )
Functions ¶
func ClassTypeNameCount ¶
FIXME
func CorrectParser ¶
func RiPrototypes ¶
func RiPrototypes() map[RtName]*PrototypeInformation
Types ¶
type ArchiveWriter ¶
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) 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 (g *LightNumberGenerator) Check(h RtLightHandle) error
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 (g *LightUniqueGenerator) Check(h RtLightHandle) error
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 (g *ObjectNumberGenerator) Check(h RtObjectHandle) error
func (*ObjectNumberGenerator) Example ¶
func (g *ObjectNumberGenerator) Example() RtObjectHandle
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 (g *ObjectUniqueGenerator) Check(h RtObjectHandle) error
func (*ObjectUniqueGenerator) Example ¶
func (g *ObjectUniqueGenerator) Example() RtObjectHandle
func (*ObjectUniqueGenerator) Generate ¶
func (g *ObjectUniqueGenerator) Generate() (RtObjectHandle, error)
type PrototypeArgument ¶
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) 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 (*Ri) ArchiveBegin ¶
func (r *Ri) ArchiveBegin(id RtToken, parameterlist ...Rter) (ArchiveWriter, error)
func (*Ri) ArchiveEnd ¶
func (*Ri) ArchiveRecord ¶
ArchiveRecord
func (*Ri) ArchiveRecordV ¶
func (*Ri) AreaLightSource ¶
func (r *Ri) AreaLightSource(shadername RtToken, parameterlist ...Rter) (RtLightHandle, error)
AreaLightSource
func (*Ri) AreaLightSourceV ¶
func (*Ri) Atmosphere ¶
Atmosphere this procedure sets the current atmosphere shader.
func (*Ri) AtmosphereV ¶
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 (*Ri) AttributeEnd ¶
func (r *Ri) AttributeEnd(args ...RtAnnotation) error
AttributeEnd pop the current set of attributes
func (*Ri) AttributeEndV ¶
func (*Ri) AttributeV ¶
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) 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) Clipping ¶
Clipping sets the position of the near and far clipping planes along the direction of view.
func (*Ri) ClippingPlane ¶
ClippingPlane adds a user-specified clipping plane.
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 (*Ri) ConcatTransform ¶
ConcatTransform concatenate the transformation transform onto the current transformation.
func (*Ri) CoordSysTransform ¶
CoordSysTransform This function replaces the current transformation matrix with the matrix that * forms the name coordinate system.
func (*Ri) CoordinateSystem ¶
CoordinateSystem This function marks the coordinate system defined by the current transformation * with the name space and saves it
func (*Ri) CropWindow ¶
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) Deformation ¶
Deformation
func (*Ri) DepthOfField ¶
DepthOfField focaldistance sets the distance along the direction of view at which objects will be in focus.
func (*Ri) DetailRange ¶
DetailRange set the current detail range
func (*Ri) DetailRangeV ¶
func (*Ri) Displacement ¶
Displacement set the current displacement shader to the named shader.
func (*Ri) DisplacementV ¶
func (*Ri) DisplayChannel ¶
DisplayChannel
func (*Ri) EditAttributeBegin ¶
EditAttributeBegin
func (*Ri) EnableLightFilter ¶
func (r *Ri) EnableLightFilter(light RtLightHandle, filter RtToken, onoff RtBoolean) error
EnableLightFilter
func (*Ri) ErrorHandler ¶
func (r *Ri) ErrorHandler(handler RtErrorHandlerFuncer) error
ErrorHandler
func (*Ri) Exposure ¶
Exposure this functions controls the sensitivity and nonlinearity of the exposure process.
func (*Ri) Format ¶
Format set the horizontal and vertical resolution (in pixels) of the image to be rendered
func (*Ri) FrameAspectRatio ¶
FrameAspectRatio is the ration of the width to the height of the desired image.
func (*Ri) FrameBegin ¶
FrameBegin mark the beginning of a single frame of an animated sequenece
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 (*Ri) GeometricApproximation ¶
GeometricApproximation
func (*Ri) GeometricApproximationV ¶
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 ¶
Hyperboloid
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 (*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) LightFilter ¶
LightFilter
func (*Ri) LightSource ¶
func (r *Ri) LightSource(shadername RtToken, parameterlist ...Rter) (RtLightHandle, error)
LightSource create a non-area light
func (*Ri) LightSourceV ¶
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 (*Ri) MakeLatLongEnvironment ¶
func (r *Ri) MakeLatLongEnvironment(picturename, texturename RtString, filterfunc RtFilterFunc, swidth, twidth RtFloat, parameterlist ...Rter) error
MakeLatLongEnvironment
func (*Ri) MakeLatLongEnvironmentV ¶
func (*Ri) MakeShadow ¶
MakeShadow
func (*Ri) MakeShadowV ¶
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 (*Ri) MotionBeginV ¶
func (*Ri) MotionEndV ¶
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) Orientation ¶
Orientation This procedure sets the current orientation to be either "outside", "inside","lh","rh"
func (*Ri) OrientationV ¶
func (*Ri) Paraboloid ¶
Paraboloid
func (*Ri) ParseRIBString ¶
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 ¶
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 (*Ri) PixelSamples ¶
PixelSamples set the effective hider sampling rate in the horizontal and vertial directions
func (*Ri) PixelSamplesV ¶
func (*Ri) PixelVariance ¶
PixelVariance the color of a pixel computed by the rendering program
func (*Ri) PixelVarianceV ¶
func (*Ri) PointsGeneralPolygons ¶
func (r *Ri) PointsGeneralPolygons(nploys RtInt, nloops, nvertices, vertices RtIntArray, parameterlist ...Rter) error
PointsGeneralPolygons
func (*Ri) PointsGeneralPolygonsV ¶
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 (*Ri) Polygon ¶
Polygon nvertices is the number of vertices in a single closed planar convex polygen
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 ¶
Projection the project determines how camera coordinates are converted to screen coordinates
func (*Ri) ReadArchive ¶
func (r *Ri) ReadArchive(name RtToken, callback RtArchiveCallbackFunc, parameterlist ...Rter) error
ReadArchive
func (*Ri) ReadArchiveV ¶
func (*Ri) RelativeDetail ¶
RelativeDetail the relative level of detail scales the results of all level of detail calculations.
func (*Ri) RelativeDetailV ¶
func (*Ri) ReverseOrientation ¶
ReverseOrientation causes the current orientation to be toggled
func (*Ri) ReverseOrientationV ¶
func (*Ri) Rotate ¶
Rotate Concatenate a rotation of angle degrees about the given axis onto the current transformation
func (*Ri) ScopedCoordinateSystem ¶
ScopedCoordinateSystem
func (*Ri) ScreenWindow ¶
ScreenWindow this procedure defines a rectangle in the image plane.
func (*Ri) ShadingInterpolation ¶
ShadingInterpolation this function controls how values are interpolated between shading samples
func (*Ri) ShadingInterpolationV ¶
func (*Ri) ShadingRate ¶
ShadingRate set the current shading rate to size
func (*Ri) ShadingRateV ¶
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) TextureCoordinates ¶
TextureCoordinates set the current set of texture coordinates to the values
func (*Ri) TextureCoordinatesV ¶
func (*Ri) Torus ¶
func (r *Ri) Torus(majorradius, minorradius, phimin, phimax, thetamax RtFloat, parameterlist ...Rter) error
Torus
func (*Ri) TransformBegin ¶
TransformBegin Push the current transformation
func (*Ri) TransformEnd ¶
TransformEnd Pop 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 ¶
VPAtmosphere
func (*Ri) VPInterior ¶
VPInterior
func (*Ri) Volume ¶
func (r *Ri) Volume(typeof RtToken, bound RtBound, dimensions RtIntArray, parameterlist ...Rter) error
Volume
func (*Ri) VolumePixelSamples ¶
VolumePixelSamples
func (*Ri) WorldBegin ¶
func (r *Ri) WorldBegin(args ...RtAnnotation) error
WorldBegin is invoked, all rendering options are frozen
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 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 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 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 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 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 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" )
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 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 (g *ShaderNumberGenerator) Check(h RtShaderHandle) error
func (*ShaderNumberGenerator) Example ¶
func (g *ShaderNumberGenerator) Example() RtShaderHandle
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 (g *ShaderUniqueGenerator) Check(h RtShaderHandle) error
func (*ShaderUniqueGenerator) Example ¶
func (g *ShaderUniqueGenerator) Example() RtShaderHandle
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 (b *TestContext) Shader(h RtShaderHandle) ShaderWriter
func (*TestContext) ShaderHandle ¶
func (b *TestContext) ShaderHandle() (RtShaderHandle, error)
Source Files ¶
- additional.go
- archive.go
- attributes.go
- bloom.go
- conditionals.go
- definitions.go
- displays.go
- errors.go
- external.go
- geometric.go
- handles.go
- light.go
- object.go
- options.go
- parser.go
- patches.go
- procedurals.go
- prototypes.go
- quadrics.go
- ri.go
- ris.go
- shader.go
- solids.go
- state.go
- surfaces.go
- testcontext.go
- tokens.go
- transformations.go
- utilities.go