graphics

package
v0.0.0-...-28487e8 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2012 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PidCam = scene.PType(3)
View Source
var PidLight = scene.PType(4)
View Source
var PidMesh = scene.PType(2)

Functions

This section is empty.

Types

type Camera

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

rename to "View" or something

func (*Camera) LookAt

func (c *Camera) LookAt(x, y, z float32)

to be called from other goroutines

func (*Camera) NearClip

func (c *Camera) NearClip(clip float32)

to be called from other goroutines

func (*Camera) Syn

func (c *Camera) Syn()

func (*Camera) Type

func (c *Camera) Type() scene.PType

type Light

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

func (*Light) Type

func (l *Light) Type() scene.PType

type Mesh

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

func (*Mesh) Syn

func (m *Mesh) Syn()

func (*Mesh) Type

func (m *Mesh) Type() scene.PType

type RenderSystem

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

func New

func New(s *scene.S) *RenderSystem

func (*RenderSystem) Ambient

func (sys *RenderSystem) Ambient(r, g, b float32)

func (*RenderSystem) Cam

func (sys *RenderSystem) Cam(name string) *Camera

func (*RenderSystem) Light

func (r *RenderSystem) Light(name string) *Light

func (*RenderSystem) Mesh

func (sys *RenderSystem) Mesh(name, src, rgroup string) *Mesh

func (*RenderSystem) Start

func (sys *RenderSystem) Start(s *scene.S)

func (*RenderSystem) Stop

func (sys *RenderSystem) Stop()

TODO: make synchronous, wait until teardown complete!

func (*RenderSystem) Syn

func (sys *RenderSystem) Syn()

func (*RenderSystem) Update

func (sys *RenderSystem) Update(timestep time.Duration) (stop bool, err error)

Jump to

Keyboard shortcuts

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