ModelNode

package
v0.0.0-...-9749107 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: GPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

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 IMaster

type IMaster interface {
	Scene.INode
	AddSlave(node ...*ModelSlaveNode) error
}

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) Draw

func (node *ModelNode) Draw(shader Shader.IShaderProgram, invoker coreScene.IDrawable, scene coreScene.IScene, camera Camera.ICamera) error

func (*ModelNode) SetBase

func (node *ModelNode) SetBase(base Scene.INode)

func (*ModelNode) Tick

func (node *ModelNode) Tick(timeDelta float32) error

func (*ModelNode) UnmarshalYAML

func (node *ModelNode) UnmarshalYAML(value *yaml.Node) error

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

type ModelSlaveNode struct {
	Scene.INode
	Mesh.IMesh
	Master   IMaster
	MasterID string
}

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

Jump to

Keyboard shortcuts

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