windows

package
v0.0.0-...-87acbc0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register()

Types

type Platform

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

func (*Platform) Available

func (p *Platform) Available() bool

func (*Platform) Exit

func (p *Platform) Exit()

func (*Platform) LoadVulkan

func (p *Platform) LoadVulkan() error

func (*Platform) Name

func (p *Platform) Name() string

func (*Platform) NewWindow

func (p *Platform) NewWindow(cfg WindowConfig) (*Window, error)

func (*Platform) OnCloseRequested

func (p *Platform) OnCloseRequested()

func (*Platform) PrimarySurface

func (p *Platform) PrimarySurface() gfx.SurfaceHandle

func (*Platform) Priority

func (p *Platform) Priority() int

func (*Platform) RequiredVKExtensions

func (p *Platform) RequiredVKExtensions() []string

func (*Platform) Run

func (p *Platform) Run(init gfx.PlatformInit) error

func (*Platform) VKInstanceProcAddr

func (p *Platform) VKInstanceProcAddr() unsafe.Pointer

type Window

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

func (*Window) Size

func (w *Window) Size() gfx.LogicalSize

func (*Window) SurfaceHandleType

func (w *Window) SurfaceHandleType() gfx.SurfaceHandleType

func (*Window) Win32Handle

func (w *Window) Win32Handle() unsafe.Pointer

func (*Window) Win32Instance

func (w *Window) Win32Instance() unsafe.Pointer

type WindowConfig

type WindowConfig struct {
	Title            string
	Width            int
	Height           int
	OnResize         func(size gfx.LogicalSize)
	OnCloseRequested func()
}

Jump to

Keyboard shortcuts

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