Documentation ¶
Index ¶
- func BindInteractor(window *glfw.Window, interactor Interactor)
- func Run(path string)
- type Arcball
- func (a *Arcball) CursorPositionCallback(window *glfw.Window, x, y float64)
- func (a *Arcball) KeyCallback(window *glfw.Window, key glfw.Key, scancode int, action glfw.Action, ...)
- func (a *Arcball) Matrix(window *glfw.Window) fauxgl.Matrix
- func (a *Arcball) MouseButtonCallback(window *glfw.Window, button glfw.MouseButton, action glfw.Action, ...)
- func (a *Arcball) ScrollCallback(window *glfw.Window, dx, dy float64)
- type Interactor
- type Mesh
- type MeshData
- type SwitchableInteractor
- func (si *SwitchableInteractor) CursorPositionCallback(window *glfw.Window, x, y float64)
- func (si *SwitchableInteractor) KeyCallback(window *glfw.Window, key glfw.Key, scancode int, action glfw.Action, ...)
- func (si *SwitchableInteractor) Matrix(window *glfw.Window) fauxgl.Matrix
- func (si *SwitchableInteractor) MouseButtonCallback(window *glfw.Window, button glfw.MouseButton, action glfw.Action, ...)
- func (si *SwitchableInteractor) ScrollCallback(window *glfw.Window, dx, dy float64)
- func (si *SwitchableInteractor) Switch()
- type WASD
- func (wasd *WASD) CursorPositionCallback(window *glfw.Window, x, y float64)
- func (wasd *WASD) KeyCallback(window *glfw.Window, key glfw.Key, scancode int, action glfw.Action, ...)
- func (wasd *WASD) Matrix(window *glfw.Window) fauxgl.Matrix
- func (wasd *WASD) MouseButtonCallback(window *glfw.Window, button glfw.MouseButton, action glfw.Action, ...)
- func (wasd *WASD) ScrollCallback(window *glfw.Window, dx, dy float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindInteractor ¶
func BindInteractor(window *glfw.Window, interactor Interactor)
Types ¶
type Arcball ¶
type Arcball struct { Sensitivity float64 Start fauxgl.Vector Current fauxgl.Vector Rotation fauxgl.Matrix Translation fauxgl.Vector Scroll float64 Rotate bool Pan bool }
func (*Arcball) CursorPositionCallback ¶
func (*Arcball) KeyCallback ¶
func (*Arcball) MouseButtonCallback ¶
func (a *Arcball) MouseButtonCallback(window *glfw.Window, button glfw.MouseButton, action glfw.Action, mods glfw.ModifierKey)
type Interactor ¶
type Interactor interface { Matrix(window *glfw.Window) fauxgl.Matrix CursorPositionCallback(window *glfw.Window, x, y float64) MouseButtonCallback(window *glfw.Window, button glfw.MouseButton, action glfw.Action, mods glfw.ModifierKey) KeyCallback(window *glfw.Window, key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey) ScrollCallback(window *glfw.Window, dx, dy float64) }
func NewArcball ¶
func NewArcball() Interactor
func NewWASD ¶
func NewWASD(window *glfw.Window) Interactor
type SwitchableInteractor ¶
type SwitchableInteractor struct { Interactors []Interactor Index int }
func NewSwitchableInteractor ¶
func NewSwitchableInteractor(interactors []Interactor) *SwitchableInteractor
func (*SwitchableInteractor) CursorPositionCallback ¶
func (si *SwitchableInteractor) CursorPositionCallback(window *glfw.Window, x, y float64)
func (*SwitchableInteractor) KeyCallback ¶
func (si *SwitchableInteractor) KeyCallback(window *glfw.Window, key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey)
func (*SwitchableInteractor) Matrix ¶
func (si *SwitchableInteractor) Matrix(window *glfw.Window) fauxgl.Matrix
func (*SwitchableInteractor) MouseButtonCallback ¶
func (si *SwitchableInteractor) MouseButtonCallback(window *glfw.Window, button glfw.MouseButton, action glfw.Action, mods glfw.ModifierKey)
func (*SwitchableInteractor) ScrollCallback ¶
func (si *SwitchableInteractor) ScrollCallback(window *glfw.Window, dx, dy float64)
func (*SwitchableInteractor) Switch ¶
func (si *SwitchableInteractor) Switch()
type WASD ¶
type WASD struct {
// contains filtered or unexported fields
}
func (*WASD) CursorPositionCallback ¶
func (*WASD) KeyCallback ¶
func (*WASD) MouseButtonCallback ¶
func (wasd *WASD) MouseButtonCallback(window *glfw.Window, button glfw.MouseButton, action glfw.Action, mods glfw.ModifierKey)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.