Defines |
| #define | MA_GL_TEX_IMAGE_2D_OK 0 |
| #define | MA_GL_TEX_IMAGE_2D_INVALID_IMAGE -2 |
| #define | MA_GL_API_GL2 0 |
| #define | MA_GL_API_GL1 1 |
| #define | MA_GL_INIT_RES_OK 0 |
| #define | MA_GL_INIT_RES_UNAVAILABLE_API -2 |
| #define | MA_GL_INIT_RES_ERROR -3 |
Typedefs |
| typedef signed char | khronos_int8_t |
| typedef unsigned char | khronos_uint8_t |
| typedef short int | khronos_int16_t |
| typedef short unsigned int | khronos_uint16_t |
| typedef long int | khronos_intptr_t |
| typedef long unsigned int | khronos_uintptr_t |
| typedef long int | khronos_ssize_t |
| typedef long unsigned int | khronos_usize_t |
| typedef int | khronos_int32_t |
| typedef unsigned int | khronos_uint32_t |
| typedef long long int | khronos_int64_t |
| typedef long long unsigned int | khronos_uint64_t |
| typedef float | khronos_float_t |
| typedef khronos_uint64_t | khronos_utime_nanoseconds_t |
| typedef khronos_int64_t | khronos_stime_nanoseconds_t |
| typedef void | GLvoid |
| typedef char | GLchar |
| typedef unsigned int | GLenum |
| typedef unsigned char | GLboolean |
| typedef unsigned int | GLbitfield |
| typedef khronos_int8_t | GLbyte |
| typedef short int | GLshort |
| typedef int | GLint |
| typedef int | GLsizei |
| typedef khronos_uint8_t | GLubyte |
| typedef short unsigned int | GLushort |
| typedef unsigned int | GLuint |
| typedef khronos_int32_t | GLclampx |
| typedef khronos_float_t | GLfloat |
| typedef khronos_float_t | GLclampf |
| typedef khronos_int32_t | GLfixed |
| typedef khronos_intptr_t | GLintptr |
| typedef khronos_ssize_t | GLsizeiptr |
Functions |
| int | maOpenGLInitFullscreen (int glApi) |
| int | maOpenGLCloseFullscreen (void) |
| int | maOpenGLTexImage2D (MAHandle image) |
| int | maOpenGLTexSubImage2D (MAHandle image) |
| void | glActiveTexture (GLenum texture) |
| void | glBindBuffer (GLenum target, GLuint buffer) |
| void | glBindTexture (GLenum target, GLuint texture) |
| void | glBlendFunc (GLenum sfactor, GLenum dfactor) |
| void | glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage) |
| void | glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data) |
| void | glClear (GLbitfield mask) |
| void | glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) |
| void | glClearDepthf (GLclampf depth) |
| void | glClearStencil (GLint s) |
| void | glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) |
| void | glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data) |
| void | glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data) |
| void | glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) |
| void | glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) |
| void | glCullFace (GLenum mode) |
| void | glDeleteBuffers (GLsizei n, const GLuint *buffers) |
| void | glDeleteTextures (GLsizei n, const GLuint *textures) |
| void | glDepthFunc (GLenum func) |
| void | glDepthMask (GLboolean flag) |
| void | glDepthRangef (GLclampf zNear, GLclampf zFar) |
| void | glDisable (GLenum cap) |
| void | glDrawArrays (GLenum mode, GLint first, GLsizei count) |
| void | glDrawElements (GLenum mode, GLsizei count, GLenum type, const void *indices) |
| void | glEnable (GLenum cap) |
| void | glFinish (void) |
| void | glFlush (void) |
| void | glFrontFace (GLenum mode) |
| void | glGenBuffers (GLsizei n, GLuint *buffers) |
| void | glGenTextures (GLsizei n, GLuint *textures) |
| void | glGetBooleanv (GLenum pname, GLboolean *params) |
| void | glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params) |
| GLenum | glGetError (void) |
| void | glGetFloatv (GLenum pname, GLfloat *params) |
| void | glGetIntegerv (GLenum pname, GLint *params) |
| MAHandle | glGetStringHandle (GLenum name) |
| void | glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params) |
| void | glGetTexParameteriv (GLenum target, GLenum pname, GLint *params) |
| void | glHint (GLenum target, GLenum mode) |
| GLboolean | glIsBuffer (GLuint buffer) |
| GLboolean | glIsEnabled (GLenum cap) |
| GLboolean | glIsTexture (GLuint texture) |
| void | glLineWidth (GLfloat width) |
| void | glPixelStorei (GLenum pname, GLint param) |
| void | glPolygonOffset (GLfloat factor, GLfloat units) |
| void | glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels) |
| void | glSampleCoverage (GLclampf value, GLboolean invert) |
| void | glScissor (GLint x, GLint y, GLsizei width, GLsizei height) |
| void | glStencilFunc (GLenum func, GLint ref, GLuint mask) |
| void | glStencilMask (GLuint mask) |
| void | glStencilOp (GLenum fail, GLenum zfail, GLenum zpass) |
| void | glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels) |
| void | glTexParameterf (GLenum target, GLenum pname, GLfloat param) |
| void | glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params) |
| void | glTexParameteri (GLenum target, GLenum pname, GLint param) |
| void | glTexParameteriv (GLenum target, GLenum pname, const GLint *params) |
| void | glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels) |
| void | glViewport (GLint x, GLint y, GLsizei width, GLsizei height) |