unix

package
v0.0.0-...-b767601 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT, Unlicense Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnablePollEvents

func EnablePollEvents()

func GetTimerFrequency

func GetTimerFrequency() uint64

func GetTimerValue

func GetTimerValue() uint64

func InitUnix

func InitUnix()

func PollEvents

func PollEvents()

PollEvents In the Windows implementation, each Window has own event loop goroutine, so there is no need to process events here.

Types

type Context

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

func NewContext

func NewContext(disp egl.NativeDisplayType, eglApi uint) (*Context, error)

func (*Context) API

func (c *Context) API() gpu.API

func (*Context) CreateSurface

func (c *Context) CreateSurface(win egl.NativeWindowType, width, height int) error

func (*Context) EnableVSync

func (c *Context) EnableVSync(enable bool)

func (*Context) HasSurface

func (c *Context) HasSurface() bool

func (*Context) MakeCurrent

func (c *Context) MakeCurrent() error

func (*Context) Present

func (c *Context) Present() error

func (*Context) Release

func (c *Context) Release()

func (*Context) ReleaseCurrent

func (c *Context) ReleaseCurrent()

func (*Context) ReleaseSurface

func (c *Context) ReleaseSurface()

func (*Context) RenderTarget

func (c *Context) RenderTarget() (gpu.RenderTarget, error)

func (*Context) SwapBuffers

func (c *Context) SwapBuffers() error

func (*Context) SwapInterval

func (c *Context) SwapInterval(interval int) error

func (*Context) VisualID

func (c *Context) VisualID() int

type PlatformContextState

type PlatformContextState struct{}

type PlatformLibraryContextState

type PlatformLibraryContextState struct{}

type VkContext

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

func NewVulkanContext

func NewVulkanContext(inst vk.Instance, surf vk.Surface) (*VkContext, error)

func (*VkContext) RenderTarget

func (c *VkContext) RenderTarget() (gpu.RenderTarget, error)

type WaylandViewEvent

type WaylandViewEvent struct {
	// Display is the *wl_display returned by wl_display_connect.
	Display unsafe.Pointer
	// Surface is the *wl_surface returned by wl_compositor_create_surface.
	Surface unsafe.Pointer
}

func (WaylandViewEvent) ImplementsEvent

func (WaylandViewEvent) ImplementsEvent()

func (WaylandViewEvent) ImplementsViewEvent

func (WaylandViewEvent) ImplementsViewEvent()

type X11ViewEvent

type X11ViewEvent struct {
	// Display is a pointer to the X11 Display created by XOpenDisplay.
	Display unsafe.Pointer
	// Window is the X11 window ID as returned by XCreateWindow.
	Window uintptr
}

func (X11ViewEvent) ImplementsEvent

func (X11ViewEvent) ImplementsEvent()

func (X11ViewEvent) ImplementsViewEvent

func (X11ViewEvent) ImplementsViewEvent()

Directories

Path Synopsis
internal
egl
xkb
Package xkb implements a Go interface for the X Keyboard Extension library.
Package xkb implements a Go interface for the X Keyboard Extension library.

Jump to

Keyboard shortcuts

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