Documentation ¶
Index ¶
- Constants
- Variables
- func EglBindAPI(api uint) bool
- func EglDestroyContext(disp EGLDisplay, ctx EGLContext) bool
- func EglDestroySurface(disp EGLDisplay, surf EGLSurface) bool
- func EglGetConfigs(disp EGLDisplay, configs []EGLConfig, configSize int, numConfig *int) bool
- func EglInitialize(disp EGLDisplay) (EGLint, EGLint, bool)
- func EglMakeCurrent(disp EGLDisplay, draw, read EGLSurface, ctx EGLContext) bool
- func EglQueryString(disp EGLDisplay, name EGLint) string
- func EglReleaseThread() bool
- func EglSwapBuffers(disp EGLDisplay, surf EGLSurface) bool
- func EglSwapInterval(disp EGLDisplay, interval EGLint) bool
- func EglTerminate(disp EGLDisplay) bool
- func EglWaitClient() bool
- func LoadEGL() error
- type EGLConfig
- type EGLContext
- type EGLDisplay
- type EGLSurface
- type EGLenum
- type EGLint
- type NativeDisplayType
- type NativeWindowType
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 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
Types ¶
type 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 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
Click to show internal directories.
Click to hide internal directories.