Documentation ¶
Overview ¶
rigo/presets.go
Index ¶
- Constants
- Variables
- func CustomEntityPipeline(pipe *Pipe) *Ri
- func DefaultPipeline(config *Configuration) (*Ri, *Pipe)
- func EntityPipeline() (*Ri, *Pipe)
- func RI(ctx RiContexter) *Ri
- func RIS(ctx RisContexter) *Ris
- func StrictPipeline() (*Ri, *Pipe)
- type Configuration
- type Context
- func (ctx *Context) CloseRaw(id RtToken) error
- func (ctx *Context) GetShader(sh RtShaderHandle) Shader
- func (ctx *Context) OpenRaw(id RtToken) (ArchiveWriter, error)
- func (ctx *Context) SetShader(sh RtShaderHandle, s Shader)
- func (ctx *Context) Shader(sh RtShaderHandle) ShaderWriter
- func (ctx *Context) Write(name RtName, args, params []Rter, values []Rter) error
- type FilterStringHandles
- type HandleManager
- func (mgr *HandleManager) CheckLightHandle(h RtLightHandle) error
- func (mgr *HandleManager) CheckObjectHandle(h RtObjectHandle) error
- func (mgr *HandleManager) CheckShaderHandle(h RtShaderHandle) error
- func (mgr *HandleManager) LightHandle() (RtLightHandle, error)
- func (mgr *HandleManager) ObjectHandle() (RtObjectHandle, error)
- func (mgr *HandleManager) ShaderHandle() (RtShaderHandle, error)
- type HandleManagerer
- type Info
- type LightHandlerCallback
- type Pipe
- func (p *Pipe) Append(block Piper) *Pipe
- func (p *Pipe) Get(idx int) Piper
- func (p *Pipe) GetByName(name string) Piper
- func (p *Pipe) Last() Piper
- func (p *Pipe) Len() int
- func (p *Pipe) List() []string
- func (p *Pipe) Run(name RtName, args, list []Rter, info Info) error
- func (p *Pipe) String() string
- func (p *Pipe) ToRaw() ArchiveWriter
- type PipeHookHandleCallback
- type PipeIssue0001Fix
- type PipeTimer
- type PipeToDebugBuffer
- type PipeToFile
- type PipeToPrettyPrint
- type PipeToStats
- type Piper
- type Result
Constants ¶
View Source
const (
Author RtToken = "RiGO;ver 0"
)
Variables ¶
View Source
var ( ErrInvalidContextHandle = fmt.Errorf("Invalid Context Handle") ErrContextAlreadyExists = fmt.Errorf("Context Already Exists") ErrNoActiveContext = fmt.Errorf("No Active Context") ErrNotImplemented = fmt.Errorf("Not Implemented") ErrPipeDone = fmt.Errorf("Pipe Done") ErrEndOfLine = fmt.Errorf("End of Line") ErrSkipPipe = fmt.Errorf("Skip Rest of Pipe") )
Functions ¶
func CustomEntityPipeline ¶
func CustomEntityPipeline(pipe *Pipe) *Ri
func DefaultPipeline ¶
func DefaultPipeline(config *Configuration) (*Ri, *Pipe)
func EntityPipeline ¶
func EntityPipeline() (*Ri, *Pipe)
func StrictPipeline ¶
func StrictPipeline() (*Ri, *Pipe)
Types ¶
type Configuration ¶
type Context ¶
type Context struct { HandleManagerer Info // contains filtered or unexported fields }
func NewContext ¶
func NewContext(pipe *Pipe, mgr HandleManagerer, config *Configuration) *Context
type FilterStringHandles ¶
type FilterStringHandles struct{}
func (FilterStringHandles) Name ¶
func (p FilterStringHandles) Name() string
func (*FilterStringHandles) Pipe ¶
func (p *FilterStringHandles) Pipe(name RtName, args, params, values []Rter, info Info) *Result
func (*FilterStringHandles) ToRaw ¶
func (p *FilterStringHandles) ToRaw() ArchiveWriter
type HandleManager ¶
type HandleManager struct {
// contains filtered or unexported fields
}
func NewHandleManager ¶
func NewHandleManager(object ObjectHandler, light LightHandler, shader ShaderHandler) *HandleManager
func (*HandleManager) CheckLightHandle ¶
func (mgr *HandleManager) CheckLightHandle(h RtLightHandle) error
func (*HandleManager) CheckObjectHandle ¶
func (mgr *HandleManager) CheckObjectHandle(h RtObjectHandle) error
func (*HandleManager) CheckShaderHandle ¶
func (mgr *HandleManager) CheckShaderHandle(h RtShaderHandle) error
func (*HandleManager) LightHandle ¶
func (mgr *HandleManager) LightHandle() (RtLightHandle, error)
func (*HandleManager) ObjectHandle ¶
func (mgr *HandleManager) ObjectHandle() (RtObjectHandle, error)
func (*HandleManager) ShaderHandle ¶
func (mgr *HandleManager) ShaderHandle() (RtShaderHandle, error)
type HandleManagerer ¶
type HandleManagerer interface { /* Light... */ LightHandle() (RtLightHandle, error) CheckLightHandle(RtLightHandle) error /* Object... */ ObjectHandle() (RtObjectHandle, error) CheckObjectHandle(RtObjectHandle) error /* Shader... */ ShaderHandle() (RtShaderHandle, error) CheckShaderHandle(RtShaderHandle) error }
HandleManager -- Collects all the handle management
type Info ¶
type LightHandlerCallback ¶
type LightHandlerCallback func(RtName, RtLightHandle)
example of callbacks for light handle usage
type Pipe ¶
func DefaultFilePipe ¶
func DefaultFilePipe() *Pipe
TODO: move defualt and null to presets/or delete
func NewEmptyPipe ¶
func NewEmptyPipe() *Pipe
NewEmptyPipe -- does not include any issue fixes/used mainly for regression testing
type PipeHookHandleCallback ¶
type PipeHookHandleCallback struct {
LightHandler LightHandlerCallback
}
func (*PipeHookHandleCallback) Name ¶
func (p *PipeHookHandleCallback) Name() string
func (*PipeHookHandleCallback) Pipe ¶
func (p *PipeHookHandleCallback) Pipe(name RtName, args, params, values []Rter, info Info) *Result
func (*PipeHookHandleCallback) ToRaw ¶
func (p *PipeHookHandleCallback) ToRaw() ArchiveWriter
type PipeIssue0001Fix ¶
type PipeIssue0001Fix struct { Insession bool /* have you seen a RiBegin */ VersionSeen bool /* have you already seen a version name token*/ }
func (*PipeIssue0001Fix) Name ¶
func (p *PipeIssue0001Fix) Name() string
func (*PipeIssue0001Fix) Pipe ¶
func (p *PipeIssue0001Fix) Pipe(name RtName, args, params, values []Rter, info Info) *Result
func (*PipeIssue0001Fix) ToRaw ¶
func (p *PipeIssue0001Fix) ToRaw() ArchiveWriter
type PipeTimer ¶
type PipeTimer struct {
// contains filtered or unexported fields
}
Time from Begin to End
type PipeToDebugBuffer ¶
func (*PipeToDebugBuffer) Name ¶
func (p *PipeToDebugBuffer) Name() string
func (*PipeToDebugBuffer) Pipe ¶
func (p *PipeToDebugBuffer) Pipe(name RtName, args, params, values []Rter, info Info) *Result
func (*PipeToDebugBuffer) String ¶
func (p *PipeToDebugBuffer) String() string
func (*PipeToDebugBuffer) ToRaw ¶
func (p *PipeToDebugBuffer) ToRaw() ArchiveWriter
type PipeToFile ¶
type PipeToFile struct {
// contains filtered or unexported fields
}
Pipe RI output to file
func (PipeToFile) Name ¶
func (p PipeToFile) Name() string
func (*PipeToFile) Pipe ¶
func (p *PipeToFile) Pipe(name RtName, args, params, values []Rter, info Info) *Result
func (*PipeToFile) ToRaw ¶
func (p *PipeToFile) ToRaw() ArchiveWriter
type PipeToPrettyPrint ¶
type PipeToPrettyPrint struct {
Depth int
}
func (*PipeToPrettyPrint) Name ¶
func (p *PipeToPrettyPrint) Name() string
func (*PipeToPrettyPrint) Pipe ¶
func (p *PipeToPrettyPrint) Pipe(name RtName, args, params, values []Rter, info Info) *Result
func (*PipeToPrettyPrint) ToRaw ¶
func (p *PipeToPrettyPrint) ToRaw() ArchiveWriter
type PipeToStats ¶
type PipeToStats struct {
Stats map[RtName]int
}
Pipe RI output to gathered states
func (PipeToStats) Name ¶
func (p PipeToStats) Name() string
func (*PipeToStats) Pipe ¶
func (p *PipeToStats) Pipe(name RtName, args, params, values []Rter, info Info) *Result
func (*PipeToStats) String ¶
func (p *PipeToStats) String() string
func (*PipeToStats) ToRaw ¶
func (p *PipeToStats) ToRaw() ArchiveWriter
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
bunny
rigo/examples/bunny/bunny.go * render the Standford Bunny just using RiGO
|
rigo/examples/bunny/bunny.go * render the Standford Bunny just using RiGO |
regressions
|
|
rigo/definitions.go rigo/ri/handles.go rigo/ri/handles.go rigo/ri/handles.go rigo/ri/handles.go
|
rigo/definitions.go rigo/ri/handles.go rigo/ri/handles.go rigo/ri/handles.go rigo/ri/handles.go |
headers
RtToken generator
|
RtToken generator |
rib
rigo/ri/rib/parser.go
|
rigo/ri/rib/parser.go |
xml args parser
|
xml args parser |
Click to show internal directories.
Click to hide internal directories.