egl

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT, Unlicense Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) 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 = C.EGLNativeDisplayType
var (
	EGL_DEFAULT_DISPLAY NativeDisplayType
)

type NativeWindowType

type NativeWindowType = C.EGLNativeWindowType

Jump to

Keyboard shortcuts

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