Versions in this module Expand all Collapse all v0 v0.0.1 Jun 15, 2021 Changes in this version + type Body []Model + func (b Body) Draw(g Globals) + func (b Body) Inspect() Summary + func (b Body) Realize(cleanup func(func())) error + func (b Body) Tick(delta, runtime time.Duration) bool + func (b Body) With(x ...mesh.Transform) Model + type Globals struct + Flatland mgl32.Mat4 + Lights Lights + World World + type Heading struct + Horizontal float64 + RadPerSec struct{ ... } + Vertical float64 + func (h *Heading) Orientation() *Orientation + func (h *Heading) SetDeg(v mgl32.Vec2) *Heading + func (h *Heading) Update(delta time.Duration, mV, mH Movement) + type Light struct + Ambient mgl32.Vec3 + Diffuse mgl32.Vec3 + Position mgl32.Vec3 + Specular mgl32.Vec3 + type Lights []Light + func (l Lights) Ambient() []mgl32.Vec3 + func (l Lights) Diffuse() []mgl32.Vec3 + func (l Lights) Position() []mgl32.Vec3 + func (l Lights) Specular() []mgl32.Vec3 + type Mesh struct + func Cube(pretty bool) *Mesh + func Cylinder(pretty bool) *Mesh + func Extrude(profile []mesh.Vec, path mesh.Vec, color mesh.ExtrudeColor) *Mesh + func Illuminati() *Mesh + func NewMesh(opt MeshOptions) *Mesh + func NewShape(desc string, shape geom.Shape) *Mesh + func Revolve(profile []mesh.Vec, axis mesh.Vec, resolution int, color mesh.RevolveColor) *Mesh + func Sphere(pretty bool) *Mesh + func Torus(r1, r2 float32, pretty bool) *Mesh + func (m *Mesh) Draw(g Globals) + func (m *Mesh) DrawTriangles() + func (m *Mesh) Inspect() Summary + func (m *Mesh) Realize(cleanup func(func())) error + func (m *Mesh) Setup(g Globals) + func (m *Mesh) Teardown() + func (m *Mesh) Tick(delta, runtime time.Duration) bool + func (m *Mesh) With(x ...mesh.Transform) Model + type MeshBinder func(position, normal, color glu.VertexAttrib) (vao glu.VertexArray, err error) + type MeshOptions struct + Color []mesh.Vec + Description string + Index []mesh.TriI + NoCull bool + Normal []mesh.Vec + Vertex []mesh.Vec + type Model interface + Draw func(g Globals) + Inspect func() Summary + Realize func(func(func())) error + Tick func(delta, runtime time.Duration) bool + With func(...mesh.Transform) Model + type Movement int + const Backward + const Forward + const None + type Orientation struct + Look mgl32.Vec3 + Right mgl32.Vec3 + Up mgl32.Vec3 + type Position struct + MovePerSec float64 + Value mgl32.Vec3 + View mgl32.Mat4 + func (p *Position) Update(delta time.Duration, mRight, mUp, mLook Movement, o *Orientation) + type Skybox struct + func (m *Skybox) Draw(g Globals) + func (m *Skybox) Inspect() Summary + func (m *Skybox) Realize(cleanup func(func())) error + func (m *Skybox) Tick(delta, runtime time.Duration) bool + func (m *Skybox) With(x ...mesh.Transform) Model + type Summary struct + Description string + Transformations []mesh.Transform + TriangleCount int + VertexCount int + Within []Summary + func (s Summary) String() string + type Text struct + Color mgl32.Vec4 + Font font.Face + Pos mgl32.Vec2 + Size float32 + Value string + func (m *Text) Draw(g Globals) + func (m *Text) Inspect() Summary + func (m *Text) Realize(cleanup func(func())) error + func (m *Text) Tick(delta, runtime time.Duration) bool + func (m *Text) With(x ...mesh.Transform) Model + type World struct + Camera mgl32.Vec3 + Projection mgl32.Mat4 + View mgl32.Mat4