Documentation ¶
Index ¶
- Constants
- type IMaster
- type ModelNode
- func (node *ModelNode) AddSlave(slave ...*ModelSlaveNode) error
- func (node *ModelNode) Draw(shader Shader.IShaderProgram, invoker coreScene.IDrawable, ...) error
- func (node *ModelNode) SetBase(base Scene.INode)
- func (node *ModelNode) Tick(timeDelta float32) error
- func (node *ModelNode) UnmarshalYAML(value *yaml.Node) error
- type ModelPlacementNode
- type ModelSlaveNode
Constants ¶
View Source
const ModelNodeFactoryName = "Node.ModelNode"
View Source
const ModelPlacementNodeFactoryName = "Node.ModelNode.ModelPlacementNode"
View Source
const ModelSlaveNodeFactoryName = "Node.ModelNode.ModelSlaveNode"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelNode ¶
type ModelNode struct { Scene.INode Model.Model IsTransparent bool Shader Shader.IShaderProgram MasterMatrix GeometryMath.Matrix4x4 Slaves []*ModelSlaveNode }
func (*ModelNode) AddSlave ¶
func (node *ModelNode) AddSlave(slave ...*ModelSlaveNode) error
func (*ModelNode) UnmarshalYAML ¶
type ModelPlacementNode ¶
type ModelPlacementNode struct { ModelNode Terrain.PlacementMap RandomGenerator *rand.Rand AddToParent bool }
func (*ModelPlacementNode) AddSlavesToSceneGraph ¶
func (node *ModelPlacementNode) AddSlavesToSceneGraph()
func (*ModelPlacementNode) PlaceModels ¶
func (node *ModelPlacementNode) PlaceModels() error
func (*ModelPlacementNode) SetParent ¶
func (node *ModelPlacementNode) SetParent(parent Scene.INode, childID string)
func (*ModelPlacementNode) UnmarshalYAML ¶
func (node *ModelPlacementNode) UnmarshalYAML(value *yaml.Node) error
type ModelSlaveNode ¶
func (*ModelSlaveNode) GetBoundingVolume ¶
func (node *ModelSlaveNode) GetBoundingVolume() BoundingVolume.IBoundingVolume
func (*ModelSlaveNode) SetBase ¶
func (node *ModelSlaveNode) SetBase(base Scene.INode)
func (*ModelSlaveNode) Tick ¶
func (node *ModelSlaveNode) Tick(timeDelta float32) error
func (*ModelSlaveNode) UnmarshalYAML ¶
func (node *ModelSlaveNode) UnmarshalYAML(value *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.