Documentation ¶
Index ¶
- func BlankImage() *image.RGBA
- func GetFPS() func()
- func GetTime() int64
- func SetFrameToggle() bool
- type Action
- type Callbacks
- type Cursor
- type Debugger
- type Framework
- func (f *Framework) BuildMode(mode ...string) string
- func (f Framework) ClearImage(rgba *image.RGBA, c color.RGBA) *image.RGBA
- func (f Framework) GetImagePart(filename string, point image.Point) *image.RGBA
- func (f Framework) LoadImage(filename string) *image.RGBA
- func (f Framework) RandomImage(p image.Point) *image.RGBA
- func (f *Framework) RegisterCallback(cbHandler interface{})
- func (f *Framework) ResourcePath() string
- func (f *Framework) Start()
- type GLConfig
- type Key
- type ModifierKey
- type WinConfig
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFPS ¶
func GetFPS() func()
GetFPS fps counter in closure usage: fps := GetFPS()
RenderLoop() { fps() }
func SetFrameToggle ¶
func SetFrameToggle() bool
SetFrameToggle alternates between returning true and false each frame
Types ¶
type Callbacks ¶
type Callbacks struct { Render func() *image.RGBA CursorMove func(c Cursor) Key func(w *Window, k Key, scancode int, a Action, mk ModifierKey) FPS func(fps int) }
Callbacks holds the callbacks defined in the User Application ran in the library
type Debugger ¶
type Debugger struct {
// contains filtered or unexported fields
}
Debugger general purpose logging and profiling
type Framework ¶
Framework object
func (Framework) ClearImage ¶
ClearImage clears input image.RGBA to specified color
func (Framework) GetImagePart ¶
GetImagePart returns an RGBA pointer from a partial .png file
func (Framework) RandomImage ¶
RandomImage clears input image.RGBA to specified color
func (*Framework) RegisterCallback ¶
func (f *Framework) RegisterCallback(cbHandler interface{})
RegisterCallback allows setting user defined callbacks
func (*Framework) ResourcePath ¶
ResourcePath gets path where resources are stored
type GLConfig ¶
type GLConfig struct {
// contains filtered or unexported fields
}
GLConfig variables needed to persist to renderGL()
Click to show internal directories.
Click to hide internal directories.