scene

package
v0.0.0-...-f623fcb Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	math.TransformContext
	// contains filtered or unexported fields
}

Group is a group of geometry objects, and also implements the geometry.Object interface.

func (*Group) Add

func (g *Group) Add(geo ...object.Object) *Group

func (*Group) IterObjects

func (g *Group) IterObjects(iter func(o object.Object, modelMatrix math.Matrix) bool)

func (*Group) Type

func (g *Group) Type() object.Type

type Scene

type Scene struct {
	// contains filtered or unexported fields
}

Scene is a scene graph

func NewScene

func NewScene() *Scene

func (*Scene) Add

func (s *Scene) Add(geo ...object.Object) *Group

func (*Scene) Center

func (s *Scene) Center() math.Vector

func (*Scene) GetCamera

func (s *Scene) GetCamera() camera.Interface

func (*Scene) IterObjects

func (s *Scene) IterObjects(iter func(o object.Object, modelMatrix math.Matrix) bool)

func (*Scene) SetCamera

func (s *Scene) SetCamera(c camera.Interface)

Jump to

Keyboard shortcuts

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