window

package
v0.0.0-...-2de55c8 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Window

type Window interface {
	GetHeight() uint
	GetWidth() uint

	OnUpdate()

	SetEventCallback(func(event.IEvent))
	SetVSync(bool)
	IsVSync() bool

	CreateWindow(*WindowProps) Window
}

Interface for platform-specific implementation

type WindowData

type WindowData struct {
	Title         string
	Width         uint
	Height        uint
	EventCallback func(event.IEvent)
}

Used as the userpointer for GLFW.

type WindowProps

type WindowProps struct {
	Title  string
	Width  uint
	Height uint
}

Used to pass user-created properties in when creating a window.

func DefaultWindowProps

func DefaultWindowProps() *WindowProps

Jump to

Keyboard shortcuts

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