platform

package
v0.0.0-...-0518d83 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Beep

func Beep(t BeepType)

func DisableQuickEdit

func DisableQuickEdit()

func EnableQuickEdit

func EnableQuickEdit()

func GLInit

func GLInit(debugLogs bool, additionalExtensions ...string) error

GLInit initializes OpenGL, checks for needed extensions, eventually sets up GPU debug logs

func GetKeyName

func GetKeyName(key glfw.Key, scancode int) (name string, found bool)

func LoadIcons

func LoadIcons(win *glfw.Window, prefix, suffix string)

func OpenURL

func OpenURL(url string)

func PrintPlatformInfo

func PrintPlatformInfo()

func SetProgress

func SetProgress(_ *glfw.Window, _, _ int)

func SetupContext

func SetupContext()

SetupContext sets glfw hints about OpenGL version

func ShowFileInManager

func ShowFileInManager(path string)

func StartLogging

func StartLogging(logName string)

func StartProgress

func StartProgress(_ *glfw.Window)

func StopProgress

func StopProgress(_ *glfw.Window)

Types

type BeepType

type BeepType uint
const (
	Question BeepType = 0x20
	Error    BeepType = 0x10
	Info     BeepType = 0x40
	Warning  BeepType = 0x30
	Ok       BeepType = 0
)

Jump to

Keyboard shortcuts

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