Versions in this module Expand all Collapse all v1 v1.3.1 Dec 16, 2013 Changes in this version + const RELEASED + func Box(hx, hy, hz float64) move.Body + func RenderMatrix(mm *lin.M4, rm *render.M4) *render.M4 + func Sphere(radius float64) move.Body type Director + Create func(eng Engine) + type Engine interface + Action func() + AddScene func(transform int) Scene + Color func(r, g, b, a float32) + Enable func(attr uint32, enabled bool) + Mute func(mute bool) + PlaceSoundListener func(x, y, z float64) + RemScene func(s Scene) + Resize func(x, y, width, height int) + SetCursorAt func(x, y int) + SetDirector func(director Director) + SetOverlay func(s Scene) + ShowCursor func(show bool) + Shutdown func() + Size func() (x, y, width, height int) + UseSound func(sound string) audio.SoundMaker + type Input struct + Control bool + Down map[string]int + Dt float64 + Focus bool + Gt float64 + Mx int + My int + Resized bool + Shift bool type Part + Push func(x, y, z float64) + Speed func() (x, y, z float64) + Spin func(x, y, z float64) + Stop func() + Turn func(x, y, z float64) v1.2.2 Sep 5, 2013 Changes in this version + const BLEND + const CULL + const DEPTH + const VF + const VO + const VP + const XAxis + const XZ_XY + const YAxis + const ZAxis + func PickDir(sx, sy int, fov, w, h, near, far float32, mv *lin.M4) *lin.V4 + type Director interface + Focus func(focus bool) + Resize func(x, y, width, height int) + Update func(userInput []string, gameTime, deltaTime float32) + type Eng struct + Dt float32 + Gt float32 + Xm int + Xp int + Ym int + Yp int + func New(name string, x, y, width, height int) (eng *Eng, err error) + func (eng *Eng) Action() + func (eng *Eng) AddScene(transform int) Scene + func (eng *Eng) AuditorLocation(x, y, z float32) + func (eng *Eng) BindModel(mesh *data.Mesh) error + func (eng *Eng) Color(r, g, b, a float32) + func (eng *Eng) Enable(attribute int, enabled bool) + func (eng *Eng) Load(data interface{}) + func (eng *Eng) LoadGlyphs(name string) + func (eng *Eng) LoadMaterial(name string) + func (eng *Eng) LoadMesh(name string) + func (eng *Eng) LoadShader(name string) + func (eng *Eng) LoadSound(name string) + func (eng *Eng) LoadTexture(name string) + func (eng *Eng) Loaded(name string, data interface{}) bool + func (eng *Eng) Mute(mute bool) + func (eng *Eng) RemScene(s Scene) + func (eng *Eng) ResizeViewport(x, y, width, height int) + func (eng *Eng) SetCursorAt(x, y int) + func (eng *Eng) SetDirector(director Director) + func (eng *Eng) SetOverlay(s Scene) + func (eng *Eng) ShowCursor(show bool) + func (eng *Eng) Shutdown() + func (eng *Eng) Size() (x, y, width, height int) + func (eng *Eng) UseSound(sound string) audio.SoundMaker + type Part interface + AddPart func() Part + Alpha func() float32 + AngularMomentum func() (x, y, z float32) + BannerWidth func() int + Collide func() + Dispose func() + Id func() int + LinearMomentum func() (x, y, z float32) + Location func() (x, y, z float32) + Move func(x, y, z float32) + RemBody func() + RemPart func(p Part) + ResetMomentum func() + RotateX func(degrees float32) + RotateY func(degrees float32) + RotateZ func(degrees float32) + Rotation func() (x, y, z, w float32) + Scale func() (x, y, z float32) + SetAlpha func(a float32) + SetAngularMomentum func(x, y, z float32) + SetBanner func(text, shader, glyphs, texture string) + SetBody func(size, mass float32) + SetCullable func(cullable bool) + SetFacade func(mesh, shader, material string) + SetLinearMomentum func(x, y, z float32) + SetLocation func(x, y, z float32) + SetMaterial func(materialName string) + SetResolver func(r func(contacts []*physics.Contact)) + SetRotation func(x, y, z, w float32) + SetScale func(x, y, z float32) + SetShape func(shape physics.Shape) + SetTexture func(textureName string, spin float32) + SetVisible func(visible bool) + UpdateBanner func(text string) + Visible func() bool + type Parts []*part + func (p Parts) Len() int + func (p Parts) Less(i, j int) bool + func (p Parts) Swap(i, j int) + type Reaction interface + Do func() + Name func() string + SetTime func() + Time func() time.Time + func NewReactOnce(name string, do func()) Reaction + func NewReaction(name string, do func()) Reaction + type Scene interface + AddPart func() Part + MoveView func(x, y, z float32) + PanView func(dir int, degrees float32) + PreviousViewLocation func() (x, y, z float32) + RemPart func(p Part) + Set2D func() + SetLightColour func(r, g, b float32) + SetLightLocation func(x, y, z float32) + SetOrthographic func(left, right, bottom, top, near, far float32) + SetPerspective func(fov, ratio, near, far float32) + SetSorted func(sorted bool) + SetTransform func(transform int) + SetViewLocation func(x, y, z float32) + SetViewRotation func(x, y, z, w float32) + SetViewTilt func(up float32) + SetVisible func(visible bool) + SetVisibleDirection func(facing bool) + SetVisibleRadius func(radius float32) + ViewLocation func() (x, y, z float32) + ViewRotation func() (x, y, z, w float32) + ViewTilt func() (up float32) + Visible func() bool