Documentation ¶
Overview ¶
Package render camera.go Defines a camera type used to control the opengl viewport.
Package render mesh.go Defines a mesh type used to descripe an object for rendering.
Package render renderer.go Defines a renderer in the graphics package.
Package render traits.go Defines traits that can be used to render objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Camera ¶
type Camera struct {
X, Y, Width, Height float32
}
Camera type used to hold the position of the camera.
type Renderer ¶
type Renderer interface { Begin() DrawRectangle(x, y, w, h float32, color uint32) Submit(ra munfall.Renderable) Flush() End() }
Renderer interface used to talk to renderers.
func CreateRenderer2D ¶
CreateRenderer2D used to create a renderer2d object correctly.
type RendersTraits ¶
type RendersTraits interface {
Render()
}
RendersTraits defines a collection of objects that can be used in conjunction with a world object to render traits.
func CreateRendersTraits2D ¶
func CreateRendersTraits2D(w munfall.World) RendersTraits
CreateRendersTraits2D creates a 2D implementation of RendersTraits.