gioui.orggioui.org/internal/egl Index | Files

package egl

import "gioui.org/internal/egl"

Index

Types

type Context

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

func NewContext

func NewContext(disp NativeDisplayType) (*Context, error)

func (*Context) API

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

func (*Context) CreateSurface

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

func (*Context) EnableVSync

func (c *Context) EnableVSync(enable 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) VisualID

func (c *Context) VisualID() int

type NativeDisplayType

type NativeDisplayType uintptr
var (
	EGL_DEFAULT_DISPLAY NativeDisplayType
)

type NativeWindowType

type NativeWindowType uintptr

Source Files

egl.go egl_windows.go

Version
v0.5.0
Published
Feb 5, 2024
Platform
windows/amd64
Imports
9 packages
Last checked
1 minute ago

Tools for package owners.