Documentation ¶
Index ¶
- Constants
- type Camera
- func (c *Camera) ProjectionMatrix() mgl32.Mat4
- func (c *Camera) ResetAngleAndY(windowWidth, windowHeight int32)
- func (c *Camera) Rotate(yaw float32, pitch float32)
- func (c *Camera) SetY(y float32)
- func (c *Camera) UpdateVisibleZRange(width int32, height int32)
- func (c *Camera) ViewMatrix() mgl32.Mat4
- type Projection
Constants ¶
View Source
const ( Yaw = float32(270.0) Pitch = float32(-60.0) )
View Source
const (
Perspective = Projection(iota)
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Camera ¶
func NewPerspectiveCamera ¶
func (*Camera) ProjectionMatrix ¶
func (*Camera) ResetAngleAndY ¶
func (*Camera) UpdateVisibleZRange ¶
func (*Camera) ViewMatrix ¶
type Projection ¶
type Projection int
Click to show internal directories.
Click to hide internal directories.