Documentation ¶
Index ¶
- Constants
- func Begin(prim uint32, size float32)
- func DrawCylinder(minx, miny, minz, maxx, maxy, maxz float32, col uint32)
- func DuLerpCol(ca, cb, u uint32) uint32
- func DuMultCol(col, d uint32) uint32
- func DuRGBA(r, g, b, a uint32) uint32
- func End()
- func InitSDL()
- func QuitSDL()
- func Texture(state bool)
- func Vertex(pos []float32, color uint32, uv [2]float32)
- func Vertex2(x, y, z float32, color uint32)
- type GLCheckerTexture
- type ISceneExtra
- type Scene
- func (s *Scene) BeforeDraw()
- func (s *Scene) Destroy()
- func (s *Scene) Draw()
- func (s *Scene) DrawMesh()
- func (s *Scene) OnKeyboardDown(evt *sdl.KeyboardEvent)
- func (s *Scene) OnMouseButton(evt *sdl.MouseButtonEvent)
- func (s *Scene) OnMouseMotion(evt *sdl.MouseMotionEvent)
- func (s *Scene) OnMouseWheel(evt *sdl.MouseWheelEvent)
- func (s *Scene) Run(ctx context.Context)
- func (s *Scene) SetCamera()
- func (s *Scene) SetExtraInterface(i ISceneExtra)
Constants ¶
View Source
const (
LButtonUp = 0x1
)
View Source
const (
NUM_SEG = 16
)
View Source
const (
TSIZE = 64
)
Variables ¶
This section is empty.
Functions ¶
func DrawCylinder ¶
Types ¶
type GLCheckerTexture ¶
type GLCheckerTexture struct {
// contains filtered or unexported fields
}
func (*GLCheckerTexture) Bind ¶
func (ct *GLCheckerTexture) Bind()
type ISceneExtra ¶
type Scene ¶
type Scene struct {
// contains filtered or unexported fields
}
func (*Scene) BeforeDraw ¶
func (s *Scene) BeforeDraw()
func (*Scene) OnKeyboardDown ¶
func (s *Scene) OnKeyboardDown(evt *sdl.KeyboardEvent)
func (*Scene) OnMouseButton ¶
func (s *Scene) OnMouseButton(evt *sdl.MouseButtonEvent)
func (*Scene) OnMouseMotion ¶
func (s *Scene) OnMouseMotion(evt *sdl.MouseMotionEvent)
func (*Scene) OnMouseWheel ¶
func (s *Scene) OnMouseWheel(evt *sdl.MouseWheelEvent)
func (*Scene) SetExtraInterface ¶
func (s *Scene) SetExtraInterface(i ISceneExtra)
Click to show internal directories.
Click to hide internal directories.