scene

package
v0.0.0-...-ac51c2f Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	FormatVersion float32
	Objects       int32
	Geometries    int32
	Materials     int32
	Textures      int32
}

type Scene

type Scene struct {
	sync.Mutex
	Triangles  []triangle.Triangle
	Vertices   []vertex.Vertex
	Normals    []vertex.Normal
	UVs        []vertex.UV
	Lights     []objects.Light
	Materials  []objects.Material
	Objects    []objects.Object
	Geometries []objects.Geometry
	Info       Metadata
	Camera     objects.Camera
}

func NewScene

func NewScene() (scene *Scene)

func (*Scene) GetGeometry

func (world *Scene) GetGeometry(id string) *objects.Geometry

func (*Scene) GetMaterial

func (world *Scene) GetMaterial(id string) *objects.Material

func (*Scene) HasGeometry

func (world *Scene) HasGeometry(id string) bool

func (*Scene) HasMaterial

func (world *Scene) HasMaterial(id string) bool

Directories

Path Synopsis
primitives

Jump to

Keyboard shortcuts

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