window

package
v0.0.0-...-a673a00 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventCallBackFn

type EventCallBackFn func(*event.Eventum)

type Window

type Window interface {
	Destruct()
	OnUpdate()
	// Getters
	GetNativeWindow() unsafe.Pointer
	GetWidth() int
	GetHeight() int
	FramebufferSize() [2]float32
	// Window attributes
	SetEventCallback(EventCallBackFn)
	SetVSync(bool)
	IsVSync() bool

	Create(*WindowProps) Window
}

type WindowProps

type WindowProps struct {
	Title  string
	Width  int
	Height int
}

Jump to

Keyboard shortcuts

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