Documentation
¶
Index ¶
- type Action
- type DemoCube
- func (o *DemoCube) Draw(x, y, w, h int32)
- func (o *DemoCube) SetCharCallback(r rune)
- func (o *DemoCube) SetCursorPosCallback(xpos float64, ypos float64)
- func (o *DemoCube) SetKeyCallback(key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey)
- func (o *DemoCube) SetMouseButtonCallback(button glfw.MouseButton, action glfw.Action, mods glfw.ModifierKey, ...)
- func (o *DemoCube) SetScrollCallback(xcursor, ycursor float64, xoffset, yoffset float64)
- type DemoSpiral
- func (o *DemoSpiral) Draw(x, y, w, h int32)
- func (o *DemoSpiral) SetCharCallback(r rune)
- func (o *DemoSpiral) SetCursorPosCallback(xpos float64, ypos float64)
- func (o *DemoSpiral) SetKeyCallback(key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey)
- func (o *DemoSpiral) SetMouseButtonCallback(button glfw.MouseButton, action glfw.Action, mods glfw.ModifierKey, ...)
- func (o *DemoSpiral) SetScrollCallback(xcursor, ycursor float64, xoffset, yoffset float64)
- type Screen
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DemoCube ¶
type DemoCube struct {
Alpha, Betta float64
}
func (*DemoCube) SetCharCallback ¶
func (*DemoCube) SetCursorPosCallback ¶
func (*DemoCube) SetKeyCallback ¶
func (*DemoCube) SetMouseButtonCallback ¶
func (o *DemoCube) SetMouseButtonCallback( button glfw.MouseButton, action glfw.Action, mods glfw.ModifierKey, x, y float64, )
func (*DemoCube) SetScrollCallback ¶
type DemoSpiral ¶
type DemoSpiral struct {
// contains filtered or unexported fields
}
func (*DemoSpiral) Draw ¶
func (o *DemoSpiral) Draw(x, y, w, h int32)
func (*DemoSpiral) SetCharCallback ¶
func (o *DemoSpiral) SetCharCallback(r rune)
func (*DemoSpiral) SetCursorPosCallback ¶
func (o *DemoSpiral) SetCursorPosCallback(xpos float64, ypos float64)
func (*DemoSpiral) SetKeyCallback ¶
func (o *DemoSpiral) SetKeyCallback(key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey)
func (*DemoSpiral) SetMouseButtonCallback ¶
func (o *DemoSpiral) SetMouseButtonCallback(button glfw.MouseButton, action glfw.Action, mods glfw.ModifierKey, x, y float64)
func (*DemoSpiral) SetScrollCallback ¶
func (o *DemoSpiral) SetScrollCallback(xcursor, ycursor float64, xoffset, yoffset float64)
type Screen ¶
type Screen struct {
// contains filtered or unexported fields
}
func (*Screen) ChangeRatio ¶
func (*Screen) Screenshot ¶
type Window ¶
type Window interface {
SetMouseButtonCallback(
button glfw.MouseButton,
action glfw.Action,
mods glfw.ModifierKey,
xcursor, ycursor float64,
)
SetCharCallback(r rune)
SetScrollCallback(
xcursor, ycursor float64,
xoffset, yoffset float64,
)
SetKeyCallback(
key glfw.Key,
scancode int,
action glfw.Action,
mods glfw.ModifierKey,
)
SetCursorPosCallback(
xpos float64,
ypos float64,
)
Draw(x, y, w, h int32)
}
Click to show internal directories.
Click to hide internal directories.