package egl
import "gioui.org/internal/egl"
Index ¶
- type Context
- func NewContext(disp NativeDisplayType) (*Context, error)
- func (c *Context) API() gpu.API
- func (c *Context) CreateSurface(win NativeWindowType, width, height int) error
- func (c *Context) EnableVSync(enable 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) VisualID() int
- type NativeDisplayType
- type NativeWindowType
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext(disp NativeDisplayType) (*Context, error)
func (*Context) API ¶
func (*Context) CreateSurface ¶
func (c *Context) CreateSurface(win NativeWindowType, width, height int) error
func (*Context) EnableVSync ¶
func (*Context) MakeCurrent ¶
func (*Context) Present ¶
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 ¶
type NativeDisplayType ¶
type NativeDisplayType = C.EGLNativeDisplayType
var ( EGL_DEFAULT_DISPLAY NativeDisplayType )
type NativeWindowType ¶
type NativeWindowType = C.EGLNativeWindowType
Source Files ¶
egl.go egl_unix.go
- Version
- v0.5.0
- Published
- Feb 5, 2024
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 3 hours ago –
Tools for package owners.