Documentation
¶
Index ¶
- func Register()
- type Platform
- func (p *Platform) Available() bool
- func (p *Platform) Exit()
- func (p *Platform) LoadVulkan() error
- func (p *Platform) Name() string
- func (p *Platform) NewWindow(cfg WindowConfig) (*Window, error)
- func (p *Platform) OnCloseRequested()
- func (p *Platform) PrimarySurface() gfx.SurfaceHandle
- func (p *Platform) Priority() int
- func (p *Platform) RequiredVKExtensions() []string
- func (p *Platform) Run(init gfx.PlatformInit) error
- func (p *Platform) VKInstanceProcAddr() unsafe.Pointer
- type Window
- type WindowConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) LoadVulkan ¶
func (*Platform) OnCloseRequested ¶
func (p *Platform) OnCloseRequested()
func (*Platform) PrimarySurface ¶
func (p *Platform) PrimarySurface() gfx.SurfaceHandle
func (*Platform) RequiredVKExtensions ¶
func (*Platform) VKInstanceProcAddr ¶
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 (*Window) Win32Instance ¶
type WindowConfig ¶
type WindowConfig struct { Title string Width int Height int OnResize func(size gfx.LogicalSize) OnCloseRequested func() }
Click to show internal directories.
Click to hide internal directories.