Initial work
This commit is contained in:
commit
3222551702
374 changed files with 40290 additions and 0 deletions
53
external/android-emugl/host/include/OpenGLESDispatch/EGLDispatch.h
vendored
Normal file
53
external/android-emugl/host/include/OpenGLESDispatch/EGLDispatch.h
vendored
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
* Copyright (C) 2011 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "OpenGLESDispatch/RenderEGL_functions.h"
|
||||
#include "OpenGLESDispatch/RenderEGL_extensions_functions.h"
|
||||
|
||||
// This header is used to define the EGLDispatch structure that contains
|
||||
// pointers to the EGL shared library used by libOpenglRender. Normally,
|
||||
// this will be our own libEGL_translator, but one could imagine a
|
||||
// vendor-specific being used instead.
|
||||
|
||||
// There is a single global instance of this structure, named |s_egl|,
|
||||
// which must be initialized by calling init_egl_dispatch() before use.
|
||||
|
||||
// Note that our code requires the implementation of misc EGL extensions
|
||||
// including eglSetSwapRectangleANDROID(), see RenderEGL_extensions_functions.h
|
||||
// for a full list.
|
||||
|
||||
#define RENDER_EGL_DEFINE_TYPE(return_type, function_name, signature) \
|
||||
typedef return_type (EGLAPIENTRY *function_name ## _t) signature;
|
||||
|
||||
#define RENDER_EGL_DECLARE_MEMBER(return_type, function_name, signature) \
|
||||
function_name ## _t function_name;
|
||||
|
||||
// Define function typedefs.
|
||||
LIST_RENDER_EGL_FUNCTIONS(RENDER_EGL_DEFINE_TYPE)
|
||||
LIST_RENDER_EGL_EXTENSIONS_FUNCTIONS(RENDER_EGL_DEFINE_TYPE)
|
||||
|
||||
// Define EGLDispatch structure.
|
||||
struct EGLDispatch {
|
||||
LIST_RENDER_EGL_FUNCTIONS(RENDER_EGL_DECLARE_MEMBER)
|
||||
LIST_RENDER_EGL_EXTENSIONS_FUNCTIONS(RENDER_EGL_DECLARE_MEMBER)
|
||||
};
|
||||
|
||||
// Initialize EGLDispatch function. Return true on success, false on failure.
|
||||
bool init_egl_dispatch();
|
||||
|
||||
// Global EGLDispatch instance. Call init_egl_dispatch() before using it.
|
||||
extern EGLDispatch s_egl;
|
||||
41
external/android-emugl/host/include/OpenGLESDispatch/GLESv1Dispatch.h
vendored
Normal file
41
external/android-emugl/host/include/OpenGLESDispatch/GLESv1Dispatch.h
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* Copyright (C) 2011 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "OpenGLESDispatch/gldefs.h"
|
||||
#include "OpenGLESDispatch/gles_functions.h"
|
||||
#include "KHR/khrplatform.h"
|
||||
|
||||
// Define function pointer types.
|
||||
#define GLES1_DISPATCH_DEFINE_TYPE(return_type,func_name,signature,callargs) \
|
||||
typedef return_type (KHRONOS_APIENTRY * func_name ## _t) signature;
|
||||
|
||||
LIST_GLES1_FUNCTIONS(GLES1_DISPATCH_DEFINE_TYPE,GLES1_DISPATCH_DEFINE_TYPE)
|
||||
|
||||
struct GLESv1Dispatch {
|
||||
#define GLES1_DISPATCH_DECLARE_POINTER(return_type,func_name,signature,callargs) \
|
||||
func_name ## _t func_name;
|
||||
LIST_GLES1_FUNCTIONS(GLES1_DISPATCH_DECLARE_POINTER,
|
||||
GLES1_DISPATCH_DECLARE_POINTER)
|
||||
};
|
||||
|
||||
#undef GLES1_DISPATCH_DECLARE_POINTER
|
||||
#undef GLES1_DISPATCH_DEFINE_TYPE
|
||||
|
||||
bool gles1_dispatch_init(GLESv1Dispatch* dispatch_table);
|
||||
|
||||
// Used to initialize the decoder.
|
||||
void* gles1_dispatch_get_proc_func(const char* name, void* userData);
|
||||
41
external/android-emugl/host/include/OpenGLESDispatch/GLESv2Dispatch.h
vendored
Normal file
41
external/android-emugl/host/include/OpenGLESDispatch/GLESv2Dispatch.h
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* Copyright (C) 2011 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "OpenGLESDispatch/gldefs.h"
|
||||
#include "OpenGLESDispatch/gles_functions.h"
|
||||
#include "KHR/khrplatform.h"
|
||||
|
||||
// Define function pointer types.
|
||||
#define GLES2_DISPATCH_DEFINE_TYPE(return_type,func_name,signature,callargs) \
|
||||
typedef return_type (KHRONOS_APIENTRY * func_name ## _t) signature;
|
||||
|
||||
LIST_GLES2_FUNCTIONS(GLES2_DISPATCH_DEFINE_TYPE,GLES2_DISPATCH_DEFINE_TYPE)
|
||||
|
||||
struct GLESv2Dispatch {
|
||||
#define GLES2_DISPATCH_DECLARE_POINTER(return_type,func_name,signature,callargs) \
|
||||
func_name ## _t func_name;
|
||||
LIST_GLES2_FUNCTIONS(GLES2_DISPATCH_DECLARE_POINTER,
|
||||
GLES2_DISPATCH_DECLARE_POINTER)
|
||||
};
|
||||
|
||||
#undef GLES2_DISPATCH_DECLARE_POINTER
|
||||
#undef GLES2_DISPATCH_DEFINE_TYPE
|
||||
|
||||
bool gles2_dispatch_init(GLESv2Dispatch* dispatch_table);
|
||||
|
||||
// Used to initialize the decoder.
|
||||
void* gles2_dispatch_get_proc_func(const char* name, void* userData);
|
||||
15
external/android-emugl/host/include/OpenGLESDispatch/RenderEGL_extensions_functions.h
vendored
Normal file
15
external/android-emugl/host/include/OpenGLESDispatch/RenderEGL_extensions_functions.h
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// Auto-generated with: android/scripts/gen-entries.py --mode=functions distrib/android-emugl/host/libs/libOpenGLESDispatch/render_egl_extensions.entries --output=distrib/android-emugl/host/include/OpenGLESDispatch/RenderEGL_extensions_functions.h
|
||||
// DO NOT EDIT THIS FILE
|
||||
|
||||
#ifndef RENDER_EGL_EXTENSIONS_FUNCTIONS_H
|
||||
#define RENDER_EGL_EXTENSIONS_FUNCTIONS_H
|
||||
|
||||
#include <EGL/egl.h>
|
||||
#define EGL_EGLEXT_PROTOTYPES
|
||||
#include <EGL/eglext.h>
|
||||
#define LIST_RENDER_EGL_EXTENSIONS_FUNCTIONS(X) \
|
||||
X(EGLImageKHR, eglCreateImageKHR, (EGLDisplay display, EGLContext context, EGLenum target, EGLClientBuffer buffer, const EGLint* attrib_list)) \
|
||||
X(EGLBoolean, eglDestroyImageKHR, (EGLDisplay display, EGLImageKHR image)) \
|
||||
|
||||
|
||||
#endif // RENDER_EGL_EXTENSIONS_FUNCTIONS_H
|
||||
31
external/android-emugl/host/include/OpenGLESDispatch/RenderEGL_functions.h
vendored
Normal file
31
external/android-emugl/host/include/OpenGLESDispatch/RenderEGL_functions.h
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
// Auto-generated with: android/scripts/gen-entries.py --mode=functions distrib/android-emugl/host/libs/libOpenGLESDispatch/render_egl.entries --output=distrib/android-emugl/host/include/OpenGLESDispatch/RenderEGL_functions.h
|
||||
// DO NOT EDIT THIS FILE
|
||||
|
||||
#ifndef RENDER_EGL_FUNCTIONS_H
|
||||
#define RENDER_EGL_FUNCTIONS_H
|
||||
|
||||
#include <EGL/egl.h>
|
||||
#define LIST_RENDER_EGL_FUNCTIONS(X) \
|
||||
X(EGLint, eglGetError, ()) \
|
||||
X(EGLDisplay, eglGetDisplay, (EGLNativeDisplayType dpy)) \
|
||||
X(EGLBoolean, eglInitialize, (EGLDisplay dpy, EGLint* major, EGLint* minor)) \
|
||||
X(char*, eglQueryString, (EGLDisplay dpy, EGLint id)) \
|
||||
X(EGLBoolean, eglGetConfigs, (EGLDisplay display, EGLConfig* configs, EGLint config_size, EGLint* num_config)) \
|
||||
X(EGLBoolean, eglChooseConfig, (EGLDisplay display, const EGLint* attribs, EGLConfig* configs, EGLint config_size, EGLint* num_config)) \
|
||||
X(EGLBoolean, eglGetConfigAttrib, (EGLDisplay display, EGLConfig config, EGLint attribute, EGLint* value)) \
|
||||
X(EGLSurface, eglCreateWindowSurface, (EGLDisplay display, EGLConfig config, EGLNativeWindowType native_window, const EGLint* attrib_list)) \
|
||||
X(EGLSurface, eglCreatePbufferSurface, (EGLDisplay display, EGLConfig config, const EGLint* attrib_list)) \
|
||||
X(EGLBoolean, eglDestroySurface, (EGLDisplay display, EGLSurface surface)) \
|
||||
X(EGLBoolean, eglBindAPI, (EGLenum api)) \
|
||||
X(EGLenum, eglQueryAPI, ()) \
|
||||
X(EGLBoolean, eglReleaseThread, ()) \
|
||||
X(EGLContext, eglCreateContext, (EGLDisplay display, EGLConfig config, EGLContext share_context, const EGLint* attrib_list)) \
|
||||
X(EGLBoolean, eglDestroyContext, (EGLDisplay display, EGLContext context)) \
|
||||
X(EGLBoolean, eglMakeCurrent, (EGLDisplay display, EGLSurface draw, EGLSurface read, EGLContext context)) \
|
||||
X(EGLContext, eglGetCurrentContext, ()) \
|
||||
X(EGLSurface, eglGetCurrentSurface, (EGLint readdraw)) \
|
||||
X(EGLBoolean, eglSwapBuffers, (EGLDisplay display, EGLSurface surface)) \
|
||||
X(void*, eglGetProcAddress, (const char* function_name)) \
|
||||
|
||||
|
||||
#endif // RENDER_EGL_FUNCTIONS_H
|
||||
45
external/android-emugl/host/include/OpenGLESDispatch/gldefs.h
vendored
Normal file
45
external/android-emugl/host/include/OpenGLESDispatch/gldefs.h
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (C) 2011 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
typedef double GLclampd; /* double precision float in [0,1] */
|
||||
typedef double GLdouble; /* double precision float */
|
||||
typedef void* GLeglImageOES;
|
||||
|
||||
#define GL_S 0x2000
|
||||
#define GL_T 0x2001
|
||||
#define GL_R 0x2002
|
||||
#define GL_Q 0x2003
|
||||
#define GL_TEXTURE_GEN_S 0x0C60
|
||||
#define GL_TEXTURE_GEN_T 0x0C61
|
||||
#define GL_TEXTURE_GEN_R 0x0C62
|
||||
#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
|
||||
#define GL_TRANSFORM_BIT 0x00001000
|
||||
#define GL_INT 0x1404
|
||||
#define GL_HALF_FLOAT_NV 0x140B
|
||||
#define GL_HALF_FLOAT 0x140B
|
||||
#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
|
||||
#define GL_POINT_SPRITE 0x8861
|
||||
#define GL_FRAMEBUFFER_EXT 0x8D40
|
||||
#define GL_TEXTURE_WIDTH 0x1000
|
||||
#define GL_TEXTURE_HEIGHT 0x1001
|
||||
#define GL_TEXTURE_RED_SIZE 0x805C
|
||||
#define GL_TEXTURE_GREEN_SIZE 0x805D
|
||||
#define GL_TEXTURE_BLUE_SIZE 0x805E
|
||||
#define GL_TEXTURE_ALPHA_SIZE 0x805F
|
||||
#define GL_TEXTURE_DEPTH_SIZE 0x884A
|
||||
#define GL_TEXTURE_INTERNAL_FORMAT 0x1003
|
||||
27
external/android-emugl/host/include/OpenGLESDispatch/gles1_extensions_functions.h
vendored
Normal file
27
external/android-emugl/host/include/OpenGLESDispatch/gles1_extensions_functions.h
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
// Auto-generated with: android/scripts/gen-entries.py --mode=funcargs distrib/android-emugl/host/libs/libOpenGLESDispatch/gles1_extensions.entries --output=distrib/android-emugl/host/include/OpenGLESDispatch/gles1_extensions_functions.h
|
||||
// DO NOT EDIT THIS FILE
|
||||
|
||||
#ifndef GLES1_EXTENSIONS_FUNCTIONS_H
|
||||
#define GLES1_EXTENSIONS_FUNCTIONS_H
|
||||
|
||||
#define LIST_GLES1_EXTENSIONS_FUNCTIONS(X) \
|
||||
X(void, glCurrentPaletteMatrixARB, (GLint index), (index)) \
|
||||
X(void, glMatrixIndexuivARB, (GLint size, GLuint * indices), (size, indices)) \
|
||||
X(void, glMatrixIndexPointerARB, (GLint size, GLenum type, GLsizei stride, const GLvoid* pointer), (size, type, stride, pointer)) \
|
||||
X(void, glWeightPointerARB, (GLint size, GLenum type, GLsizei stride, const GLvoid* pointer), (size, type, stride, pointer)) \
|
||||
X(void, glTexGenf, (GLenum coord, GLenum pname, GLfloat param), (coord, pname, param)) \
|
||||
X(void, glTexGeni, (GLenum coord, GLenum pname, GLint param), (coord, pname, param)) \
|
||||
X(void, glTexGenfv, (GLenum coord, GLenum pname, const GLfloat * params), (coord, pname, params)) \
|
||||
X(void, glTexGeniv, (GLenum coord, GLenum pname, const GLint * params), (coord, pname, params)) \
|
||||
X(void, glGetTexGenfv, (GLenum coord, GLenum pname, GLfloat * params), (coord, pname, params)) \
|
||||
X(void, glGetTexGeniv, (GLenum coord, GLenum pname, GLint * params), (coord, pname, params)) \
|
||||
X(void, glDrawTexsOES, (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height), (x, y, z, width, height)) \
|
||||
X(void, glDrawTexiOES, (GLshort x, GLint y, GLint z, GLint width, GLshort height), (x, y, z, width, height)) \
|
||||
X(void, glDrawTexfOES, (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height), (x, y, z, width, height)) \
|
||||
X(void, glDrawTexxOES, (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height), (x, y, z, width, height)) \
|
||||
X(void, glDrawTexsvOES, (const GLshort *coords), (coords)) \
|
||||
X(void, glDrawTexivOES, (const GLint *coords), (coords)) \
|
||||
X(void, glDrawTexxvOES, (const GLfixed *coords), (coords)) \
|
||||
X(void, glDrawTexfvOES, (const GLfloat *coords), (coords)) \
|
||||
|
||||
#endif // GLES1_EXTENSIONS_FUNCTIONS_H
|
||||
71
external/android-emugl/host/include/OpenGLESDispatch/gles1_only_functions.h
vendored
Normal file
71
external/android-emugl/host/include/OpenGLESDispatch/gles1_only_functions.h
vendored
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
// Auto-generated with: android/scripts/gen-entries.py --mode=funcargs distrib/android-emugl/host/libs/libOpenGLESDispatch/gles1_only.entries --output=distrib/android-emugl/host/include/OpenGLESDispatch/gles1_only_functions.h
|
||||
// DO NOT EDIT THIS FILE
|
||||
|
||||
#ifndef GLES1_ONLY_FUNCTIONS_H
|
||||
#define GLES1_ONLY_FUNCTIONS_H
|
||||
|
||||
#define LIST_GLES1_ONLY_FUNCTIONS(X) \
|
||||
X(void, glAlphaFunc, (GLenum func, GLclampf ref), (func, ref)) \
|
||||
X(void, glBegin, (GLenum mode), (mode)) \
|
||||
X(void, glClientActiveTexture, (GLenum texture), (texture)) \
|
||||
X(void, glClipPlane, (GLenum plane, const GLdouble * equation), (plane, equation)) \
|
||||
X(void, glColor4d, (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha), (red, green, blue, alpha)) \
|
||||
X(void, glColor4f, (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha), (red, green, blue, alpha)) \
|
||||
X(void, glColor4fv, (const GLfloat * v), (v)) \
|
||||
X(void, glColor4ub, (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha), (red, green, blue, alpha)) \
|
||||
X(void, glColor4ubv, (const GLubyte * v), (v)) \
|
||||
X(void, glColorPointer, (GLint size, GLenum type, GLsizei stride, const GLvoid * pointer), (size, type, stride, pointer)) \
|
||||
X(void, glDisableClientState, (GLenum array), (array)) \
|
||||
X(void, glEnableClientState, (GLenum array), (array)) \
|
||||
X(void, glEnd, (), ()) \
|
||||
X(void, glFogf, (GLenum pname, GLfloat param), (pname, param)) \
|
||||
X(void, glFogfv, (GLenum pname, const GLfloat * params), (pname, params)) \
|
||||
X(void, glFrustum, (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar), (left, right, bottom, top, zNear, zFar)) \
|
||||
X(void, glGetClipPlane, (GLenum plane, GLdouble * equation), (plane, equation)) \
|
||||
X(void, glGetDoublev, (GLenum pname, GLdouble * params), (pname, params)) \
|
||||
X(void, glGetLightfv, (GLenum light, GLenum pname, GLfloat * params), (light, pname, params)) \
|
||||
X(void, glGetMaterialfv, (GLenum face, GLenum pname, GLfloat * params), (face, pname, params)) \
|
||||
X(void, glGetPointerv, (GLenum pname, GLvoid* * params), (pname, params)) \
|
||||
X(void, glGetTexEnvfv, (GLenum target, GLenum pname, GLfloat * params), (target, pname, params)) \
|
||||
X(void, glGetTexEnviv, (GLenum target, GLenum pname, GLint * params), (target, pname, params)) \
|
||||
X(void, glLightf, (GLenum light, GLenum pname, GLfloat param), (light, pname, param)) \
|
||||
X(void, glLightfv, (GLenum light, GLenum pname, const GLfloat * params), (light, pname, params)) \
|
||||
X(void, glLightModelf, (GLenum pname, GLfloat param), (pname, param)) \
|
||||
X(void, glLightModelfv, (GLenum pname, const GLfloat * params), (pname, params)) \
|
||||
X(void, glLoadIdentity, (), ()) \
|
||||
X(void, glLoadMatrixf, (const GLfloat * m), (m)) \
|
||||
X(void, glLogicOp, (GLenum opcode), (opcode)) \
|
||||
X(void, glMaterialf, (GLenum face, GLenum pname, GLfloat param), (face, pname, param)) \
|
||||
X(void, glMaterialfv, (GLenum face, GLenum pname, const GLfloat * params), (face, pname, params)) \
|
||||
X(void, glMultiTexCoord2fv, (GLenum target, const GLfloat * v), (target, v)) \
|
||||
X(void, glMultiTexCoord2sv, (GLenum target, const GLshort * v), (target, v)) \
|
||||
X(void, glMultiTexCoord3fv, (GLenum target, const GLfloat * v), (target, v)) \
|
||||
X(void, glMultiTexCoord3sv, (GLenum target, const GLshort * v), (target, v)) \
|
||||
X(void, glMultiTexCoord4f, (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q), (target, s, t, r, q)) \
|
||||
X(void, glMultiTexCoord4fv, (GLenum target, const GLfloat * v), (target, v)) \
|
||||
X(void, glMultiTexCoord4sv, (GLenum target, const GLshort * v), (target, v)) \
|
||||
X(void, glMultMatrixf, (const GLfloat * m), (m)) \
|
||||
X(void, glNormal3f, (GLfloat nx, GLfloat ny, GLfloat nz), (nx, ny, nz)) \
|
||||
X(void, glNormal3fv, (const GLfloat * v), (v)) \
|
||||
X(void, glNormal3sv, (const GLshort * v), (v)) \
|
||||
X(void, glOrtho, (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar), (left, right, bottom, top, zNear, zFar)) \
|
||||
X(void, glPointParameterf, (GLenum param, GLfloat value), (param, value)) \
|
||||
X(void, glPointParameterfv, (GLenum param, const GLfloat * values), (param, values)) \
|
||||
X(void, glPointSize, (GLfloat size), (size)) \
|
||||
X(void, glRotatef, (GLfloat angle, GLfloat x, GLfloat y, GLfloat z), (angle, x, y, z)) \
|
||||
X(void, glScalef, (GLfloat x, GLfloat y, GLfloat z), (x, y, z)) \
|
||||
X(void, glTexEnvf, (GLenum target, GLenum pname, GLfloat param), (target, pname, param)) \
|
||||
X(void, glTexEnvfv, (GLenum target, GLenum pname, const GLfloat * params), (target, pname, params)) \
|
||||
X(void, glMatrixMode, (GLenum mode), (mode)) \
|
||||
X(void, glNormalPointer, (GLenum type, GLsizei stride, const GLvoid * pointer), (type, stride, pointer)) \
|
||||
X(void, glPopMatrix, (), ()) \
|
||||
X(void, glPushMatrix, (), ()) \
|
||||
X(void, glShadeModel, (GLenum mode), (mode)) \
|
||||
X(void, glTexCoordPointer, (GLint size, GLenum type, GLsizei stride, const GLvoid * pointer), (size, type, stride, pointer)) \
|
||||
X(void, glTexEnvi, (GLenum target, GLenum pname, GLint param), (target, pname, param)) \
|
||||
X(void, glTexEnviv, (GLenum target, GLenum pname, const GLint * params), (target, pname, params)) \
|
||||
X(void, glTranslatef, (GLfloat x, GLfloat y, GLfloat z), (x, y, z)) \
|
||||
X(void, glVertexPointer, (GLint size, GLenum type, GLsizei stride, const GLvoid * pointer), (size, type, stride, pointer)) \
|
||||
|
||||
|
||||
#endif // GLES1_ONLY_FUNCTIONS_H
|
||||
13
external/android-emugl/host/include/OpenGLESDispatch/gles2_extensions_functions.h
vendored
Normal file
13
external/android-emugl/host/include/OpenGLESDispatch/gles2_extensions_functions.h
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// Auto-generated with: android/scripts/gen-entries.py --mode=funcargs distrib/android-emugl/host/libs/libOpenGLESDispatch/gles2_extensions.entries --output=distrib/android-emugl/host/include/OpenGLESDispatch/gles2_extensions_functions.h
|
||||
// DO NOT EDIT THIS FILE
|
||||
|
||||
#ifndef GLES2_EXTENSIONS_FUNCTIONS_H
|
||||
#define GLES2_EXTENSIONS_FUNCTIONS_H
|
||||
|
||||
#define LIST_GLES2_EXTENSIONS_FUNCTIONS(X) \
|
||||
X(void, glGetShaderPrecisionFormat, (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision), (shadertype, precisiontype, range, precision)) \
|
||||
X(void, glReleaseShaderCompiler, (), ()) \
|
||||
X(void, glShaderBinary, (GLsizei n, const GLuint* shaders, GLenum binaryformat, const GLvoid* binary, GLsizei length), (n, shaders, binaryformat, binary, length)) \
|
||||
|
||||
|
||||
#endif // GLES2_EXTENSIONS_FUNCTIONS_H
|
||||
85
external/android-emugl/host/include/OpenGLESDispatch/gles2_only_functions.h
vendored
Normal file
85
external/android-emugl/host/include/OpenGLESDispatch/gles2_only_functions.h
vendored
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
// Auto-generated with: android/scripts/gen-entries.py --mode=funcargs distrib/android-emugl/host/libs/libOpenGLESDispatch/gles2_only.entries --output=distrib/android-emugl/host/include/OpenGLESDispatch/gles2_only_functions.h
|
||||
// DO NOT EDIT THIS FILE
|
||||
|
||||
#ifndef GLES2_ONLY_FUNCTIONS_H
|
||||
#define GLES2_ONLY_FUNCTIONS_H
|
||||
|
||||
#define LIST_GLES2_ONLY_FUNCTIONS(X) \
|
||||
X(void, glBlendColor, (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha), (red, green, blue, alpha)) \
|
||||
X(void, glStencilFuncSeparate, (GLenum face, GLenum func, GLint ref, GLuint mask), (face, func, ref, mask)) \
|
||||
X(void, glStencilMaskSeparate, (GLenum face, GLuint mask), (face, mask)) \
|
||||
X(void, glStencilOpSeparate, (GLenum face, GLenum fail, GLenum zfail, GLenum zpass), (face, fail, zfail, zpass)) \
|
||||
X(GLboolean, glIsProgram, (GLuint program), (program)) \
|
||||
X(GLboolean, glIsShader, (GLuint shader), (shader)) \
|
||||
X(void, glVertexAttrib1f, (GLuint indx, GLfloat x), (indx, x)) \
|
||||
X(void, glVertexAttrib1fv, (GLuint indx, const GLfloat* values), (indx, values)) \
|
||||
X(void, glVertexAttrib2f, (GLuint indx, GLfloat x, GLfloat y), (indx, x, y)) \
|
||||
X(void, glVertexAttrib2fv, (GLuint indx, const GLfloat* values), (indx, values)) \
|
||||
X(void, glVertexAttrib3f, (GLuint indx, GLfloat x, GLfloat y, GLfloat z), (indx, x, y, z)) \
|
||||
X(void, glVertexAttrib3fv, (GLuint indx, const GLfloat* values), (indx, values)) \
|
||||
X(void, glVertexAttrib4f, (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w), (indx, x, y, z, w)) \
|
||||
X(void, glVertexAttrib4fv, (GLuint indx, const GLfloat* values), (indx, values)) \
|
||||
X(void, glVertexAttribPointer, (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr), (indx, size, type, normalized, stride, ptr)) \
|
||||
X(void, glDisableVertexAttribArray, (GLuint index), (index)) \
|
||||
X(void, glEnableVertexAttribArray, (GLuint index), (index)) \
|
||||
X(void, glGetVertexAttribfv, (GLuint index, GLenum pname, GLfloat* params), (index, pname, params)) \
|
||||
X(void, glGetVertexAttribiv, (GLuint index, GLenum pname, GLint* params), (index, pname, params)) \
|
||||
X(void, glGetVertexAttribPointerv, (GLuint index, GLenum pname, GLvoid** pointer), (index, pname, pointer)) \
|
||||
X(void, glUniform1f, (GLint location, GLfloat x), (location, x)) \
|
||||
X(void, glUniform1fv, (GLint location, GLsizei count, const GLfloat* v), (location, count, v)) \
|
||||
X(void, glUniform1i, (GLint location, GLint x), (location, x)) \
|
||||
X(void, glUniform1iv, (GLint location, GLsizei count, const GLint* v), (location, count, v)) \
|
||||
X(void, glUniform2f, (GLint location, GLfloat x, GLfloat y), (location, x, y)) \
|
||||
X(void, glUniform2fv, (GLint location, GLsizei count, const GLfloat* v), (location, count, v)) \
|
||||
X(void, glUniform2i, (GLint location, GLint x, GLint y), (location, x, y)) \
|
||||
X(void, glUniform2iv, (GLint location, GLsizei count, const GLint* v), (location, count, v)) \
|
||||
X(void, glUniform3f, (GLint location, GLfloat x, GLfloat y, GLfloat z), (location, x, y, z)) \
|
||||
X(void, glUniform3fv, (GLint location, GLsizei count, const GLfloat* v), (location, count, v)) \
|
||||
X(void, glUniform3i, (GLint location, GLint x, GLint y, GLint z), (location, x, y, z)) \
|
||||
X(void, glUniform3iv, (GLint location, GLsizei count, const GLint* v), (location, count, v)) \
|
||||
X(void, glUniform4f, (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w), (location, x, y, z, w)) \
|
||||
X(void, glUniform4fv, (GLint location, GLsizei count, const GLfloat* v), (location, count, v)) \
|
||||
X(void, glUniform4i, (GLint location, GLint x, GLint y, GLint z, GLint w), (location, x, y, z, w)) \
|
||||
X(void, glUniform4iv, (GLint location, GLsizei count, const GLint* v), (location, count, v)) \
|
||||
X(void, glUniformMatrix2fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value), (location, count, transpose, value)) \
|
||||
X(void, glUniformMatrix3fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value), (location, count, transpose, value)) \
|
||||
X(void, glUniformMatrix4fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value), (location, count, transpose, value)) \
|
||||
X(void, glAttachShader, (GLuint program, GLuint shader), (program, shader)) \
|
||||
X(void, glBindAttribLocation, (GLuint program, GLuint index, const GLchar* name), (program, index, name)) \
|
||||
X(void, glCompileShader, (GLuint shader), (shader)) \
|
||||
X(GLuint, glCreateProgram, (), ()) \
|
||||
X(GLuint, glCreateShader, (GLenum type), (type)) \
|
||||
X(void, glDeleteProgram, (GLuint program), (program)) \
|
||||
X(void, glDeleteShader, (GLuint shader), (shader)) \
|
||||
X(void, glDetachShader, (GLuint program, GLuint shader), (program, shader)) \
|
||||
X(void, glLinkProgram, (GLuint program), (program)) \
|
||||
X(void, glUseProgram, (GLuint program), (program)) \
|
||||
X(void, glValidateProgram, (GLuint program), (program)) \
|
||||
X(void, glGetActiveAttrib, (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name), (program, index, bufsize, length, size, type, name)) \
|
||||
X(void, glGetActiveUniform, (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name), (program, index, bufsize, length, size, type, name)) \
|
||||
X(void, glGetAttachedShaders, (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders), (program, maxcount, count, shaders)) \
|
||||
X(int, glGetAttribLocation, (GLuint program, const GLchar* name), (program, name)) \
|
||||
X(void, glGetProgramiv, (GLuint program, GLenum pname, GLint* params), (program, pname, params)) \
|
||||
X(void, glGetProgramInfoLog, (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog), (program, bufsize, length, infolog)) \
|
||||
X(void, glGetShaderiv, (GLuint shader, GLenum pname, GLint* params), (shader, pname, params)) \
|
||||
X(void, glGetShaderInfoLog, (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog), (shader, bufsize, length, infolog)) \
|
||||
X(void, glGetShaderSource, (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source), (shader, bufsize, length, source)) \
|
||||
X(void, glGetUniformfv, (GLuint program, GLint location, GLfloat* params), (program, location, params)) \
|
||||
X(void, glGetUniformiv, (GLuint program, GLint location, GLint* params), (program, location, params)) \
|
||||
X(int, glGetUniformLocation, (GLuint program, const GLchar* name), (program, name)) \
|
||||
X(void, glShaderSource, (GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length), (shader, count, string, length)) \
|
||||
X(void, glBindFramebuffer, (GLenum target, GLuint framebuffer), (target, framebuffer)) \
|
||||
X(void, glGenFramebuffers, (GLsizei n, GLuint* framebuffers), (n, framebuffers)) \
|
||||
X(void, glFramebufferTexture2D, (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level), (target, attachment, textarget, texture, level)) \
|
||||
X(GLenum, glCheckFramebufferStatus, (GLenum target), (target)) \
|
||||
X(void, glDeleteFramebuffers, (GLsizei n, const GLuint* framebuffers), (n, framebuffers)) \
|
||||
X(GLboolean, glIsRenderbuffer, (GLuint renderbuffer), (renderbuffer)) \
|
||||
X(void, glBindRenderbuffer, (GLenum target, GLuint renderbuffer), (target, renderbuffer)) \
|
||||
X(void, glDeleteRenderbuffers, (GLsizei n, const GLuint * renderbuffers), (n, renderbuffers)) \
|
||||
X(void, glGenRenderbuffers, (GLsizei n, GLuint * renderbuffers), (n, renderbuffers)) \
|
||||
X(void, glRenderbufferStorage, (GLenum target, GLenum internalformat, GLsizei width, GLsizei height), (target, internalformat, width, height)) \
|
||||
X(void, glGetRenderbufferParameteriv, (GLenum target, GLenum pname, GLint * params), (target, pname, params)) \
|
||||
X(void, glFramebufferRenderbuffer, (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer), (target, attachment, renderbuffertarget, renderbuffer)) \
|
||||
|
||||
|
||||
#endif // GLES2_ONLY_FUNCTIONS_H
|
||||
18
external/android-emugl/host/include/OpenGLESDispatch/gles3_only_functions.h
vendored
Normal file
18
external/android-emugl/host/include/OpenGLESDispatch/gles3_only_functions.h
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// Auto-generated with: android/scripts/gen-entries.py --mode=funcargs distrib/android-emugl/host/libs/libOpenGLESDispatch/gles3_only.entries --output=distrib/android-emugl/host/include/OpenGLESDispatch/gles3_only_functions.h
|
||||
// DO NOT EDIT THIS FILE
|
||||
|
||||
#ifndef GLES3_ONLY_FUNCTIONS_H
|
||||
#define GLES3_ONLY_FUNCTIONS_H
|
||||
|
||||
#include <GLES/gl.h>
|
||||
|
||||
// Used to avoid adding GLES3/gl3.h to our headers.
|
||||
#ifndef GL_NUM_EXTENSIONS
|
||||
#define GL_NUM_EXTENSIONS 0x821D
|
||||
#endif
|
||||
typedef const GLubyte* GLconstubyteptr;
|
||||
#define LIST_GLES3_ONLY_FUNCTIONS(X) \
|
||||
X(GLconstubyteptr, glGetStringi, (GLenum name, GLint index), (name, index)) \
|
||||
|
||||
|
||||
#endif // GLES3_ONLY_FUNCTIONS_H
|
||||
79
external/android-emugl/host/include/OpenGLESDispatch/gles_common_functions.h
vendored
Normal file
79
external/android-emugl/host/include/OpenGLESDispatch/gles_common_functions.h
vendored
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
// Auto-generated with: android/scripts/gen-entries.py --mode=funcargs distrib/android-emugl/host/libs/libOpenGLESDispatch/gles_common.entries --output=distrib/android-emugl/host/include/OpenGLESDispatch/gles_common_functions.h
|
||||
// DO NOT EDIT THIS FILE
|
||||
|
||||
#ifndef GLES_COMMON_FUNCTIONS_H
|
||||
#define GLES_COMMON_FUNCTIONS_H
|
||||
|
||||
#include <GLES/gl.h>
|
||||
// Return types must be single words, see GLDispatch.cpp
|
||||
typedef const GLubyte* GLconstubyteptr;
|
||||
#define LIST_GLES_COMMON_FUNCTIONS(X) \
|
||||
X(void, glActiveTexture, (GLenum texture), (texture)) \
|
||||
X(void, glBindBuffer, (GLenum target, GLuint buffer), (target, buffer)) \
|
||||
X(void, glBindTexture, (GLenum target, GLuint texture), (target, texture)) \
|
||||
X(void, glBlendFunc, (GLenum sfactor, GLenum dfactor), (sfactor, dfactor)) \
|
||||
X(void, glBlendEquation, (GLenum mode), (mode)) \
|
||||
X(void, glBlendEquationSeparate, (GLenum modeRGB, GLenum modeAlpha), (modeRGB, modeAlpha)) \
|
||||
X(void, glBlendFuncSeparate, (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha), (srcRGB, dstRGB, srcAlpha, dstAlpha)) \
|
||||
X(void, glBufferData, (GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage), (target, size, data, usage)) \
|
||||
X(void, glBufferSubData, (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid * data), (target, offset, size, data)) \
|
||||
X(void, glClear, (GLbitfield mask), (mask)) \
|
||||
X(void, glClearColor, (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha), (red, green, blue, alpha)) \
|
||||
X(void, glClearDepth, (GLclampd depth), (depth)) \
|
||||
X(void, glClearStencil, (GLint s), (s)) \
|
||||
X(void, glColorMask, (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha), (red, green, blue, alpha)) \
|
||||
X(void, glCompressedTexImage2D, (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * data), (target, level, internalformat, width, height, border, imageSize, data)) \
|
||||
X(void, glCompressedTexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * data), (target, level, xoffset, yoffset, width, height, format, imageSize, data)) \
|
||||
X(void, glCopyTexImage2D, (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border), (target, level, internalFormat, x, y, width, height, border)) \
|
||||
X(void, glCopyTexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height), (target, level, xoffset, yoffset, x, y, width, height)) \
|
||||
X(void, glCullFace, (GLenum mode), (mode)) \
|
||||
X(void, glDeleteBuffers, (GLsizei n, const GLuint * buffers), (n, buffers)) \
|
||||
X(void, glDeleteTextures, (GLsizei n, const GLuint * textures), (n, textures)) \
|
||||
X(void, glDepthFunc, (GLenum func), (func)) \
|
||||
X(void, glDepthMask, (GLboolean flag), (flag)) \
|
||||
X(void, glDepthRange, (GLclampd zNear, GLclampd zFar), (zNear, zFar)) \
|
||||
X(void, glDisable, (GLenum cap), (cap)) \
|
||||
X(void, glDrawArrays, (GLenum mode, GLint first, GLsizei count), (mode, first, count)) \
|
||||
X(void, glDrawElements, (GLenum mode, GLsizei count, GLenum type, const GLvoid * indices), (mode, count, type, indices)) \
|
||||
X(void, glEnable, (GLenum cap), (cap)) \
|
||||
X(void, glFinish, (), ()) \
|
||||
X(void, glFlush, (), ()) \
|
||||
X(void, glFrontFace, (GLenum mode), (mode)) \
|
||||
X(void, glGenBuffers, (GLsizei n, GLuint * buffers), (n, buffers)) \
|
||||
X(void, glGenTextures, (GLsizei n, GLuint * textures), (n, textures)) \
|
||||
X(void, glGetBooleanv, (GLenum pname, GLboolean * params), (pname, params)) \
|
||||
X(void, glGetBufferParameteriv, (GLenum buffer, GLenum parameter, GLint * value), (buffer, parameter, value)) \
|
||||
X(GLenum, glGetError, (), ()) \
|
||||
X(void, glGetFloatv, (GLenum pname, GLfloat * params), (pname, params)) \
|
||||
X(void, glGetIntegerv, (GLenum pname, GLint * params), (pname, params)) \
|
||||
X(GLconstubyteptr, glGetString, (GLenum name), (name)) \
|
||||
X(void, glTexParameterf, (GLenum target, GLenum pname, GLfloat param), (target, pname, param)) \
|
||||
X(void, glTexParameterfv, (GLenum target, GLenum pname, const GLfloat * params), (target, pname, params)) \
|
||||
X(void, glGetTexParameterfv, (GLenum target, GLenum pname, GLfloat * params), (target, pname, params)) \
|
||||
X(void, glGetTexParameteriv, (GLenum target, GLenum pname, GLint * params), (target, pname, params)) \
|
||||
X(void, glGetTexLevelParameteriv, (GLenum target, GLint level, GLenum pname, GLint * params), (target, level, pname, params)) \
|
||||
X(void, glHint, (GLenum target, GLenum mode), (target, mode)) \
|
||||
X(GLboolean, glIsBuffer, (GLuint buffer), (buffer)) \
|
||||
X(GLboolean, glIsEnabled, (GLenum cap), (cap)) \
|
||||
X(GLboolean, glIsTexture, (GLuint texture), (texture)) \
|
||||
X(void, glLineWidth, (GLfloat width), (width)) \
|
||||
X(void, glPolygonOffset, (GLfloat factor, GLfloat units), (factor, units)) \
|
||||
X(void, glPixelStorei, (GLenum pname, GLint param), (pname, param)) \
|
||||
X(void, glReadPixels, (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * pixels), (x, y, width, height, format, type, pixels)) \
|
||||
X(void, glSampleCoverage, (GLclampf value, GLboolean invert), (value, invert)) \
|
||||
X(void, glScissor, (GLint x, GLint y, GLsizei width, GLsizei height), (x, y, width, height)) \
|
||||
X(void, glStencilFunc, (GLenum func, GLint ref, GLuint mask), (func, ref, mask)) \
|
||||
X(void, glStencilMask, (GLuint mask), (mask)) \
|
||||
X(void, glStencilOp, (GLenum fail, GLenum zfail, GLenum zpass), (fail, zfail, zpass)) \
|
||||
X(void, glTexImage2D, (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels), (target, level, internalformat, width, height, border, format, type, pixels)) \
|
||||
X(void, glTexParameteri, (GLenum target, GLenum pname, GLint param), (target, pname, param)) \
|
||||
X(void, glTexParameteriv, (GLenum target, GLenum pname, const GLint * params), (target, pname, params)) \
|
||||
X(void, glTexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels), (target, level, xoffset, yoffset, width, height, format, type, pixels)) \
|
||||
X(void, glViewport, (GLint x, GLint y, GLsizei width, GLsizei height), (x, y, width, height)) \
|
||||
X(void, glPushAttrib, (GLbitfield mask), (mask)) \
|
||||
X(void, glPushClientAttrib, (GLbitfield mask), (mask)) \
|
||||
X(void, glPopAttrib, (), ()) \
|
||||
X(void, glPopClientAttrib, (), ()) \
|
||||
|
||||
|
||||
#endif // GLES_COMMON_FUNCTIONS_H
|
||||
29
external/android-emugl/host/include/OpenGLESDispatch/gles_extensions_functions.h
vendored
Normal file
29
external/android-emugl/host/include/OpenGLESDispatch/gles_extensions_functions.h
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
// Auto-generated with: android/scripts/gen-entries.py --mode=funcargs distrib/android-emugl/host/libs/libOpenGLESDispatch/gles_extensions.entries --output=distrib/android-emugl/host/include/OpenGLESDispatch/gles_extensions_functions.h
|
||||
// DO NOT EDIT THIS FILE
|
||||
|
||||
#ifndef GLES_EXTENSIONS_FUNCTIONS_H
|
||||
#define GLES_EXTENSIONS_FUNCTIONS_H
|
||||
|
||||
#define LIST_GLES_EXTENSIONS_FUNCTIONS(X) \
|
||||
X(GLboolean, glIsRenderbufferEXT, (GLuint renderbuffer), (renderbuffer)) \
|
||||
X(void, glBindRenderbufferEXT, (GLenum target, GLuint renderbuffer), (target, renderbuffer)) \
|
||||
X(void, glDeleteRenderbuffersEXT, (GLsizei n, const GLuint * renderbuffers), (n, renderbuffers)) \
|
||||
X(void, glGenRenderbuffersEXT, (GLsizei n, GLuint * renderbuffers), (n, renderbuffers)) \
|
||||
X(void, glRenderbufferStorageEXT, (GLenum target, GLenum internalformat, GLsizei width, GLsizei height), (target, internalformat, width, height)) \
|
||||
X(void, glGetRenderbufferParameterivEXT, (GLenum target, GLenum pname, GLint * params), (target, pname, params)) \
|
||||
X(GLboolean, glIsFramebufferEXT, (GLuint framebuffer), (framebuffer)) \
|
||||
X(void, glBindFramebufferEXT, (GLenum target, GLuint framebuffer), (target, framebuffer)) \
|
||||
X(void, glDeleteFramebuffersEXT, (GLsizei n, const GLuint * framebuffers), (n, framebuffers)) \
|
||||
X(void, glGenFramebuffersEXT, (GLsizei n, GLuint * framebuffers), (n, framebuffers)) \
|
||||
X(GLenum, glCheckFramebufferStatusEXT, (GLenum target), (target)) \
|
||||
X(void, glFramebufferTexture1DEXT, (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level), (target, attachment, textarget, texture, level)) \
|
||||
X(void, glFramebufferTexture2DEXT, (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level), (target, attachment, textarget, texture, level)) \
|
||||
X(void, glFramebufferTexture3DEXT, (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset), (target, attachment, textarget, texture, level, zoffset)) \
|
||||
X(void, glFramebufferRenderbufferEXT, (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer), (target, attachment, renderbuffertarget, renderbuffer)) \
|
||||
X(void, glGetFramebufferAttachmentParameterivEXT, (GLenum target, GLenum attachment, GLenum pname, GLint * params), (target, attachment, pname, params)) \
|
||||
X(void, glGenerateMipmapEXT, (GLenum target), (target)) \
|
||||
X(void, glEGLImageTargetTexture2DOES, (GLenum target, GLeglImageOES image), (target, image)) \
|
||||
X(void, glEGLImageTargetRenderbufferStorageOES, (GLenum target, GLeglImageOES image), (target, image)) \
|
||||
|
||||
|
||||
#endif // GLES_EXTENSIONS_FUNCTIONS_H
|
||||
50
external/android-emugl/host/include/OpenGLESDispatch/gles_functions.h
vendored
Normal file
50
external/android-emugl/host/include/OpenGLESDispatch/gles_functions.h
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
// Copyright 2016 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "OpenGLESDispatch/gles_common_functions.h"
|
||||
#include "OpenGLESDispatch/gles_extensions_functions.h"
|
||||
#include "OpenGLESDispatch/gles1_only_functions.h"
|
||||
#include "OpenGLESDispatch/gles1_extensions_functions.h"
|
||||
#include "OpenGLESDispatch/gles2_only_functions.h"
|
||||
#include "OpenGLESDispatch/gles2_extensions_functions.h"
|
||||
#include "OpenGLESDispatch/gles3_only_functions.h"
|
||||
|
||||
// As a special case, LIST_GLES3_ONLY_FUNCTIONS below uses the Y parameter
|
||||
// instead of the X one, meaning that the corresponding functions are
|
||||
// optional extensions. This is only because currently, the only GLESv3
|
||||
// API we support is glGetStringi(), which is not always provided by
|
||||
// host desktop GL drivers (though most do).
|
||||
#define LIST_GLES_FUNCTIONS(X,Y) \
|
||||
LIST_GLES_COMMON_FUNCTIONS(X) \
|
||||
LIST_GLES_EXTENSIONS_FUNCTIONS(Y) \
|
||||
LIST_GLES1_ONLY_FUNCTIONS(X) \
|
||||
LIST_GLES1_EXTENSIONS_FUNCTIONS(Y) \
|
||||
LIST_GLES2_ONLY_FUNCTIONS(X) \
|
||||
LIST_GLES2_EXTENSIONS_FUNCTIONS(Y) \
|
||||
LIST_GLES3_ONLY_FUNCTIONS(Y) \
|
||||
|
||||
#define LIST_GLES1_FUNCTIONS(X, Y) \
|
||||
LIST_GLES_COMMON_FUNCTIONS(X) \
|
||||
LIST_GLES_EXTENSIONS_FUNCTIONS(Y) \
|
||||
LIST_GLES1_ONLY_FUNCTIONS(X) \
|
||||
LIST_GLES1_EXTENSIONS_FUNCTIONS(Y) \
|
||||
|
||||
#define LIST_GLES2_FUNCTIONS(X, Y) \
|
||||
LIST_GLES_COMMON_FUNCTIONS(X) \
|
||||
LIST_GLES_EXTENSIONS_FUNCTIONS(Y) \
|
||||
LIST_GLES2_ONLY_FUNCTIONS(X) \
|
||||
LIST_GLES2_EXTENSIONS_FUNCTIONS(Y) \
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue