util

package
v0.0.0-...-50d5a6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImguiActivatePanel

func ImguiActivatePanel(name string)

func ImguiDeactivatePanel

func ImguiDeactivatePanel(name string)

func ImguiDestroy

func ImguiDestroy()

func ImguiGenVec2

func ImguiGenVec2(v1, v2 float32) imgui.Vec2

func ImguiGenVec4

func ImguiGenVec4(v1, v2, v3, v4 float32) imgui.Vec4

func ImguiNewFrame

func ImguiNewFrame()

func ImguiPanelStatus

func ImguiPanelStatus(name string) *bool

func ImguiRegisterPanel

func ImguiRegisterPanel(name string, i interface{})

func ImguiRender

func ImguiRender()

func ImguiSetDefaultKeyCallback

func ImguiSetDefaultKeyCallback()

Revert to the default key callback

func ImguiTogglePanel

func ImguiTogglePanel(name string)

func ImguiWantsKeyInput

func ImguiWantsKeyInput() bool

func ImguiWantsMouse

func ImguiWantsMouse() bool

func ImguiWantsTextInput

func ImguiWantsTextInput() bool

func InitImguiLayer

func InitImguiLayer(window *glfw.Window)

Types

type ImguiLayer

type ImguiLayer struct {
	// contains filtered or unexported fields
}

func GetImguiLayer

func GetImguiLayer() *ImguiLayer

type ImguiPanel

type ImguiPanel struct {
	// contains filtered or unexported fields
}

type ImguiRenderer

type ImguiRenderer interface {
	RenderPanel()
}

type Stopwatch

type Stopwatch struct {
	// contains filtered or unexported fields
}

func (*Stopwatch) Peek

func (stopwatch *Stopwatch) Peek() time.Duration

func (*Stopwatch) Reset

func (stopwatch *Stopwatch) Reset()

func (*Stopwatch) Start

func (stopwatch *Stopwatch) Start()

func (*Stopwatch) Stop

func (stopwatch *Stopwatch) Stop() time.Duration

type UVSpriteMap

type UVSpriteMap struct {
	// contains filtered or unexported fields
}

func (*UVSpriteMap) Black

func (uv *UVSpriteMap) Black() color.Color

func (*UVSpriteMap) SetBlackChannel

func (uv *UVSpriteMap) SetBlackChannel(color color.Color)

func (*UVSpriteMap) SetWhiteChannel

func (uv *UVSpriteMap) SetWhiteChannel(color color.Color)

func (*UVSpriteMap) White

func (uv *UVSpriteMap) White() color.Color

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL