ui

package
v0.0.0-...-94e6d93 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InterFont imgui.Font

	PtMonoFont imgui.Font
)

Functions

func InitIntroWindow

func InitIntroWindow()

func Log

func Log(level LogLevel, message string, args ...interface{})

func PerformInstallation

func PerformInstallation(folder, version, token string)

func RunApp

func RunApp(title string, width, height int32) error

func RunOnMain

func RunOnMain(callback func())

func SetProgress

func SetProgress(fraction float32, status string)

Types

type LogLevel

type LogLevel int
const (
	LogDebug LogLevel = iota
	LogInfo
	LogWarn
	LogError
)

type OpenGL3

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

OpenGL3 implements a renderer based on github.com/go-gl/gl (v3.2-core).

func NewOpenGL3

func NewOpenGL3(io imgui.IO) (*OpenGL3, error)

NewOpenGL3 attempts to initialize a renderer. An OpenGL context has to be established before calling this function.

func (*OpenGL3) Dispose

func (renderer *OpenGL3) Dispose()

Dispose cleans up the resources.

func (*OpenGL3) PreRender

func (renderer *OpenGL3) PreRender(clearColor [3]float32)

PreRender clears the framebuffer.

func (*OpenGL3) Render

func (renderer *OpenGL3) Render(displaySize [2]float32, framebufferSize [2]float32, drawData imgui.DrawData)

Render translates the ImGui draw data to OpenGL3 commands.

Jump to

Keyboard shortcuts

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