Documentation
¶
Index ¶
- func EnablePollEvents()
- func GetTimerFrequency() uint64
- func GetTimerValue() uint64
- func InitUnix()
- func PollEvents()
- type Context
- func (c *Context) API() gpu.API
- func (c *Context) CreateSurface(win egl.NativeWindowType, width, height int) error
- func (c *Context) EnableVSync(enable bool)
- func (c *Context) HasSurface() bool
- func (c *Context) MakeCurrent() error
- func (c *Context) Present() error
- func (c *Context) Release()
- func (c *Context) ReleaseCurrent()
- func (c *Context) ReleaseSurface()
- func (c *Context) RenderTarget() (gpu.RenderTarget, error)
- func (c *Context) SwapBuffers() error
- func (c *Context) SwapInterval(interval int) error
- func (c *Context) VisualID() int
- type PlatformContextState
- type PlatformLibraryContextState
- type VkContext
- type WaylandViewEvent
- type X11ViewEvent
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 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) CreateSurface ¶
func (c *Context) CreateSurface(win egl.NativeWindowType, width, height int) error
func (*Context) EnableVSync ¶
func (*Context) HasSurface ¶
func (*Context) MakeCurrent ¶
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 (*Context) SwapInterval ¶
type PlatformContextState ¶
type PlatformContextState struct{}
type PlatformLibraryContextState ¶
type PlatformLibraryContextState struct{}
type VkContext ¶
type VkContext struct {
// contains filtered or unexported fields
}
func NewVulkanContext ¶
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()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.