Documentation
¶
Index ¶
- Variables
- func Ambient(tag string, intensity float32, color math.Color) *light
- func Aspect(w *glfw.Window) float32
- func Axis(tag string, size float32) *lines
- func Directional(tag string) *light
- func NewLines(tag string, g geometry.Geometry, m material.Material) *lines
- func Point(tag string) *light
- func RegisterWith() lua.RegisterWith
- func Sphere(tag string) *sphere
- func Spot(tag string) *light
- type Actor
- type Cam
- type CamT
- type Comparer
- type Counter
- type Grapher
- type LightKind
- type Lighter
- type NIter
- type Node
- func Bind() Node
- func Camera(tag string, c *cam) Node
- func Direction(tag string, vec math.Vector) Node
- func Dummy(tag string) Node
- func Group(tag string, ns ...Node) Node
- func Position(tag string) Node
- func Program() Node
- func Root(tag string) Node
- func Rotate(tag string, q math.Quaternion) Node
- func Scale(tag string, vec math.Vector) Node
- func Translate(tag string, vec math.Vector) Node
- type Plane
- type Recurser
- type RelationDir
- type RenderFunc
- type Renderable
- type Scene
- type TagFunc
- type Tagger
- type Terminater
- type Transform
- type TransformT
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CameraFromStringError = xrror.Xrror("%s is not a camera that can be specified from a single string").Out
)
View Source
var LightIndex indexLights
View Source
var NodeRelationError = xrror.Xrror("%s is not a direction for node relation %s").Out
Functions ¶
func Directional ¶
func Directional(tag string) *light
func RegisterWith ¶
func RegisterWith() lua.RegisterWith
Types ¶
type Grapher ¶
type Grapher interface {
In() []Node
Out() []Node
Append(RelationDir, ...Node) error
Prepend(RelationDir, ...Node) error
Remove()
Replace(Node)
Iter(RelationDir, NIter)
}
type Node ¶
type Node interface {
Tagger
Recurser
Renderable
Actor
Grapher
Comparer
Counter
Terminater
}
type RelationDir ¶
type RelationDir int
const ( NIN RelationDir = iota NOUT UNKNOWNDIR )
func (RelationDir) String ¶
func (r RelationDir) String() string
type RenderFunc ¶
type Renderable ¶
type Scene ¶
func (*Scene) Updateable ¶
type Terminater ¶
type TransformT ¶
type TransformT int
const ( UNKNOWN_TRANSFORM TransformT = iota TRANSLATE SCALE ROTATE DIRECTION )
func (TransformT) String ¶
func (t TransformT) String() string
Click to show internal directories.
Click to hide internal directories.