Initial work
This commit is contained in:
commit
3222551702
374 changed files with 40290 additions and 0 deletions
15
external/android-emugl/host/libs/GLESv2_dec/Android.mk
vendored
Normal file
15
external/android-emugl/host/libs/GLESv2_dec/Android.mk
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
### host library ##########################################
|
||||
$(call emugl-begin-host-static-library,libGLESv2_dec)
|
||||
$(call emugl-import, libOpenglCodecCommon)
|
||||
$(call emugl-gen-decoder,$(LOCAL_PATH),gles2)
|
||||
|
||||
# For gl2_types.h !
|
||||
$(call emugl-export,C_INCLUDES,$(LOCAL_PATH))
|
||||
|
||||
$(call emugl-export,CFLAGS,$(EMUGL_USER_CFLAGS))
|
||||
|
||||
LOCAL_SRC_FILES := GLESv2Decoder.cpp
|
||||
|
||||
$(call emugl-end-module)
|
||||
18
external/android-emugl/host/libs/GLESv2_dec/CMakeLists.txt
vendored
Normal file
18
external/android-emugl/host/libs/GLESv2_dec/CMakeLists.txt
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
set(GENERATED_SOURCES
|
||||
gles2_dec.cpp
|
||||
gles2_opcodes.h
|
||||
gles2_server_context.cpp)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${GENERATED_SOURCES}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_BINARY_DIR}/external/android-emugl/host/tools/emugen/emugen
|
||||
-D ${CMAKE_CURRENT_BINARY_DIR} gles2
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DEPENDS emugen)
|
||||
|
||||
set(SOURCES
|
||||
GLESv2Decoder.cpp)
|
||||
|
||||
add_library(GLESv2_dec ${SOURCES} ${GENERATED_SOURCES})
|
||||
target_link_libraries(GLESv2_dec OpenglCodecCommon)
|
||||
129
external/android-emugl/host/libs/GLESv2_dec/GLESv2Decoder.cpp
vendored
Normal file
129
external/android-emugl/host/libs/GLESv2_dec/GLESv2Decoder.cpp
vendored
Normal file
|
|
@ -0,0 +1,129 @@
|
|||
/*
|
||||
* Copyright 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.
|
||||
*/
|
||||
|
||||
#include "GLESv2Decoder.h"
|
||||
|
||||
#include <EGL/egl.h>
|
||||
#include <GLES2/gl2.h>
|
||||
#include <GLES2/gl2ext.h>
|
||||
|
||||
static inline void* SafePointerFromUInt(GLuint value) {
|
||||
return (void*)(uintptr_t)value;
|
||||
}
|
||||
|
||||
GLESv2Decoder::GLESv2Decoder()
|
||||
{
|
||||
m_contextData = NULL;
|
||||
m_GL2library = NULL;
|
||||
}
|
||||
|
||||
GLESv2Decoder::~GLESv2Decoder()
|
||||
{
|
||||
delete m_GL2library;
|
||||
}
|
||||
|
||||
void *GLESv2Decoder::s_getProc(const char *name, void *userData)
|
||||
{
|
||||
GLESv2Decoder *ctx = (GLESv2Decoder *) userData;
|
||||
|
||||
if (ctx == NULL || ctx->m_GL2library == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void *func = NULL;
|
||||
#ifdef USE_EGL_GETPROCADDRESS
|
||||
func = (void *) eglGetProcAddress(name);
|
||||
#endif
|
||||
if (func == NULL) {
|
||||
func = (void *) ctx->m_GL2library->findSymbol(name);
|
||||
}
|
||||
return func;
|
||||
}
|
||||
|
||||
int GLESv2Decoder::initGL(get_proc_func_t getProcFunc, void *getProcFuncData)
|
||||
{
|
||||
this->initDispatchByName(getProcFunc, getProcFuncData);
|
||||
|
||||
glGetCompressedTextureFormats = s_glGetCompressedTextureFormats;
|
||||
glVertexAttribPointerData = s_glVertexAttribPointerData;
|
||||
glVertexAttribPointerOffset = s_glVertexAttribPointerOffset;
|
||||
|
||||
glDrawElementsOffset = s_glDrawElementsOffset;
|
||||
glDrawElementsData = s_glDrawElementsData;
|
||||
glShaderString = s_glShaderString;
|
||||
glFinishRoundTrip = s_glFinishRoundTrip;
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
int GLESv2Decoder::s_glFinishRoundTrip(void *self)
|
||||
{
|
||||
GLESv2Decoder *ctx = (GLESv2Decoder *)self;
|
||||
ctx->glFinish();
|
||||
return 0;
|
||||
}
|
||||
|
||||
void GLESv2Decoder::s_glGetCompressedTextureFormats(void *self, int count, GLint *formats)
|
||||
{
|
||||
GLESv2Decoder *ctx = (GLESv2Decoder *) self;
|
||||
|
||||
int nFormats;
|
||||
ctx->glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &nFormats);
|
||||
if (nFormats > count) {
|
||||
fprintf(stderr, "%s: GetCompressedTextureFormats: The requested number of formats does not match the number that is reported by OpenGL\n", __FUNCTION__);
|
||||
} else {
|
||||
ctx->glGetIntegerv(GL_COMPRESSED_TEXTURE_FORMATS, formats);
|
||||
}
|
||||
}
|
||||
|
||||
void GLESv2Decoder::s_glVertexAttribPointerData(void *self, GLuint indx, GLint size, GLenum type,
|
||||
GLboolean normalized, GLsizei stride, void * data, GLuint datalen)
|
||||
{
|
||||
GLESv2Decoder *ctx = (GLESv2Decoder *) self;
|
||||
if (ctx->m_contextData != NULL) {
|
||||
ctx->m_contextData->storePointerData(indx, data, datalen);
|
||||
// note - the stride of the data is always zero when it comes out of the codec.
|
||||
// See gl2.attrib for the packing function call.
|
||||
ctx->glVertexAttribPointer(indx, size, type, normalized, 0, ctx->m_contextData->pointerData(indx));
|
||||
}
|
||||
}
|
||||
|
||||
void GLESv2Decoder::s_glVertexAttribPointerOffset(void *self, GLuint indx, GLint size, GLenum type,
|
||||
GLboolean normalized, GLsizei stride, GLuint data)
|
||||
{
|
||||
GLESv2Decoder *ctx = (GLESv2Decoder *) self;
|
||||
ctx->glVertexAttribPointer(indx, size, type, normalized, stride, SafePointerFromUInt(data));
|
||||
}
|
||||
|
||||
|
||||
void GLESv2Decoder::s_glDrawElementsData(void *self, GLenum mode, GLsizei count, GLenum type, void * data, GLuint datalen)
|
||||
{
|
||||
GLESv2Decoder *ctx = (GLESv2Decoder *)self;
|
||||
ctx->glDrawElements(mode, count, type, data);
|
||||
}
|
||||
|
||||
|
||||
void GLESv2Decoder::s_glDrawElementsOffset(void *self, GLenum mode, GLsizei count, GLenum type, GLuint offset)
|
||||
{
|
||||
GLESv2Decoder *ctx = (GLESv2Decoder *)self;
|
||||
ctx->glDrawElements(mode, count, type, SafePointerFromUInt(offset));
|
||||
}
|
||||
|
||||
void GLESv2Decoder::s_glShaderString(void *self, GLuint shader, const GLchar* string, GLsizei len)
|
||||
{
|
||||
GLESv2Decoder *ctx = (GLESv2Decoder *)self;
|
||||
ctx->glShaderSource(shader, 1, &string, NULL);
|
||||
}
|
||||
48
external/android-emugl/host/libs/GLESv2_dec/GLESv2Decoder.h
vendored
Normal file
48
external/android-emugl/host/libs/GLESv2_dec/GLESv2Decoder.h
vendored
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
/*
|
||||
* Copyright 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.
|
||||
*/
|
||||
|
||||
#ifndef _GL2_DECODER_H_
|
||||
#define _GL2_DECODER_H_
|
||||
|
||||
#include "gles2_dec.h"
|
||||
#include "GLDecoderContextData.h"
|
||||
#include "emugl/common/shared_library.h"
|
||||
|
||||
class GLESv2Decoder : public gles2_decoder_context_t
|
||||
{
|
||||
public:
|
||||
typedef void *(*get_proc_func_t)(const char *name, void *userData);
|
||||
GLESv2Decoder();
|
||||
~GLESv2Decoder();
|
||||
int initGL(get_proc_func_t getProcFunc, void *getProcFuncData);
|
||||
void setContextData(GLDecoderContextData *contextData) { m_contextData = contextData; }
|
||||
private:
|
||||
GLDecoderContextData *m_contextData;
|
||||
emugl::SharedLibrary* m_GL2library;
|
||||
|
||||
static void *s_getProc(const char *name, void *userData);
|
||||
static void gles2_APIENTRY s_glGetCompressedTextureFormats(void *self, int count, GLint *formats);
|
||||
static void gles2_APIENTRY s_glVertexAttribPointerData(void *self, GLuint indx, GLint size, GLenum type,
|
||||
GLboolean normalized, GLsizei stride, void * data, GLuint datalen);
|
||||
static void gles2_APIENTRY s_glVertexAttribPointerOffset(void *self, GLuint indx, GLint size, GLenum type,
|
||||
GLboolean normalized, GLsizei stride, GLuint offset);
|
||||
|
||||
static void gles2_APIENTRY s_glDrawElementsOffset(void *self, GLenum mode, GLsizei count, GLenum type, GLuint offset);
|
||||
static void gles2_APIENTRY s_glDrawElementsData(void *self, GLenum mode, GLsizei count, GLenum type, void * data, GLuint datalen);
|
||||
static void gles2_APIENTRY s_glShaderString(void *self, GLuint shader, const GLchar* string, GLsizei len);
|
||||
static int gles2_APIENTRY s_glFinishRoundTrip(void *self);
|
||||
};
|
||||
#endif
|
||||
595
external/android-emugl/host/libs/GLESv2_dec/gles2.attrib
vendored
Normal file
595
external/android-emugl/host/libs/GLESv2_dec/gles2.attrib
vendored
Normal file
|
|
@ -0,0 +1,595 @@
|
|||
GLOBAL
|
||||
base_opcode 2048
|
||||
encoder_headers <string.h> "glUtils.h" "GLESv2EncoderUtils.h"
|
||||
|
||||
#void glBindAttribLocation(GLuint program, GLuint index, GLchar *name)
|
||||
glBindAttribLocation
|
||||
len name (strlen(name) + 1)
|
||||
|
||||
#void glBufferData(GLenum target, GLsizeiptr size, GLvoid *data, GLenum usage)
|
||||
glBufferData
|
||||
len data size
|
||||
var_flag data nullAllowed isLarge
|
||||
|
||||
#void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data)
|
||||
glBufferSubData
|
||||
len data size
|
||||
var_flag data nullAllowed isLarge
|
||||
|
||||
#void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, GLvoid *data)
|
||||
glCompressedTexImage2D
|
||||
len data imageSize
|
||||
var_flag data nullAllowed isLarge
|
||||
|
||||
#void glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, GLvoid *data)
|
||||
glCompressedTexSubImage2D
|
||||
len data imageSize
|
||||
var_flag data nullAllowed isLarge
|
||||
|
||||
#void glDeleteBuffers(GLsizei n, GLuint *buffers)
|
||||
glDeleteBuffers
|
||||
len buffers (n * sizeof(GLuint))
|
||||
param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
|
||||
|
||||
#void glDeleteFramebuffers(GLsizei n, GLuint *framebuffers)
|
||||
glDeleteFramebuffers
|
||||
len framebuffers (n * sizeof(GLuint))
|
||||
param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
|
||||
|
||||
#void glDeleteRenderbuffers(GLsizei n, GLuint *renderbuffers)
|
||||
glDeleteRenderbuffers
|
||||
len renderbuffers (n * sizeof(GLuint))
|
||||
param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
|
||||
|
||||
#void glDeleteTextures(GLsizei n, GLuint *textures)
|
||||
glDeleteTextures
|
||||
len textures (n * sizeof(GLuint))
|
||||
param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
|
||||
|
||||
#void glDrawElements(GLenum mode, GLsizei count, GLenum type, GLvoid *indices)
|
||||
glDrawElements
|
||||
flag unsupported
|
||||
|
||||
#void glGenBuffers(GLsizei n, GLuint *buffers)
|
||||
glGenBuffers
|
||||
len buffers (n * sizeof(GLuint))
|
||||
dir buffers out
|
||||
param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
|
||||
|
||||
#void glGenFramebuffers(GLsizei n, GLuint *framebuffers)
|
||||
glGenFramebuffers
|
||||
len framebuffers (n * sizeof(GLuint))
|
||||
dir framebuffers out
|
||||
param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
|
||||
|
||||
#void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
|
||||
glGenRenderbuffers
|
||||
len renderbuffers (n * sizeof(GLuint))
|
||||
dir renderbuffers out
|
||||
param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
|
||||
|
||||
#void glGenTextures(GLsizei n, GLuint *textures)
|
||||
glGenTextures
|
||||
len textures (n * sizeof(GLuint))
|
||||
dir textures out
|
||||
param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
|
||||
|
||||
#void glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
|
||||
glGetActiveAttrib
|
||||
len name bufsize
|
||||
dir name out
|
||||
var_flag name nullAllowed
|
||||
dir length out
|
||||
len length (sizeof(GLsizei))
|
||||
var_flag length nullAllowed
|
||||
dir size out
|
||||
len size (sizeof(GLint))
|
||||
var_flag size nullAllowed
|
||||
dir type out
|
||||
len type (sizeof(GLenum))
|
||||
var_flag type nullAllowed
|
||||
|
||||
#void glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
|
||||
glGetActiveUniform
|
||||
len name bufsize
|
||||
dir name out
|
||||
var_flag name nullAllowed
|
||||
dir length out
|
||||
len length (sizeof(GLsizei))
|
||||
var_flag length nullAllowed
|
||||
dir size out
|
||||
len size (sizeof(GLint))
|
||||
var_flag size nullAllowed
|
||||
dir type out
|
||||
len type (sizeof(GLenum))
|
||||
var_flag type nullAllowed
|
||||
|
||||
|
||||
#void glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders)
|
||||
glGetAttachedShaders
|
||||
len shaders (maxcount*sizeof(GLuint))
|
||||
dir shaders out
|
||||
dir count out
|
||||
var_flag count nullAllowed
|
||||
len count (sizeof(GLsizei))
|
||||
|
||||
#int glGetAttribLocation(GLuint program, GLchar *name)
|
||||
glGetAttribLocation
|
||||
len name (strlen(name) + 1)
|
||||
|
||||
#void glGetBooleanv(GLenum pname, GLboolean *params)
|
||||
glGetBooleanv
|
||||
dir params out
|
||||
len params (glUtilsParamSize(pname) * sizeof(GLboolean))
|
||||
|
||||
#void glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params)
|
||||
glGetBufferParameteriv
|
||||
len params (sizeof(GLint))
|
||||
dir params out
|
||||
|
||||
#void glGetFloatv(GLenum pname, GLfloat *params)
|
||||
glGetFloatv
|
||||
dir params out
|
||||
len params (glUtilsParamSize(pname) * sizeof(GLfloat))
|
||||
|
||||
#void glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params)
|
||||
glGetFramebufferAttachmentParameteriv
|
||||
dir params out
|
||||
len params (sizeof(GLint))
|
||||
|
||||
#void glGetIntegerv(GLenum pname, GLint *params)
|
||||
glGetIntegerv
|
||||
dir params out
|
||||
len params (glUtilsParamSize(pname) * sizeof(GLint))
|
||||
|
||||
#void glGetProgramiv(GLuint program, GLenum pname, GLint *params)
|
||||
glGetProgramiv
|
||||
dir params out
|
||||
len params sizeof(GLint)
|
||||
#XXX - might change if extension constants that return more then one value
|
||||
|
||||
|
||||
#void glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei *length, GLchar *infolog)
|
||||
glGetProgramInfoLog
|
||||
dir infolog out
|
||||
len infolog bufsize
|
||||
dir length out
|
||||
len length sizeof(GLsizei)
|
||||
var_flag length nullAllowed
|
||||
|
||||
#void glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params)
|
||||
glGetRenderbufferParameteriv
|
||||
dir params out
|
||||
len params sizeof(GLint)
|
||||
# XXX - might change if pname with value larger then one is added
|
||||
|
||||
#void glGetShaderiv(GLuint shader, GLenum pname, GLint *params)
|
||||
glGetShaderiv
|
||||
dir params out
|
||||
len params sizeof(GLint)
|
||||
# XXX - might change if pname with value larger then one is added
|
||||
|
||||
#void glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *infolog)
|
||||
glGetShaderInfoLog
|
||||
dir length out
|
||||
len length (sizeof(GLsizei))
|
||||
var_flag length nullAllowed
|
||||
dir infolog out
|
||||
len infolog bufsize
|
||||
|
||||
|
||||
#void glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
|
||||
glGetShaderPrecisionFormat
|
||||
dir range out
|
||||
len range (2 * sizeof(GLint))
|
||||
dir precision out
|
||||
len precision (sizeof(GLint))
|
||||
|
||||
#void glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source)
|
||||
glGetShaderSource
|
||||
dir length out
|
||||
len length (sizeof(GLsizei))
|
||||
var_flag length nullAllowed
|
||||
dir source out
|
||||
len source bufsize
|
||||
|
||||
#GLubyte* glGetString(GLenum name)
|
||||
glGetString
|
||||
flag unsupported
|
||||
|
||||
#void glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
|
||||
glGetTexParameterfv
|
||||
dir params out
|
||||
len params (glUtilsParamSize(pname) * sizeof(GLfloat))
|
||||
|
||||
#void glGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
|
||||
glGetTexParameteriv
|
||||
dir params out
|
||||
len params (glUtilsParamSize(pname) * sizeof(GLint))
|
||||
|
||||
#void glGetUniformfv(GLuint program, GLint location, GLfloat *params)
|
||||
glGetUniformfv
|
||||
dir params out
|
||||
len params glSizeof(glesv2_enc::uniformType(self, program, location))
|
||||
|
||||
#void glGetUniformiv(GLuint program, GLint location, GLint *params)
|
||||
glGetUniformiv
|
||||
dir params out
|
||||
len params glSizeof(glesv2_enc::uniformType(self, program, location))
|
||||
|
||||
#int glGetUniformLocation(GLuint program, GLchar *name)
|
||||
glGetUniformLocation
|
||||
len name (strlen(name) + 1)
|
||||
|
||||
# client-state shall be handled locally by the encoder in most cases.
|
||||
# however, GL_CURRENT_VERTEX_ATTRIB and potential others are handled by the server side,
|
||||
# thus we still need to implement it.
|
||||
#void glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)
|
||||
glGetVertexAttribfv
|
||||
dir params out
|
||||
len params (glUtilsParamSize(pname) * sizeof(GLfloat))
|
||||
|
||||
#see glGetVertexAttribfv for comments
|
||||
#void glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params)
|
||||
glGetVertexAttribiv
|
||||
dir params out
|
||||
len params (glUtilsParamSize(pname) * sizeof(GLint))
|
||||
|
||||
|
||||
|
||||
#void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
|
||||
glReadPixels
|
||||
dir pixels out
|
||||
len pixels glesv2_enc::pixelDataSize(self, width, height, format, type, 1)
|
||||
|
||||
#void glShaderBinary(GLsizei n, GLuint *shaders, GLenum binaryformat, GLvoid *binary, GLsizei length)
|
||||
glShaderBinary
|
||||
flag unsupported
|
||||
|
||||
#void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, GLvoid *pixels)
|
||||
glTexImage2D
|
||||
dir pixels in
|
||||
len pixels glesv2_enc::pixelDataSize(self, width, height, format, type, 0)
|
||||
var_flag pixels nullAllowed isLarge
|
||||
|
||||
#void glTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
|
||||
glTexParameterfv
|
||||
len params (glUtilsParamSize(pname) * sizeof(GLfloat))
|
||||
#void glTexParameteriv(GLenum target, GLenum pname, GLint *params)
|
||||
glTexParameteriv
|
||||
len params (glUtilsParamSize(pname) * sizeof(GLint))
|
||||
|
||||
#void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
|
||||
glTexSubImage2D
|
||||
len pixels glesv2_enc::pixelDataSize(self, width, height, format, type, 0)
|
||||
var_flag pixels nullAllowed isLarge
|
||||
|
||||
#void glUniform1fv(GLint location, GLsizei count, GLfloat *v)
|
||||
glUniform1fv
|
||||
len v (count * sizeof(GLfloat))
|
||||
|
||||
#void glUniform1iv(GLint location, GLsizei count, GLint *v)
|
||||
glUniform1iv
|
||||
len v (count * sizeof(GLint))
|
||||
|
||||
#void glUniform2fv(GLint location, GLsizei count, GLfloat *v)
|
||||
glUniform2fv
|
||||
len v (count * 2 * sizeof(GLfloat))
|
||||
|
||||
#void glUniform2iv(GLint location, GLsizei count, GLint *v)
|
||||
glUniform2iv
|
||||
len v (count * 2 * sizeof(GLint))
|
||||
|
||||
#void glUniform3fv(GLint location, GLsizei count, GLfloat *v)
|
||||
glUniform3fv
|
||||
len v (count * 3 * sizeof(GLfloat))
|
||||
|
||||
#void glUniform3iv(GLint location, GLsizei count, GLint *v)
|
||||
glUniform3iv
|
||||
len v (3 * count * sizeof(GLint))
|
||||
|
||||
#void glUniform4fv(GLint location, GLsizei count, GLfloat *v)
|
||||
glUniform4fv
|
||||
len v (4 * count * sizeof(GLfloat))
|
||||
|
||||
#void glUniform4iv(GLint location, GLsizei count, GLint *v)
|
||||
glUniform4iv
|
||||
len v (4 * count * sizeof(GLint))
|
||||
|
||||
#void glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, GLfloat *value)
|
||||
glUniformMatrix2fv
|
||||
len value (count * 4 * sizeof(GLfloat))
|
||||
|
||||
#void glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, GLfloat *value)
|
||||
glUniformMatrix3fv
|
||||
len value (count * 9 * sizeof(GLfloat))
|
||||
|
||||
#void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, GLfloat *value)
|
||||
glUniformMatrix4fv
|
||||
len value (count * 16 * sizeof(GLfloat))
|
||||
|
||||
#void glVertexAttrib1fv(GLuint indx, GLfloat *values)
|
||||
glVertexAttrib1fv
|
||||
len values (sizeof(GLfloat))
|
||||
#void glVertexAttrib2fv(GLuint indx, GLfloat *values)
|
||||
glVertexAttrib2fv
|
||||
len values (2 * sizeof(GLfloat))
|
||||
|
||||
#void glVertexAttrib3fv(GLuint indx, GLfloat *values)
|
||||
glVertexAttrib3fv
|
||||
len values (3 * sizeof(GLfloat))
|
||||
|
||||
#void glVertexAttrib4fv(GLuint indx, GLfloat *values)
|
||||
glVertexAttrib4fv
|
||||
len values (4 * sizeof(GLfloat))
|
||||
|
||||
#void glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLvoid *ptr)
|
||||
glVertexAttribPointer
|
||||
flag unsupported
|
||||
|
||||
#void glGetProgramBinaryOES(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary)
|
||||
glGetProgramBinaryOES
|
||||
flag unsupported
|
||||
|
||||
#void glProgramBinaryOES(GLuint program, GLenum binaryFormat, GLvoid *binary, GLint length)
|
||||
glProgramBinaryOES
|
||||
flag unsupported
|
||||
|
||||
#void* glMapBufferOES(GLenum target, GLenum access)
|
||||
glMapBufferOES
|
||||
flag unsupported
|
||||
|
||||
#void glTexImage3DOES(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, GLvoid *pixels)
|
||||
glTexImage3DOES
|
||||
len pixels glesv2_enc::pixelDataSize3D(self, width, height, depth, format, type, 0)
|
||||
var_flag pixels nullAllowed isLarge
|
||||
|
||||
#void glTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid *pixels)
|
||||
glTexSubImage3DOES
|
||||
len pixels glesv2_enc::pixelDataSize3D(self, width, height, depth, format, type, 0)
|
||||
var_flag pixels nullAllowed isLarge
|
||||
|
||||
#void glCompressedTexImage3DOES(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, GLvoid *data)
|
||||
glCompressedTexImage3DOES
|
||||
len data imageSize
|
||||
var_flag data nullAllowed isLarge
|
||||
|
||||
#void glCompressedTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, GLvoid *data)
|
||||
glCompressedTexSubImage3DOES
|
||||
len data imageSize
|
||||
var_flag data nullAllowed isLarge
|
||||
|
||||
#void glDeleteVertexArraysOES(GLsizei n, GLuint *arrays)
|
||||
glDeleteVertexArraysOES
|
||||
len arrays (n * sizeof(GLuint))
|
||||
param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
|
||||
|
||||
#void glGenVertexArraysOES(GLsizei n, GLuint *arrays)
|
||||
glGenVertexArraysOES
|
||||
len arrays (n * sizeof(GLuint))
|
||||
dir arrays out
|
||||
param_check n if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
|
||||
|
||||
|
||||
#void glDiscardFramebufferEXT(GLenum target, GLsizei numAttachments, GLenum *attachments)
|
||||
glDiscardFramebufferEXT
|
||||
len attachments (numAttachments * sizeof(GLenum))
|
||||
|
||||
#void glMultiDrawArraysEXT(GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount)
|
||||
glMultiDrawArraysEXT
|
||||
flag unsupported
|
||||
#void glMultiDrawElementsEXT(GLenum mode, GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei primcount)
|
||||
glMultiDrawElementsEXT
|
||||
flag unsupported
|
||||
|
||||
|
||||
# handled by encoder
|
||||
#void glShaderSource(GLuint shader, GLsizei count, GLstr *string, const GLint *length)
|
||||
glShaderSource
|
||||
flag unsupported
|
||||
|
||||
|
||||
|
||||
#void glGetPerfMonitorGroupsAMD(GLint *numGroups, GLsizei groupsSize, GLuint *groups)
|
||||
glGetPerfMonitorGroupsAMD
|
||||
flag unsupported
|
||||
|
||||
#void glGetPerfMonitorCountersAMD(GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters)
|
||||
glGetPerfMonitorCountersAMD
|
||||
flag unsupported
|
||||
|
||||
#void glGetPerfMonitorGroupStringAMD(GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString)
|
||||
glGetPerfMonitorGroupStringAMD
|
||||
flag unsupported
|
||||
|
||||
#void glGetPerfMonitorCounterStringAMD(GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString)
|
||||
glGetPerfMonitorCounterStringAMD
|
||||
flag unsupported
|
||||
|
||||
#void glGetPerfMonitorCounterInfoAMD(GLuint group, GLuint counter, GLenum pname, GLvoid *data)
|
||||
glGetPerfMonitorCounterInfoAMD
|
||||
flag unsupported
|
||||
|
||||
#void glGenPerfMonitorsAMD(GLsizei n, GLuint *monitors)
|
||||
glGenPerfMonitorsAMD
|
||||
flag unsupported
|
||||
|
||||
#void glDeletePerfMonitorsAMD(GLsizei n, GLuint *monitors)
|
||||
glDeletePerfMonitorsAMD
|
||||
flag unsupported
|
||||
|
||||
#void glSelectPerfMonitorCountersAMD(GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList)
|
||||
glSelectPerfMonitorCountersAMD
|
||||
flag unsupported
|
||||
|
||||
#void glBeginPerfMonitorAMD(GLuint monitor)
|
||||
glBeginPerfMonitorAMD
|
||||
flag unsupported
|
||||
|
||||
#void glEndPerfMonitorAMD(GLuint monitor)
|
||||
glEndPerfMonitorAMD
|
||||
flag unsupported
|
||||
|
||||
#void glGetPerfMonitorCounterDataAMD(GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten)
|
||||
glGetPerfMonitorCounterDataAMD
|
||||
flag unsupported
|
||||
|
||||
#void glRenderbufferStorageMultisampleIMG(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)
|
||||
glRenderbufferStorageMultisampleIMG
|
||||
flag unsupported
|
||||
|
||||
#void glFramebufferTexture2DMultisampleIMG(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples)
|
||||
glFramebufferTexture2DMultisampleIMG
|
||||
flag unsupported
|
||||
|
||||
#void glDeleteFencesNV(GLsizei n, GLuint *fences)
|
||||
glDeleteFencesNV
|
||||
flag unsupported
|
||||
|
||||
#void glGenFencesNV(GLsizei n, GLuint *fences)
|
||||
glGenFencesNV
|
||||
flag unsupported
|
||||
|
||||
#GLboolean glIsFenceNV(GLuint fence)
|
||||
glIsFenceNV
|
||||
flag unsupported
|
||||
|
||||
#GLboolean glTestFenceNV(GLuint fence)
|
||||
glTestFenceNV
|
||||
flag unsupported
|
||||
|
||||
#void glGetFenceivNV(GLuint fence, GLenum pname, GLint *params)
|
||||
glGetFenceivNV
|
||||
flag unsupported
|
||||
|
||||
#void glFinishFenceNV(GLuint fence)
|
||||
glFinishFenceNV
|
||||
flag unsupported
|
||||
|
||||
#void glSetFenceNV(GLuint fence, GLenum condition)
|
||||
glSetFenceNV
|
||||
flag unsupported
|
||||
|
||||
#void glCoverageMaskNV(GLboolean mask)
|
||||
glCoverageMaskNV
|
||||
flag unsupported
|
||||
|
||||
#void glCoverageOperationNV(GLenum operation)
|
||||
glCoverageOperationNV
|
||||
flag unsupported
|
||||
|
||||
#void glGetDriverControlsQCOM(GLint *num, GLsizei size, GLuint *driverControls)
|
||||
glGetDriverControlsQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glGetDriverControlStringQCOM(GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString)
|
||||
glGetDriverControlStringQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glEnableDriverControlQCOM(GLuint driverControl)
|
||||
glEnableDriverControlQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glDisableDriverControlQCOM(GLuint driverControl)
|
||||
glDisableDriverControlQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glExtGetTexturesQCOM(GLuint *textures, GLint maxTextures, GLint *numTextures)
|
||||
glExtGetTexturesQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glExtGetBuffersQCOM(GLuint *buffers, GLint maxBuffers, GLint *numBuffers)
|
||||
glExtGetBuffersQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glExtGetRenderbuffersQCOM(GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers)
|
||||
glExtGetRenderbuffersQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glExtGetFramebuffersQCOM(GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers)
|
||||
glExtGetFramebuffersQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glExtGetTexLevelParameterivQCOM(GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params)
|
||||
glExtGetTexLevelParameterivQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glExtTexObjectStateOverrideiQCOM(GLenum target, GLenum pname, GLint param)
|
||||
glExtTexObjectStateOverrideiQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glExtGetTexSubImageQCOM(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid *texels)
|
||||
glExtGetTexSubImageQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glExtGetBufferPointervQCOM(GLenum target, GLvoidptr *params)
|
||||
glExtGetBufferPointervQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glExtGetShadersQCOM(GLuint *shaders, GLint maxShaders, GLint *numShaders)
|
||||
glExtGetShadersQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glExtGetProgramsQCOM(GLuint *programs, GLint maxPrograms, GLint *numPrograms)
|
||||
glExtGetProgramsQCOM
|
||||
flag unsupported
|
||||
|
||||
#GLboolean glExtIsProgramBinaryQCOM(GLuint program)
|
||||
glExtIsProgramBinaryQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glExtGetProgramBinarySourceQCOM(GLuint program, GLenum shadertype, GLchar *source, GLint *length)
|
||||
glExtGetProgramBinarySourceQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glStartTilingQCOM(GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask)
|
||||
glStartTilingQCOM
|
||||
flag unsupported
|
||||
|
||||
#void glEndTilingQCOM(GLbitfield preserveMask)
|
||||
glEndTilingQCOM
|
||||
flag unsupported
|
||||
|
||||
|
||||
#void glVertexAttribPointerData(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, void * data, GLuint datalen)
|
||||
glVertexAttribPointerData
|
||||
len data datalen
|
||||
custom_pack data glUtilsPackPointerData((unsigned char *)ptr, (unsigned char *)data, size, type, stride, datalen)
|
||||
flag custom_decoder
|
||||
flag not_api
|
||||
|
||||
glVertexAttribPointerOffset
|
||||
flag custom_decoder
|
||||
flag not_api
|
||||
|
||||
#client-state, handled by the encoder
|
||||
#GL_ENTRY(void, glGetVertexAttribPointerv, GLuint index, GLenum pname, GLvoid** pointer)
|
||||
glGetVertexAttribPointerv
|
||||
flag unsupported
|
||||
|
||||
glDrawElementsData
|
||||
len data datalen
|
||||
flag custom_decoder
|
||||
flag not_api
|
||||
|
||||
glDrawElementsOffset
|
||||
flag custom_decoder
|
||||
flag not_api
|
||||
|
||||
#GL_ENTRY(void, glGetCompressedTextureFormats, int count, GLint *formats)
|
||||
glGetCompressedTextureFormats
|
||||
dir formats out
|
||||
len formats (count * sizeof(GLint))
|
||||
flag custom_decoder
|
||||
flag not_api
|
||||
|
||||
#GL_ENTRY(void, glShaderString, GLuint shader, GLchar *string, GLsizei len)
|
||||
glShaderString
|
||||
len string len
|
||||
flag custom_decoder
|
||||
flag not_api
|
||||
|
||||
glFinishRoundTrip
|
||||
flag custom_decoder
|
||||
flag not_api
|
||||
|
||||
214
external/android-emugl/host/libs/GLESv2_dec/gles2.in
vendored
Normal file
214
external/android-emugl/host/libs/GLESv2_dec/gles2.in
vendored
Normal file
|
|
@ -0,0 +1,214 @@
|
|||
GL_ENTRY(void, glActiveTexture, GLenum texture)
|
||||
GL_ENTRY(void, glAttachShader, GLuint program, GLuint shader)
|
||||
GL_ENTRY(void, glBindAttribLocation, GLuint program, GLuint index, const GLchar* name)
|
||||
GL_ENTRY(void, glBindBuffer, GLenum target, GLuint buffer)
|
||||
GL_ENTRY(void, glBindFramebuffer, GLenum target, GLuint framebuffer)
|
||||
GL_ENTRY(void, glBindRenderbuffer, GLenum target, GLuint renderbuffer)
|
||||
GL_ENTRY(void, glBindTexture, GLenum target, GLuint texture)
|
||||
GL_ENTRY(void, glBlendColor, GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
|
||||
GL_ENTRY(void, glBlendEquation, GLenum mode )
|
||||
GL_ENTRY(void, glBlendEquationSeparate, GLenum modeRGB, GLenum modeAlpha)
|
||||
GL_ENTRY(void, glBlendFunc, GLenum sfactor, GLenum dfactor)
|
||||
GL_ENTRY(void, glBlendFuncSeparate, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
|
||||
GL_ENTRY(void, glBufferData, GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage)
|
||||
GL_ENTRY(void, glBufferSubData, GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data)
|
||||
GL_ENTRY(GLenum, glCheckFramebufferStatus, GLenum target)
|
||||
GL_ENTRY(void, glClear, GLbitfield mask)
|
||||
GL_ENTRY(void, glClearColor, GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
|
||||
GL_ENTRY(void, glClearDepthf, GLclampf depth)
|
||||
GL_ENTRY(void, glClearStencil, GLint s)
|
||||
GL_ENTRY(void, glColorMask, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
|
||||
GL_ENTRY(void, glCompileShader, GLuint shader)
|
||||
GL_ENTRY(void, glCompressedTexImage2D, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data)
|
||||
GL_ENTRY(void, glCompressedTexSubImage2D, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data)
|
||||
GL_ENTRY(void, glCopyTexImage2D, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
|
||||
GL_ENTRY(void, glCopyTexSubImage2D, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
|
||||
GL_ENTRY(GLuint, glCreateProgram, void)
|
||||
GL_ENTRY(GLuint, glCreateShader, GLenum type)
|
||||
GL_ENTRY(void, glCullFace, GLenum mode)
|
||||
GL_ENTRY(void, glDeleteBuffers, GLsizei n, const GLuint* buffers)
|
||||
GL_ENTRY(void, glDeleteFramebuffers, GLsizei n, const GLuint* framebuffers)
|
||||
GL_ENTRY(void, glDeleteProgram, GLuint program)
|
||||
GL_ENTRY(void, glDeleteRenderbuffers, GLsizei n, const GLuint* renderbuffers)
|
||||
GL_ENTRY(void, glDeleteShader, GLuint shader)
|
||||
GL_ENTRY(void, glDeleteTextures, GLsizei n, const GLuint* textures)
|
||||
GL_ENTRY(void, glDepthFunc, GLenum func)
|
||||
GL_ENTRY(void, glDepthMask, GLboolean flag)
|
||||
GL_ENTRY(void, glDepthRangef, GLclampf zNear, GLclampf zFar)
|
||||
GL_ENTRY(void, glDetachShader, GLuint program, GLuint shader)
|
||||
GL_ENTRY(void, glDisable, GLenum cap)
|
||||
GL_ENTRY(void, glDisableVertexAttribArray, GLuint index)
|
||||
GL_ENTRY(void, glDrawArrays, GLenum mode, GLint first, GLsizei count)
|
||||
GL_ENTRY(void, glDrawElements, GLenum mode, GLsizei count, GLenum type, const GLvoid* indices)
|
||||
GL_ENTRY(void, glEnable, GLenum cap)
|
||||
GL_ENTRY(void, glEnableVertexAttribArray, GLuint index)
|
||||
GL_ENTRY(void, glFinish, void)
|
||||
GL_ENTRY(void, glFlush, void)
|
||||
GL_ENTRY(void, glFramebufferRenderbuffer, GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
|
||||
GL_ENTRY(void, glFramebufferTexture2D, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
|
||||
GL_ENTRY(void, glFrontFace, GLenum mode)
|
||||
GL_ENTRY(void, glGenBuffers, GLsizei n, GLuint* buffers)
|
||||
GL_ENTRY(void, glGenerateMipmap, GLenum target)
|
||||
GL_ENTRY(void, glGenFramebuffers, GLsizei n, GLuint* framebuffers)
|
||||
GL_ENTRY(void, glGenRenderbuffers, GLsizei n, GLuint* renderbuffers)
|
||||
GL_ENTRY(void, glGenTextures, GLsizei n, GLuint* textures)
|
||||
GL_ENTRY(void, glGetActiveAttrib, GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name)
|
||||
GL_ENTRY(void, glGetActiveUniform, GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name)
|
||||
GL_ENTRY(void, glGetAttachedShaders, GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders)
|
||||
GL_ENTRY(int, glGetAttribLocation, GLuint program, const GLchar* name)
|
||||
GL_ENTRY(void, glGetBooleanv, GLenum pname, GLboolean* params)
|
||||
GL_ENTRY(void, glGetBufferParameteriv, GLenum target, GLenum pname, GLint* params)
|
||||
GL_ENTRY(GLenum, glGetError, void)
|
||||
GL_ENTRY(void, glGetFloatv, GLenum pname, GLfloat* params)
|
||||
GL_ENTRY(void, glGetFramebufferAttachmentParameteriv, GLenum target, GLenum attachment, GLenum pname, GLint* params)
|
||||
GL_ENTRY(void, glGetIntegerv, GLenum pname, GLint* params)
|
||||
GL_ENTRY(void, glGetProgramiv, GLuint program, GLenum pname, GLint* params)
|
||||
GL_ENTRY(void, glGetProgramInfoLog, GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog)
|
||||
GL_ENTRY(void, glGetRenderbufferParameteriv, GLenum target, GLenum pname, GLint* params)
|
||||
GL_ENTRY(void, glGetShaderiv, GLuint shader, GLenum pname, GLint* params)
|
||||
GL_ENTRY(void, glGetShaderInfoLog, GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog)
|
||||
GL_ENTRY(void, glGetShaderPrecisionFormat, GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision)
|
||||
GL_ENTRY(void, glGetShaderSource, GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source)
|
||||
GL_ENTRY(const GLubyte*, glGetString, GLenum name)
|
||||
GL_ENTRY(void, glGetTexParameterfv, GLenum target, GLenum pname, GLfloat* params)
|
||||
GL_ENTRY(void, glGetTexParameteriv, GLenum target, GLenum pname, GLint* params)
|
||||
GL_ENTRY(void, glGetUniformfv, GLuint program, GLint location, GLfloat* params)
|
||||
GL_ENTRY(void, glGetUniformiv, GLuint program, GLint location, GLint* params)
|
||||
GL_ENTRY(int, glGetUniformLocation, GLuint program, const GLchar* name)
|
||||
GL_ENTRY(void, glGetVertexAttribfv, GLuint index, GLenum pname, GLfloat* params)
|
||||
GL_ENTRY(void, glGetVertexAttribiv, GLuint index, GLenum pname, GLint* params)
|
||||
GL_ENTRY(void, glGetVertexAttribPointerv, GLuint index, GLenum pname, GLvoid** pointer)
|
||||
GL_ENTRY(void, glHint, GLenum target, GLenum mode)
|
||||
GL_ENTRY(GLboolean, glIsBuffer, GLuint buffer)
|
||||
GL_ENTRY(GLboolean, glIsEnabled, GLenum cap)
|
||||
GL_ENTRY(GLboolean, glIsFramebuffer, GLuint framebuffer)
|
||||
GL_ENTRY(GLboolean, glIsProgram, GLuint program)
|
||||
GL_ENTRY(GLboolean, glIsRenderbuffer, GLuint renderbuffer)
|
||||
GL_ENTRY(GLboolean, glIsShader, GLuint shader)
|
||||
GL_ENTRY(GLboolean, glIsTexture, GLuint texture)
|
||||
GL_ENTRY(void, glLineWidth, GLfloat width)
|
||||
GL_ENTRY(void, glLinkProgram, GLuint program)
|
||||
GL_ENTRY(void, glPixelStorei, GLenum pname, GLint param)
|
||||
GL_ENTRY(void, glPolygonOffset, GLfloat factor, GLfloat units)
|
||||
GL_ENTRY(void, glReadPixels, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels)
|
||||
GL_ENTRY(void, glReleaseShaderCompiler, void)
|
||||
GL_ENTRY(void, glRenderbufferStorage, GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
|
||||
GL_ENTRY(void, glSampleCoverage, GLclampf value, GLboolean invert)
|
||||
GL_ENTRY(void, glScissor, GLint x, GLint y, GLsizei width, GLsizei height)
|
||||
GL_ENTRY(void, glShaderBinary, GLsizei n, const GLuint* shaders, GLenum binaryformat, const GLvoid* binary, GLsizei length)
|
||||
GL_ENTRY(void, glShaderSource, GLuint shader, GLsizei count, const GLchar*const* string, const GLint* length)
|
||||
GL_ENTRY(void, glStencilFunc, GLenum func, GLint ref, GLuint mask)
|
||||
GL_ENTRY(void, glStencilFuncSeparate, GLenum face, GLenum func, GLint ref, GLuint mask)
|
||||
GL_ENTRY(void, glStencilMask, GLuint mask)
|
||||
GL_ENTRY(void, glStencilMaskSeparate, GLenum face, GLuint mask)
|
||||
GL_ENTRY(void, glStencilOp, GLenum fail, GLenum zfail, GLenum zpass)
|
||||
GL_ENTRY(void, glStencilOpSeparate, GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
|
||||
GL_ENTRY(void, glTexImage2D, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels)
|
||||
GL_ENTRY(void, glTexParameterf, GLenum target, GLenum pname, GLfloat param)
|
||||
GL_ENTRY(void, glTexParameterfv, GLenum target, GLenum pname, const GLfloat* params)
|
||||
GL_ENTRY(void, glTexParameteri, GLenum target, GLenum pname, GLint param)
|
||||
GL_ENTRY(void, glTexParameteriv, GLenum target, GLenum pname, const GLint* params)
|
||||
GL_ENTRY(void, glTexSubImage2D, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels)
|
||||
GL_ENTRY(void, glUniform1f, GLint location, GLfloat x)
|
||||
GL_ENTRY(void, glUniform1fv, GLint location, GLsizei count, const GLfloat* v)
|
||||
GL_ENTRY(void, glUniform1i, GLint location, GLint x)
|
||||
GL_ENTRY(void, glUniform1iv, GLint location, GLsizei count, const GLint* v)
|
||||
GL_ENTRY(void, glUniform2f, GLint location, GLfloat x, GLfloat y)
|
||||
GL_ENTRY(void, glUniform2fv, GLint location, GLsizei count, const GLfloat* v)
|
||||
GL_ENTRY(void, glUniform2i, GLint location, GLint x, GLint y)
|
||||
GL_ENTRY(void, glUniform2iv, GLint location, GLsizei count, const GLint* v)
|
||||
GL_ENTRY(void, glUniform3f, GLint location, GLfloat x, GLfloat y, GLfloat z)
|
||||
GL_ENTRY(void, glUniform3fv, GLint location, GLsizei count, const GLfloat* v)
|
||||
GL_ENTRY(void, glUniform3i, GLint location, GLint x, GLint y, GLint z)
|
||||
GL_ENTRY(void, glUniform3iv, GLint location, GLsizei count, const GLint* v)
|
||||
GL_ENTRY(void, glUniform4f, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
|
||||
GL_ENTRY(void, glUniform4fv, GLint location, GLsizei count, const GLfloat* v)
|
||||
GL_ENTRY(void, glUniform4i, GLint location, GLint x, GLint y, GLint z, GLint w)
|
||||
GL_ENTRY(void, glUniform4iv, GLint location, GLsizei count, const GLint* v)
|
||||
GL_ENTRY(void, glUniformMatrix2fv, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
|
||||
GL_ENTRY(void, glUniformMatrix3fv, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
|
||||
GL_ENTRY(void, glUniformMatrix4fv, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
|
||||
GL_ENTRY(void, glUseProgram, GLuint program)
|
||||
GL_ENTRY(void, glValidateProgram, GLuint program)
|
||||
GL_ENTRY(void, glVertexAttrib1f, GLuint indx, GLfloat x)
|
||||
GL_ENTRY(void, glVertexAttrib1fv, GLuint indx, const GLfloat* values)
|
||||
GL_ENTRY(void, glVertexAttrib2f, GLuint indx, GLfloat x, GLfloat y)
|
||||
GL_ENTRY(void, glVertexAttrib2fv, GLuint indx, const GLfloat* values)
|
||||
GL_ENTRY(void, glVertexAttrib3f, GLuint indx, GLfloat x, GLfloat y, GLfloat z)
|
||||
GL_ENTRY(void, glVertexAttrib3fv, GLuint indx, const GLfloat* values)
|
||||
GL_ENTRY(void, glVertexAttrib4f, GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
|
||||
GL_ENTRY(void, glVertexAttrib4fv, GLuint indx, const GLfloat* values)
|
||||
GL_ENTRY(void, glVertexAttribPointer, GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr)
|
||||
GL_ENTRY(void, glViewport, GLint x, GLint y, GLsizei width, GLsizei height)
|
||||
GL_ENTRY(void, glEGLImageTargetTexture2DOES, GLenum target, GLeglImageOES image)
|
||||
GL_ENTRY(void, glEGLImageTargetRenderbufferStorageOES, GLenum target, GLeglImageOES image)
|
||||
GL_ENTRY(void, glGetProgramBinaryOES, GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary)
|
||||
GL_ENTRY(void, glProgramBinaryOES, GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length)
|
||||
GL_ENTRY(void*, glMapBufferOES, GLenum target, GLenum access)
|
||||
GL_ENTRY(GLboolean, glUnmapBufferOES, GLenum target)
|
||||
#GL_ENTRY(void, glGetBufferPointervOES, GLenum target, GLenum pname, GLvoid** params)
|
||||
GL_ENTRY(void, glTexImage3DOES, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels)
|
||||
GL_ENTRY(void, glTexSubImage3DOES, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid* pixels)
|
||||
GL_ENTRY(void, glCopyTexSubImage3DOES, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
|
||||
GL_ENTRY(void, glCompressedTexImage3DOES, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data)
|
||||
GL_ENTRY(void, glCompressedTexSubImage3DOES, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data)
|
||||
GL_ENTRY(void, glFramebufferTexture3DOES, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset)
|
||||
GL_ENTRY(void, glBindVertexArrayOES, GLuint array)
|
||||
GL_ENTRY(void, glDeleteVertexArraysOES, GLsizei n, const GLuint *arrays)
|
||||
GL_ENTRY(void, glGenVertexArraysOES, GLsizei n, GLuint *arrays)
|
||||
GL_ENTRY(GLboolean, glIsVertexArrayOES, GLuint array)
|
||||
GL_ENTRY(void, glDiscardFramebufferEXT, GLenum target, GLsizei numAttachments, const GLenum *attachments)
|
||||
GL_ENTRY(void, glMultiDrawArraysEXT, GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount)
|
||||
GL_ENTRY(void, glMultiDrawElementsEXT, GLenum mode, const GLsizei *count, GLenum type, const GLvoid*const* indices, GLsizei primcount)
|
||||
|
||||
#not supported
|
||||
GL_ENTRY(void, glGetPerfMonitorGroupsAMD, GLint *numGroups, GLsizei groupsSize, GLuint *groups)
|
||||
GL_ENTRY(void, glGetPerfMonitorCountersAMD, GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters)
|
||||
GL_ENTRY(void, glGetPerfMonitorGroupStringAMD, GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString)
|
||||
GL_ENTRY(void, glGetPerfMonitorCounterStringAMD, GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString)
|
||||
GL_ENTRY(void, glGetPerfMonitorCounterInfoAMD, GLuint group, GLuint counter, GLenum pname, GLvoid *data)
|
||||
GL_ENTRY(void, glGenPerfMonitorsAMD, GLsizei n, GLuint *monitors)
|
||||
GL_ENTRY(void, glDeletePerfMonitorsAMD, GLsizei n, GLuint *monitors)
|
||||
GL_ENTRY(void, glSelectPerfMonitorCountersAMD, GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList)
|
||||
GL_ENTRY(void, glBeginPerfMonitorAMD, GLuint monitor)
|
||||
GL_ENTRY(void, glEndPerfMonitorAMD, GLuint monitor)
|
||||
GL_ENTRY(void, glGetPerfMonitorCounterDataAMD, GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten)
|
||||
|
||||
GL_ENTRY(void, glRenderbufferStorageMultisampleIMG, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)
|
||||
GL_ENTRY(void, glFramebufferTexture2DMultisampleIMG, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples)
|
||||
GL_ENTRY(void, glDeleteFencesNV, GLsizei n, const GLuint *fences)
|
||||
GL_ENTRY(void, glGenFencesNV, GLsizei n, GLuint *fences)
|
||||
GL_ENTRY(GLboolean, glIsFenceNV, GLuint fence)
|
||||
GL_ENTRY(GLboolean, glTestFenceNV, GLuint fence)
|
||||
GL_ENTRY(void, glGetFenceivNV, GLuint fence, GLenum pname, GLint *params)
|
||||
GL_ENTRY(void, glFinishFenceNV, GLuint fence)
|
||||
GL_ENTRY(void, glSetFenceNV, GLuint fence, GLenum condition)
|
||||
GL_ENTRY(void, glCoverageMaskNV, GLboolean mask)
|
||||
GL_ENTRY(void, glCoverageOperationNV, GLenum operation)
|
||||
GL_ENTRY(void, glGetDriverControlsQCOM, GLint *num, GLsizei size, GLuint *driverControls)
|
||||
GL_ENTRY(void, glGetDriverControlStringQCOM, GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString)
|
||||
GL_ENTRY(void, glEnableDriverControlQCOM, GLuint driverControl)
|
||||
GL_ENTRY(void, glDisableDriverControlQCOM, GLuint driverControl)
|
||||
GL_ENTRY(void, glExtGetTexturesQCOM, GLuint *textures, GLint maxTextures, GLint *numTextures)
|
||||
GL_ENTRY(void, glExtGetBuffersQCOM, GLuint *buffers, GLint maxBuffers, GLint *numBuffers)
|
||||
GL_ENTRY(void, glExtGetRenderbuffersQCOM, GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers)
|
||||
GL_ENTRY(void, glExtGetFramebuffersQCOM, GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers)
|
||||
GL_ENTRY(void, glExtGetTexLevelParameterivQCOM, GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params)
|
||||
GL_ENTRY(void, glExtTexObjectStateOverrideiQCOM, GLenum target, GLenum pname, GLint param)
|
||||
GL_ENTRY(void, glExtGetTexSubImageQCOM, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid *texels)
|
||||
GL_ENTRY(void, glExtGetBufferPointervQCOM, GLenum target, GLvoidptr *params)
|
||||
GL_ENTRY(void, glExtGetShadersQCOM, GLuint *shaders, GLint maxShaders, GLint *numShaders)
|
||||
GL_ENTRY(void, glExtGetProgramsQCOM, GLuint *programs, GLint maxPrograms, GLint *numPrograms)
|
||||
GL_ENTRY(GLboolean, glExtIsProgramBinaryQCOM, GLuint program)
|
||||
GL_ENTRY(void, glExtGetProgramBinarySourceQCOM, GLuint program, GLenum shadertype, GLchar *source, GLint *length)
|
||||
GL_ENTRY(void, glStartTilingQCOM, GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask)
|
||||
GL_ENTRY(void, glEndTilingQCOM, GLbitfield preserveMask)
|
||||
|
||||
# add-ons
|
||||
GL_ENTRY(void, glVertexAttribPointerData, GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, void * data, GLuint datalen)
|
||||
GL_ENTRY(void, glVertexAttribPointerOffset, GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint offset)
|
||||
GL_ENTRY(void, glDrawElementsOffset, GLenum mode, GLsizei count, GLenum type, GLuint offset)
|
||||
GL_ENTRY(void, glDrawElementsData, GLenum mode, GLsizei count, GLenum type, void *data, GLuint datalen)
|
||||
GL_ENTRY(void, glGetCompressedTextureFormats, int count, GLint *formats)
|
||||
GL_ENTRY(void, glShaderString, GLuint shader, const GLchar* string, GLsizei len)
|
||||
GL_ENTRY(int, glFinishRoundTrip, void)
|
||||
38
external/android-emugl/host/libs/GLESv2_dec/gles2.types
vendored
Normal file
38
external/android-emugl/host/libs/GLESv2_dec/gles2.types
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
GLbitfield 32 0x%08x
|
||||
GLboolean 8 %d
|
||||
GLclampf 32 %f
|
||||
GLclampx 32 0x%08x
|
||||
GLeglImageOES 32 %p
|
||||
GLenum 32 0x%08x
|
||||
GLfixed 32 0x%08x
|
||||
GLfloat 32 %f
|
||||
GLint 32 %d
|
||||
GLintptr 32 %p
|
||||
GLshort 16 %d
|
||||
GLsizei 32 %d
|
||||
GLsizeiptr 32 %p
|
||||
GLubyte 8 0x%02x
|
||||
GLuint 32 %u
|
||||
GLvoid 0 %x
|
||||
GLchar 8 %d
|
||||
GLenum* 32 0x%08x
|
||||
GLboolean* 32 0x%08x
|
||||
GLclampf* 32 0x%08x
|
||||
GLclampx* 32 0x%08x
|
||||
GLeglImageOES* 32 0x%08x
|
||||
GLfixed* 32 0x%08x
|
||||
GLfloat* 32 0x%08x
|
||||
GLint* 32 0x%08x
|
||||
GLshort* 32 0x%08x
|
||||
GLsizei* 32 0x%08x
|
||||
GLubyte* 32 0x%08x
|
||||
GLuint* 32 0x%08x
|
||||
GLvoid* 32 0x%08x
|
||||
GLchar* 32 0x%08x
|
||||
GLchar** 32 0x%08x
|
||||
GLvoid** 32 0x%08x
|
||||
void* 32 0x%08x
|
||||
GLstr* 32 0x%08x
|
||||
GLvoidptr* 32 0x%08x
|
||||
GLchar*const* 32 0x%08x
|
||||
GLvoid*const* 32 0x%08x
|
||||
21
external/android-emugl/host/libs/GLESv2_dec/gles2_types.h
vendored
Normal file
21
external/android-emugl/host/libs/GLESv2_dec/gles2_types.h
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
#ifndef _GL_2_TYPES_H_
|
||||
#define _GL_2_TYPES_H_
|
||||
#include "gl_base_types.h"
|
||||
|
||||
typedef void *GLvoidptr;
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue