Documentation ¶
Index ¶
- func ButtonBar(ctx *nk.Context, buttons []string, callback func(i int, s string))
- func ButtonBox(ctx *nk.Context, pane1, pane2 func(ctx *nk.Context))
- func ClassicEmail3Pane(title string, win *glfw.Window, ctx *nk.Context, state interface{}, ...)
- func LeftCol(win *glfw.Window, ctx *nk.Context, state interface{}, ...)
- func LoadImageData(data []uint8, x, y int) nk.Image
- func LoadImageFile(filename string, x, y int) (*nk.Image, error)
- func StartNuke() (*glfw.Window, *nk.Context, chan struct{}, chan struct{})
- func TkRatWin(win *glfw.Window, ctx *nk.Context, state interface{}, ...)
- func TwoPanelStacked(win *glfw.Window, ctx *nk.Context, state interface{}, ...)
- type Texture
- func NewGarbageTexture(img image.Image, wrapR, wrapS int32) (*Texture, error)
- func NewTextureFromData(data []uint8, width, height int32) (*Texture, error)
- func NewTextureFromFile(file string, wrapR, wrapS int32) (*Texture, error)
- func RawTexture(data []byte, wrapR, wrapS int32, texture *Texture) (*Texture, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClassicEmail3Pane ¶
func ClassicEmail3Pane(title string, win *glfw.Window, ctx *nk.Context, state interface{}, pane1, pane2, pane3 func(ctx *nk.Context))
3 pane layout - two small panes on the top, a large box below for displaying the contents of emails
You provide the contents of panes 1, 2, and 3 as callback functions that take no args and return no values
func StartNuke ¶
Start nuklear
You don't have to use this, you can initialise nuklear by yourself and just use the templates
Types ¶
type Texture ¶
type Texture struct { Handle uint32 // contains filtered or unexported fields }
func NewGarbageTexture ¶
func NewTextureFromData ¶
func NewTextureFromFile ¶
func RawTexture ¶
func (*Texture) SetUniform ¶
Click to show internal directories.
Click to hide internal directories.