Documentation ¶
Index ¶
- type Body
- type Globals
- type Heading
- type Light
- type Lights
- type Mesh
- 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
- type MeshOptions
- type Model
- type Movement
- type Orientation
- type Position
- type Skybox
- type Summary
- type Text
- type World
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Heading ¶
func (*Heading) Orientation ¶
func (h *Heading) Orientation() *Orientation
type Mesh ¶
type Mesh struct {
// contains filtered or unexported fields
}
func Illuminati ¶
func Illuminati() *Mesh
func NewMesh ¶
func NewMesh(opt MeshOptions) *Mesh
func (*Mesh) DrawTriangles ¶
func (m *Mesh) DrawTriangles()
type MeshBinder ¶
type MeshBinder func(position, normal, color glu.VertexAttrib) (vao glu.VertexArray, err error)
type MeshOptions ¶
type Orientation ¶
type Summary ¶
Click to show internal directories.
Click to hide internal directories.