Documentation ¶
Index ¶
- Constants
- Variables
- type Geometry
- type Graphic
- type Plane
- type RenderInfo
- type Sprite
- type Texture
- type TextureProvider
- type Transform
- func (t *Transform) Model() mgl32.Mat4
- func (t *Transform) Position() mgl32.Vec3
- func (t *Transform) Rotation() mgl32.Quat
- func (t *Transform) Scale() mgl32.Vec3
- func (t *Transform) SetPosition(position mgl32.Vec3)
- func (t *Transform) SetRotation(rotation mgl32.Quat)
- func (t *Transform) SetScale(scale mgl32.Vec3)
- type UniqueRGBA
Constants ¶
View Source
const (
OnePixelSize = 1.0 / 35.0
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Geometry ¶
type Geometry struct {
// contains filtered or unexported fields
}
func NewGeometry ¶
func NewGeometry() *Geometry
func (*Geometry) SetIndices ¶
type Graphic ¶
type Graphic struct { *Transform // contains filtered or unexported fields }
func NewGraphic ¶
type RenderInfo ¶
type Sprite ¶
func (*Sprite) SetTexture ¶
type Texture ¶
type Texture struct {
// contains filtered or unexported fields
}
func NewTextureFromRGBA ¶
func NewTextureFromRGBA(rgba *UniqueRGBA) (tex *Texture, err error)
type TextureProvider ¶
type TextureProvider interface {
NewTextureFromRGBA(rgba *UniqueRGBA) (tex *Texture, err error)
}
type Transform ¶
type Transform struct {
// contains filtered or unexported fields
}
func NewTransform ¶
func (*Transform) SetPosition ¶
func (*Transform) SetRotation ¶
type UniqueRGBA ¶
func NewUniqueRGBA ¶
func NewUniqueRGBA(r image.Rectangle) *UniqueRGBA
Source Files ¶
Click to show internal directories.
Click to hide internal directories.