window

package
v0.0.0-...-4142f2f Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSurfaceDescriptor

func GetSurfaceDescriptor(w *glfw.Window) *wgpu.SurfaceDescriptor

Types

type Window

type Window struct {
	*glfw.Window
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow(width, height int) (*Window, error)

func (*Window) Destroy

func (w *Window) Destroy()

func (*Window) DestroyWindow

func (w *Window) DestroyWindow()

func (*Window) GetWindowPosition

func (w *Window) GetWindowPosition() (x int, y int)

func (*Window) GetWindowSize

func (w *Window) GetWindowSize() (int, int)

func (*Window) IsDisposed

func (w *Window) IsDisposed() bool

func (*Window) Poll

func (w *Window) Poll() bool

func (*Window) SetAspectRatio

func (w *Window) SetAspectRatio(numerator, denominator int)

func (*Window) SetCloseCallback

func (w *Window) SetCloseCallback(fn func())

func (*Window) SetCloseRequestedCallback

func (w *Window) SetCloseRequestedCallback(fn func())

func (*Window) SetInputCallback

func (w *Window) SetInputCallback(fn func(eventChan chan input.Event))

func (*Window) SetResizedCallback

func (w *Window) SetResizedCallback(fn func(physicalWidth, physicalHeight uint32))

func (*Window) SetWindowSize

func (w *Window) SetWindowSize(width int, height int)

func (*Window) SetWindowTitle

func (w *Window) SetWindowTitle(title string)

Jump to

Keyboard shortcuts

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