egl

package
v0.0.0-...-b767601 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT, Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EGL_CONFIG_CAVEAT = 0x3027

	EGL_SUCCESS                     = 0x3000
	EGL_NOT_INITIALIZED             = 0x3001
	EGL_BAD_ACCESS                  = 0x3002
	EGL_BAD_ALLOC                   = 0x3003
	EGL_BAD_ATTRIBUTE               = 0x3004
	EGL_BAD_CONFIG                  = 0x3005
	EGL_BAD_CONTEXT                 = 0x3006
	EGL_BAD_CURRENT_SURFACE         = 0x3007
	EGL_BAD_DISPLAY                 = 0x3008
	EGL_BAD_MATCH                   = 0x3009
	EGL_BAD_NATIVE_PIXMAP           = 0x300a
	EGL_BAD_NATIVE_WINDOW           = 0x300b
	EGL_BAD_PARAMETER               = 0x300c
	EGL_BAD_SURFACE                 = 0x300d
	EGL_CONTEXT_LOST                = 0x300e
	EGL_COLOR_BUFFER_TYPE           = 0x303f
	EGL_RGB_BUFFER                  = 0x308e
	EGL_SURFACE_TYPE                = 0x3033
	EGL_WINDOW_BIT                  = 0x0004
	EGL_RENDERABLE_TYPE             = 0x3040
	EGL_OPENGL_ES_BIT               = 0x0001
	EGL_OPENGL_ES2_BIT              = 0x0004
	EGL_OPENGL_BIT                  = 0x0008
	EGL_ALPHA_SIZE                  = 0x3021
	EGL_BLUE_SIZE                   = 0x3022
	EGL_GREEN_SIZE                  = 0x3023
	EGL_RED_SIZE                    = 0x3024
	EGL_DEPTH_SIZE                  = 0x3025
	EGL_STENCIL_SIZE                = 0x3026
	EGL_SAMPLES                     = 0x3031
	EGL_OPENGL_ES_API          uint = 0x30a0
	EGL_OPENGL_API             uint = 0x30a2
	EGL_NONE                        = 0x3038
	EGL_RENDER_BUFFER               = 0x3086
	EGL_SINGLE_BUFFER               = 0x3085
	EGL_EXTENSIONS                  = 0x3055
	EGL_CONTEXT_CLIENT_VERSION      = 0x3098
	EGL_NATIVE_VISUAL_ID            = 0x302e

	EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR      = 0x00000002
	EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR            = 0x00000001
	EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR   = 0x00000002
	EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR                   = 0x00000001
	EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR = 0x31bd
	EGL_NO_RESET_NOTIFICATION_KHR                      = 0x31be
	EGL_LOSE_CONTEXT_ON_RESET_KHR                      = 0x31bf
	EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR           = 0x00000004
	EGL_CONTEXT_MAJOR_VERSION_KHR                      = 0x3098
	EGL_CONTEXT_MINOR_VERSION_KHR                      = 0x30fb
	EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR                = 0x30fd
	EGL_CONTEXT_FLAGS_KHR                              = 0x30fc
	EGL_CONTEXT_OPENGL_NO_ERROR_KHR                    = 0x31b3
	EGL_GL_COLORSPACE_KHR                              = 0x309d
	EGL_GL_COLORSPACE_SRGB_KHR                         = 0x3089
	EGL_CONTEXT_RELEASE_BEHAVIOR_KHR                   = 0x2097
	EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR              = 0
	EGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR             = 0x2098
	EGL_PRESENT_OPAQUE_EXT                             = 0x31df
)

Variables

View Source
var (
	NilEGLDisplay       EGLDisplay
	NilEGLSurface       EGLSurface
	NilEGLContext       EGLContext
	NilEGLConfig        EGLConfig
	EGL_DEFAULT_DISPLAY NativeDisplayType
)

Functions

func EglBindAPI

func EglBindAPI(api uint) bool

func EglDestroyContext

func EglDestroyContext(disp EGLDisplay, ctx EGLContext) bool

func EglDestroySurface

func EglDestroySurface(disp EGLDisplay, surf EGLSurface) bool

func EglGetConfigs

func EglGetConfigs(disp EGLDisplay, configs []EGLConfig, configSize int, numConfig *int) bool

func EglInitialize

func EglInitialize(disp EGLDisplay) (EGLint, EGLint, bool)

func EglMakeCurrent

func EglMakeCurrent(disp EGLDisplay, draw, read EGLSurface, ctx EGLContext) bool

func EglQueryString

func EglQueryString(disp EGLDisplay, name EGLint) string

func EglReleaseThread

func EglReleaseThread() bool

func EglSwapBuffers

func EglSwapBuffers(disp EGLDisplay, surf EGLSurface) bool

func EglSwapInterval

func EglSwapInterval(disp EGLDisplay, interval EGLint) bool

func EglTerminate

func EglTerminate(disp EGLDisplay) bool

func EglWaitClient

func EglWaitClient() bool

func LoadEGL

func LoadEGL() error

Types

type EGLConfig

type EGLConfig = C.EGLConfig

func EglChooseConfig

func EglChooseConfig(disp EGLDisplay, attribs []EGLint) (EGLConfig, bool)

type EGLContext

type EGLContext = C.EGLContext

func EglCreateContext

func EglCreateContext(disp EGLDisplay, cfg EGLConfig, shareCtx EGLContext, attribs []EGLint) EGLContext

type EGLDisplay

type EGLDisplay = C.EGLDisplay

func EglGetDisplay

func EglGetDisplay(disp NativeDisplayType) EGLDisplay

type EGLSurface

type EGLSurface = C.EGLSurface

func EglCreateWindowSurface

func EglCreateWindowSurface(disp EGLDisplay, conf EGLConfig, win NativeWindowType, attribs []EGLint) EGLSurface

type EGLenum

type EGLenum = C.EGLenum

type EGLint

type EGLint = C.EGLint

func EglGetConfigAttrib

func EglGetConfigAttrib(disp EGLDisplay, cfg EGLConfig, attr EGLint) (EGLint, bool)

func EglGetError

func EglGetError() EGLint

type NativeDisplayType

type NativeDisplayType = C.EGLNativeDisplayType

type NativeWindowType

type NativeWindowType = C.EGLNativeWindowType

Jump to

Keyboard shortcuts

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