egl

package
v0.0.0-...-9d62b2b Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func BindAPI

func BindAPI(api Api) error

Types

type Api

type Api C.uint
const (
	APIOpenVG Api = C.EGL_OPENVG_API
)

type Config

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

type Context

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

type Display

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

func GetDisplay

func GetDisplay(display NativeDisplayType) (Display, error)

func (Display) ChooseConfig

func (d Display) ChooseConfig() (Config, error)

func (Display) CreateContext

func (d Display) CreateContext(config Config) (Context, error)

func (Display) CreateWindowSurface

func (d Display) CreateWindowSurface(config Config, window NativeWindow) (Surface, error)

func (Display) Initialize

func (d Display) Initialize() (string, error)

func (Display) MakeCurrent

func (d Display) MakeCurrent(surface Surface, ctx Context) error

func (Display) SwapBuffers

func (d Display) SwapBuffers(surface Surface) error

func (Display) Terminate

func (d Display) Terminate() error

type NativeDisplayType

type NativeDisplayType C.EGLNativeDisplayType

type NativeWindow

type NativeWindow interface {
	Handle() NativeWindowHandle
}

type NativeWindowHandle

type NativeWindowHandle C.EGLNativeWindowType

type Surface

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

Jump to

Keyboard shortcuts

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