nmageimgui

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SdlScancodeToImGuiKey added in v0.17.0

func SdlScancodeToImGuiKey(scancode sdl.Scancode) imgui.Key

Types

type ImguiInfo

type ImguiInfo struct {
	ImCtx imgui.Context

	Mat        *materials.Material
	VaoID      uint32
	VboID      uint32
	IndexBufID uint32
	TexID      uint32
}

func NewImGui added in v0.17.0

func NewImGui() ImguiInfo

func (*ImguiInfo) AddFontTTF added in v0.0.7

func (i *ImguiInfo) AddFontTTF(fontPath string, fontSize float32, fontConfig *imgui.FontConfig, glyphRanges *imgui.GlyphRange) imgui.Font

func (*ImguiInfo) FrameStart

func (i *ImguiInfo) FrameStart(winWidth, winHeight float32)

func (*ImguiInfo) Render

func (i *ImguiInfo) Render(winWidth, winHeight float32, fbWidth, fbHeight int32)

Jump to

Keyboard shortcuts

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