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) 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) 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 uintptr
var ( EGL_DEFAULT_DISPLAY NativeDisplayType )
type NativeWindowType ¶
type NativeWindowType uintptr
Source Files ¶
egl.go egl_windows.go
- Version
- v0.7.2
- Published
- Jul 15, 2024
- Platform
- windows/amd64
- Imports
- 9 packages
- Last checked
- 1 minute ago –
Tools for package owners.