Documentation ¶
Index ¶
- type BackgroundRenderer
- func (br *BackgroundRenderer) Collaborate(worldApp *g3nworld.WorldApp, collaboratingRenderer IG3nRenderer)
- func (br *BackgroundRenderer) GetRenderer(rendererName string) IG3nRenderer
- func (br *BackgroundRenderer) InitRenderLoop(worldApp *g3nworld.WorldApp) bool
- func (br *BackgroundRenderer) Layout(worldApp *g3nworld.WorldApp, ...)
- func (br *BackgroundRenderer) NewInternalMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
- func (br *BackgroundRenderer) NewRelatedMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3, ...) core.INode
- func (br *BackgroundRenderer) NewSolidAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
- func (br *BackgroundRenderer) NextCoordinate(g3n *g3nmash.G3nDetailedElement, totalElements int) (*g3nmash.G3nDetailedElement, *math32.Vector3)
- func (br *BackgroundRenderer) RenderElement(worldApp *g3nworld.WorldApp, g3nDetailedElement *g3nmash.G3nDetailedElement) bool
- type G3nCollection
- type G3nRenderType
- type GenericRenderer
- func (gr *GenericRenderer) Collaborate(worldApp *g3nworld.WorldApp, collaboratingRenderer IG3nRenderer)
- func (gr *GenericRenderer) GetRenderer(rendererName string) IG3nRenderer
- func (gr *GenericRenderer) GetRendererType() G3nRenderType
- func (gr *GenericRenderer) InitRenderLoop(worldApp *g3nworld.WorldApp) bool
- func (gr *GenericRenderer) Layout(worldApp *g3nworld.WorldApp, ...)
- func (gr *GenericRenderer) LayoutBase(worldApp *g3nworld.WorldApp, g3Renderer IG3nRenderer, ...)
- func (*GenericRenderer) NewInternalMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
- func (*GenericRenderer) NewRelatedMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3, ...) core.INode
- func (*GenericRenderer) NewSolidAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
- func (*GenericRenderer) NextCoordinate(g3n *g3nmash.G3nDetailedElement, totalElements int) (*g3nmash.G3nDetailedElement, *math32.Vector3)
- func (gr *GenericRenderer) RenderElement(worldApp *g3nworld.WorldApp, g3n *g3nmash.G3nDetailedElement) bool
- func (gr *GenericRenderer) Sort(worldApp *g3nworld.WorldApp, g3nRenderableElements G3nCollection) G3nCollection
- type IG3nRenderer
- type MashupRenderer
- func (mr *MashupRenderer) AddRenderer(genre string, renderer IG3nRenderer)
- func (mr *MashupRenderer) Collaborate(worldApp *g3nworld.WorldApp, collaboratingRenderer IG3nRenderer)
- func (mr *MashupRenderer) CollectElementByRenderer(worldApp *g3nworld.WorldApp, ...)
- func (mr *MashupRenderer) GetRenderer(rendererName string) IG3nRenderer
- func (mr *MashupRenderer) InitRenderLoop(worldApp *g3nworld.WorldApp) bool
- func (mr *MashupRenderer) Layout(worldApp *g3nworld.WorldApp, ...)
- func (mr *MashupRenderer) NewInternalMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
- func (mr *MashupRenderer) NewRelatedMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3, ...) core.INode
- func (mr *MashupRenderer) NewSolidAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
- func (mr *MashupRenderer) NextCoordinate(g3n *g3nmash.G3nDetailedElement, totalElements int) (*g3nmash.G3nDetailedElement, *math32.Vector3)
- func (mr *MashupRenderer) RenderElement(worldApp *g3nworld.WorldApp, g3n *g3nmash.G3nDetailedElement) bool
- func (mr *MashupRenderer) Sort(worldApp *g3nworld.WorldApp, g3nRenderableElements G3nCollection) G3nCollection
- type RelatedMesh
- type RelatedRenderer
- func (rr *RelatedRenderer) Layout(worldApp *g3nworld.WorldApp, ...)
- func (tr *RelatedRenderer) NewInternalMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
- func (tr *RelatedRenderer) NewRelatedMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3, ...) core.INode
- func (tr *RelatedRenderer) NewSolidAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
- func (tr *RelatedRenderer) NextCoordinate(g3n *g3nmash.G3nDetailedElement, totalElements int) (*g3nmash.G3nDetailedElement, *math32.Vector3)
- type TorusRenderer
- func (tr *TorusRenderer) Collaborate(worldApp *g3nworld.WorldApp, collaboratingRenderer IG3nRenderer)
- func (tr *TorusRenderer) Layout(worldApp *g3nworld.WorldApp, ...)
- func (tr *TorusRenderer) NewInternalMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
- func (tr *TorusRenderer) NewRelatedMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3, ...) core.INode
- func (tr *TorusRenderer) NewSolidAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
- func (tr *TorusRenderer) NextCoordinate(g3n *g3nmash.G3nDetailedElement, totalElements int) (*g3nmash.G3nDetailedElement, *math32.Vector3)
- func (tr *TorusRenderer) RemoveAll(worldApp *g3nworld.WorldApp, childId int64)
- func (tr *TorusRenderer) RenderElement(worldApp *g3nworld.WorldApp, g3nDetailedElement *g3nmash.G3nDetailedElement) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackgroundRenderer ¶
type BackgroundRenderer struct { GenericRenderer CollaboratingRenderer IG3nRenderer ActiveColor *math32.Color }
func (*BackgroundRenderer) Collaborate ¶
func (br *BackgroundRenderer) Collaborate(worldApp *g3nworld.WorldApp, collaboratingRenderer IG3nRenderer)
func (*BackgroundRenderer) GetRenderer ¶
func (br *BackgroundRenderer) GetRenderer(rendererName string) IG3nRenderer
func (*BackgroundRenderer) InitRenderLoop ¶
func (br *BackgroundRenderer) InitRenderLoop(worldApp *g3nworld.WorldApp) bool
func (*BackgroundRenderer) Layout ¶
func (br *BackgroundRenderer) Layout(worldApp *g3nworld.WorldApp, g3nRenderableElements []*g3nmash.G3nDetailedElement)
func (*BackgroundRenderer) NewInternalMeshAtPosition ¶
func (br *BackgroundRenderer) NewInternalMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
func (*BackgroundRenderer) NewRelatedMeshAtPosition ¶
func (br *BackgroundRenderer) NewRelatedMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3, vprevpos *math32.Vector3) core.INode
func (*BackgroundRenderer) NewSolidAtPosition ¶
func (br *BackgroundRenderer) NewSolidAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
func (*BackgroundRenderer) NextCoordinate ¶
func (br *BackgroundRenderer) NextCoordinate(g3n *g3nmash.G3nDetailedElement, totalElements int) (*g3nmash.G3nDetailedElement, *math32.Vector3)
func (*BackgroundRenderer) RenderElement ¶
func (br *BackgroundRenderer) RenderElement(worldApp *g3nworld.WorldApp, g3nDetailedElement *g3nmash.G3nDetailedElement) bool
type G3nCollection ¶
type G3nCollection []*g3nmash.G3nDetailedElement
func (G3nCollection) Len ¶
func (a G3nCollection) Len() int
func (G3nCollection) Less ¶
func (a G3nCollection) Less(i, j int) bool
func (G3nCollection) Swap ¶
func (a G3nCollection) Swap(i, j int)
type G3nRenderType ¶
type G3nRenderType string
const ( NONE G3nRenderType = "" LAYOUT G3nRenderType = "Layout" )
type GenericRenderer ¶
type GenericRenderer struct {
RendererType G3nRenderType
}
func (*GenericRenderer) Collaborate ¶
func (gr *GenericRenderer) Collaborate(worldApp *g3nworld.WorldApp, collaboratingRenderer IG3nRenderer)
func (*GenericRenderer) GetRenderer ¶
func (gr *GenericRenderer) GetRenderer(rendererName string) IG3nRenderer
func (*GenericRenderer) GetRendererType ¶
func (gr *GenericRenderer) GetRendererType() G3nRenderType
func (*GenericRenderer) InitRenderLoop ¶
func (gr *GenericRenderer) InitRenderLoop(worldApp *g3nworld.WorldApp) bool
func (*GenericRenderer) Layout ¶
func (gr *GenericRenderer) Layout(worldApp *g3nworld.WorldApp, g3nRenderableElements []*g3nmash.G3nDetailedElement)
func (*GenericRenderer) LayoutBase ¶
func (gr *GenericRenderer) LayoutBase(worldApp *g3nworld.WorldApp, g3Renderer IG3nRenderer, g3nRenderableElements []*g3nmash.G3nDetailedElement)
func (*GenericRenderer) NewInternalMeshAtPosition ¶
func (*GenericRenderer) NewInternalMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
func (*GenericRenderer) NewRelatedMeshAtPosition ¶
func (*GenericRenderer) NewRelatedMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3, vprevpos *math32.Vector3) core.INode
func (*GenericRenderer) NewSolidAtPosition ¶
func (*GenericRenderer) NewSolidAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
func (*GenericRenderer) NextCoordinate ¶
func (*GenericRenderer) NextCoordinate(g3n *g3nmash.G3nDetailedElement, totalElements int) (*g3nmash.G3nDetailedElement, *math32.Vector3)
func (*GenericRenderer) RenderElement ¶
func (gr *GenericRenderer) RenderElement(worldApp *g3nworld.WorldApp, g3n *g3nmash.G3nDetailedElement) bool
func (*GenericRenderer) Sort ¶
func (gr *GenericRenderer) Sort(worldApp *g3nworld.WorldApp, g3nRenderableElements G3nCollection) G3nCollection
type IG3nRenderer ¶
type IG3nRenderer interface { NewSolidAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode NewInternalMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode NewRelatedMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3, vprevpos *math32.Vector3) core.INode NextCoordinate(g3n *g3nmash.G3nDetailedElement, totalElements int) (*g3nmash.G3nDetailedElement, *math32.Vector3) Sort(worldApp *g3nworld.WorldApp, g3nRenderableElements G3nCollection) G3nCollection Layout(worldApp *g3nworld.WorldApp, g3nRenderableElements []*g3nmash.G3nDetailedElement) InitRenderLoop(worldApp *g3nworld.WorldApp) bool RenderElement(worldApp *g3nworld.WorldApp, g3n *g3nmash.G3nDetailedElement) bool GetRenderer(rendererName string) IG3nRenderer GetRendererType() G3nRenderType Collaborate(worldApp *g3nworld.WorldApp, renderer IG3nRenderer) }
type MashupRenderer ¶
type MashupRenderer struct { GenericRenderer // contains filtered or unexported fields }
func (*MashupRenderer) AddRenderer ¶
func (mr *MashupRenderer) AddRenderer(genre string, renderer IG3nRenderer)
func (*MashupRenderer) Collaborate ¶
func (mr *MashupRenderer) Collaborate(worldApp *g3nworld.WorldApp, collaboratingRenderer IG3nRenderer)
func (*MashupRenderer) CollectElementByRenderer ¶
func (mr *MashupRenderer) CollectElementByRenderer(worldApp *g3nworld.WorldApp, elementsByRenderer map[string][]*g3nmash.G3nDetailedElement, concreteG3nRenderableElement *g3nmash.G3nDetailedElement)
func (*MashupRenderer) GetRenderer ¶
func (mr *MashupRenderer) GetRenderer(rendererName string) IG3nRenderer
func (*MashupRenderer) InitRenderLoop ¶
func (mr *MashupRenderer) InitRenderLoop(worldApp *g3nworld.WorldApp) bool
func (*MashupRenderer) Layout ¶
func (mr *MashupRenderer) Layout(worldApp *g3nworld.WorldApp, g3nRenderableElementCollection []*g3nmash.G3nDetailedElement)
func (*MashupRenderer) NewInternalMeshAtPosition ¶
func (mr *MashupRenderer) NewInternalMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
func (*MashupRenderer) NewRelatedMeshAtPosition ¶
func (mr *MashupRenderer) NewRelatedMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3, vprevpos *math32.Vector3) core.INode
func (*MashupRenderer) NewSolidAtPosition ¶
func (mr *MashupRenderer) NewSolidAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
func (*MashupRenderer) NextCoordinate ¶
func (mr *MashupRenderer) NextCoordinate(g3n *g3nmash.G3nDetailedElement, totalElements int) (*g3nmash.G3nDetailedElement, *math32.Vector3)
func (*MashupRenderer) RenderElement ¶
func (mr *MashupRenderer) RenderElement(worldApp *g3nworld.WorldApp, g3n *g3nmash.G3nDetailedElement) bool
func (*MashupRenderer) Sort ¶
func (mr *MashupRenderer) Sort(worldApp *g3nworld.WorldApp, g3nRenderableElements G3nCollection) G3nCollection
type RelatedMesh ¶
type RelatedRenderer ¶
type RelatedRenderer struct { GenericRenderer // contains filtered or unexported fields }
func (*RelatedRenderer) Layout ¶
func (rr *RelatedRenderer) Layout(worldApp *g3nworld.WorldApp, g3nRenderableElements []*g3nmash.G3nDetailedElement)
func (*RelatedRenderer) NewInternalMeshAtPosition ¶
func (tr *RelatedRenderer) NewInternalMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
func (*RelatedRenderer) NewRelatedMeshAtPosition ¶
func (tr *RelatedRenderer) NewRelatedMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3, vprevpos *math32.Vector3) core.INode
func (*RelatedRenderer) NewSolidAtPosition ¶
func (tr *RelatedRenderer) NewSolidAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
func (*RelatedRenderer) NextCoordinate ¶
func (tr *RelatedRenderer) NextCoordinate(g3n *g3nmash.G3nDetailedElement, totalElements int) (*g3nmash.G3nDetailedElement, *math32.Vector3)
type TorusRenderer ¶
type TorusRenderer struct { GenericRenderer ActiveColor **math32.Color // contains filtered or unexported fields }
func (*TorusRenderer) Collaborate ¶
func (tr *TorusRenderer) Collaborate(worldApp *g3nworld.WorldApp, collaboratingRenderer IG3nRenderer)
func (*TorusRenderer) Layout ¶
func (tr *TorusRenderer) Layout(worldApp *g3nworld.WorldApp, g3nRenderableElements []*g3nmash.G3nDetailedElement)
func (*TorusRenderer) NewInternalMeshAtPosition ¶
func (tr *TorusRenderer) NewInternalMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
func (*TorusRenderer) NewRelatedMeshAtPosition ¶
func (tr *TorusRenderer) NewRelatedMeshAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3, vprevpos *math32.Vector3) core.INode
func (*TorusRenderer) NewSolidAtPosition ¶
func (tr *TorusRenderer) NewSolidAtPosition(g3n *g3nmash.G3nDetailedElement, vpos *math32.Vector3) core.INode
func (*TorusRenderer) NextCoordinate ¶
func (tr *TorusRenderer) NextCoordinate(g3n *g3nmash.G3nDetailedElement, totalElements int) (*g3nmash.G3nDetailedElement, *math32.Vector3)
func (*TorusRenderer) RemoveAll ¶
func (tr *TorusRenderer) RemoveAll(worldApp *g3nworld.WorldApp, childId int64)
func (*TorusRenderer) RenderElement ¶
func (tr *TorusRenderer) RenderElement(worldApp *g3nworld.WorldApp, g3nDetailedElement *g3nmash.G3nDetailedElement) bool
Click to show internal directories.
Click to hide internal directories.