/external/deqp/modules/egl/ |
teglSwapBuffersTests.cpp | 119 deUint32 createGLES2Program (const glw::Functions& gl, TestLog& log) 147 program = gl.createProgram(); 148 vertexShader = gl.createShader(GL_VERTEX_SHADER); 149 fragmentShader = gl.createShader(GL_FRAGMENT_SHADER); 151 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to create shaders and program"); 153 gl.shaderSource(vertexShader, 1, &vertexShaderSource, DE_NULL); 154 gl.compileShader(vertexShader); 155 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to setup vertex shader"); 157 gl.shaderSource(fragmentShader, 1, &fragmentShaderSource, DE_NULL); 158 gl.compileShader(fragmentShader) 292 glw::Functions gl; local [all...] |
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d/d3d9/ |
Renderer9.h | 20 namespace gl namespace 63 virtual void generateSwizzle(gl::Texture *texture); 64 virtual void setSamplerState(gl::SamplerType type, int index, const gl::SamplerState &sampler); 65 virtual void setTexture(gl::SamplerType type, int index, gl::Texture *texture); 67 virtual bool setUniformBuffers(const gl::Buffer *vertexUniformBuffers[], const gl::Buffer *fragmentUniformBuffers[]); 69 virtual void setRasterizerState(const gl::RasterizerState &rasterState); 70 virtual void setBlendState(gl::Framebuffer *framebuffer, const gl::BlendState &blendState, const gl::ColorF &blendColor [all...] |
IndexBuffer9.cpp | 28 gl::Error IndexBuffer9::initialize(unsigned int bufferSize, GLenum indexType, bool dynamic) 57 return gl::Error(GL_OUT_OF_MEMORY, "Failed to allocate internal index buffer of size, %lu.", bufferSize); 65 return gl::Error(GL_NO_ERROR); 74 gl::Error IndexBuffer9::mapBuffer(unsigned int offset, unsigned int size, void** outMappedMemory) 78 return gl::Error(GL_OUT_OF_MEMORY, "Internal index buffer is not initialized."); 87 return gl::Error(GL_OUT_OF_MEMORY, "Failed to lock internal index buffer, HRESULT: 0x%08x.", result); 91 return gl::Error(GL_NO_ERROR); 94 gl::Error IndexBuffer9::unmapBuffer() 98 return gl::Error(GL_OUT_OF_MEMORY, "Internal index buffer is not initialized."); 104 return gl::Error(GL_OUT_OF_MEMORY, "Failed to unlock internal index buffer, HRESULT: 0x%08x.", result) [all...] |
Query9.cpp | 32 gl::Error Query9::begin() 39 return gl::Error(GL_OUT_OF_MEMORY, "Internal query creation failed, result: 0x%X.", result); 47 return gl::Error(GL_OUT_OF_MEMORY, "Failed to begin internal query, result: 0x%X.", result); 50 return gl::Error(GL_NO_ERROR); 53 gl::Error Query9::end() 61 return gl::Error(GL_OUT_OF_MEMORY, "Failed to end internal query, result: 0x%X.", result); 67 return gl::Error(GL_NO_ERROR); 70 gl::Error Query9::getResult(GLuint *params) 74 gl::Error error = testQuery(); 89 return gl::Error(GL_NO_ERROR) [all...] |
Buffer9.cpp | 33 gl::Error Buffer9::setData(const void* data, size_t size, GLenum usage) 39 return gl::Error(GL_OUT_OF_MEMORY, "Failed to resize internal buffer."); 56 return gl::Error(GL_NO_ERROR); 64 gl::Error Buffer9::setSubData(const void* data, size_t size, size_t offset) 70 return gl::Error(GL_OUT_OF_MEMORY, "Failed to resize internal buffer."); 82 return gl::Error(GL_NO_ERROR); 85 gl::Error Buffer9::copySubData(BufferImpl* source, GLintptr sourceOffset, GLintptr destOffset, GLsizeiptr size) 95 return gl::Error(GL_NO_ERROR); 99 gl::Error Buffer9::map(size_t offset, size_t length, GLbitfield access, GLvoid **mapPtr) 102 return gl::Error(GL_INVALID_OPERATION) [all...] |
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
TextureTestRenderer.java | 80 public void onDrawFrame(GL10 gl) { 82 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 84 gl.glTexEnvx(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, 88 gl.glMatrixMode(GL10.GL_MODELVIEW); 89 gl.glLoadIdentity(); // reset the matrix to its default state 92 GLU.gluLookAt(gl, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f); 94 gl.glActiveTexture(GL10.GL_TEXTURE0); 95 gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID); 96 gl.glEnable(GL10.GL_TEXTURE_2D); 99 gl.glColor4f(1.0f, 0f, 0f, 1.0f) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
TriangleRenderer.java | 46 public void onSurfaceCreated(GL10 gl, EGLConfig config) { 52 gl.glDisable(GL10.GL_DITHER); 58 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, 61 gl.glClearColor(.5f, .5f, .5f, 1); 62 gl.glShadeModel(GL10.GL_SMOOTH); 63 gl.glEnable(GL10.GL_DEPTH_TEST); 64 gl.glEnable(GL10.GL_TEXTURE_2D); 72 gl.glGenTextures(1, textures, 0); 75 gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID); 77 gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER [all...] |
CubeMapActivity.java | 27 import javax.microedition.khronos.opengles.GL; 57 public void onDrawFrame(GL10 gl) { 58 checkGLError(gl); 60 gl.glClearColor(0,0,1,0); 64 gl.glClearColor(1,0,0,0); 66 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 67 gl.glEnable(GL10.GL_DEPTH_TEST); 68 gl.glMatrixMode(GL10.GL_MODELVIEW); 69 gl.glLoadIdentity(); 71 GLU.gluLookAt(gl, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f) [all...] |
/external/deqp/modules/gles31/functional/ |
es31fFboNoAttachmentTests.cpp | 68 const glw::Functions& gl = renderCtx.getFunctions(); local 97 gl.useProgram(program.getProgram()); 98 gl.enable(GL_DEPTH_TEST); 99 gl.depthFunc(GL_ALWAYS); 100 gl.bindFramebuffer(GL_DRAW_FRAMEBUFFER, framebuffer); 101 gl.viewport(0, 0, size.x()*2, size.y()*2); // Oversized viewport so that it will not accidentally limit us to the correct size 107 TCU_CHECK(gl.checkFramebufferStatus(GL_DRAW_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE); 124 gl.genQueries(1, &query); 125 gl.genVertexArrays(1, &vertexArray); 126 gl.bindVertexArray(vertexArray) 175 const glw::Functions& gl = renderCtx.getFunctions(); local 290 const glw::Functions& gl = m_renderCtx.getFunctions(); local 361 const glw::Functions& gl = m_renderCtx.getFunctions(); local 392 const glw::Functions& gl = m_renderCtx.getFunctions(); local 407 const glw::Functions& gl = m_renderCtx.getFunctions(); local 422 const glw::Functions& gl = m_renderCtx.getFunctions(); local 465 const glw::Functions& gl = m_renderCtx.getFunctions(); local [all...] |
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/ |
imageformats.h | 26 static void readColor(gl::ColorF *dst, const L8 *src) 28 const float lum = gl::normalizedToFloat(src->L); 35 static void writeColor(L8 *dst, const gl::ColorF *src) 37 dst->L = gl::floatToNormalized<unsigned char>((src->red + src->green + src->blue) / 3.0f); 42 dst->L = gl::average(src1->L, src2->L); 50 static void readColor(gl::ColorF *dst, const R8 *src) 52 dst->red = gl::normalizedToFloat(src->R); 58 static void readColor(gl::ColorUI *dst, const R8 *src) 66 static void writeColor(R8 *dst, const gl::ColorF *src) 68 dst->R = gl::floatToNormalized<unsigned char>(src->red) [all...] |
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d/d3d11/ |
IndexBuffer11.cpp | 27 gl::Error IndexBuffer11::initialize(unsigned int bufferSize, GLenum indexType, bool dynamic) 48 return gl::Error(GL_OUT_OF_MEMORY, "Failed to allocate internal index buffer of size, %lu.", bufferSize); 56 return gl::Error(GL_NO_ERROR); 65 gl::Error IndexBuffer11::mapBuffer(unsigned int offset, unsigned int size, void** outMappedMemory) 69 return gl::Error(GL_OUT_OF_MEMORY, "Internal index buffer is not initialized."); 75 return gl::Error(GL_OUT_OF_MEMORY, "Index buffer map range is not inside the buffer."); 84 return gl::Error(GL_OUT_OF_MEMORY, "Failed to map internal index buffer, HRESULT: 0x%08x.", result); 88 return gl::Error(GL_NO_ERROR); 91 gl::Error IndexBuffer11::unmapBuffer() 95 return gl::Error(GL_OUT_OF_MEMORY, "Internal index buffer is not initialized.") [all...] |
Query11.cpp | 33 gl::Error Query11::begin() 44 return gl::Error(GL_OUT_OF_MEMORY, "Internal query creation failed, result: 0x%X.", result); 49 return gl::Error(GL_NO_ERROR); 52 gl::Error Query11::end() 60 return gl::Error(GL_NO_ERROR); 63 gl::Error Query11::getResult(GLuint *params) 67 gl::Error error = testQuery(); 82 return gl::Error(GL_NO_ERROR); 85 gl::Error Query11::isResultAvailable(GLuint *available) 87 gl::Error error = testQuery() [all...] |
/external/clang/utils/VtableTest/ |
gen.cc | 16 void gl(const char *c) { function 135 gl(" {"); 144 g(" "); g(simple_types[t]); g(" field"); g(i); gl(";"); 178 gl("); return 0; }"); 180 gl("); }"); 250 gl("); return 0; }"); 252 gl("); }"); 257 gl("public:"); 258 gl(" void calc(char *t) {"); 261 g(" mix(\"type num\", "); g(s); gl(");"); [all...] |
/external/deqp/modules/gles2/functional/ |
es2fShaderStructTests.cpp | 61 typedef void (*SetupUniformsFunc) (const glw::Functions& gl, deUint32 programID, const tcu::Vec4& constCoords); 1169 #define CHECK_SET_UNIFORM(NAME) GLU_EXPECT_NO_ERROR(gl.getError(), (string("Failed to set ") + NAME).c_str()) 1172 void setUniform (const glw::Functions& gl, deUint32 programID, const char* name, const tcu::VECTYPE& vec) \ 1174 int loc = gl.getUniformLocation(programID, name); \ [all...] |
/external/deqp/modules/gles3/functional/ |
es3fShaderStructTests.cpp | 54 typedef void (*SetupUniformsFunc) (const glw::Functions& gl, deUint32 programID, const tcu::Vec4& constCoords); 1143 #define CHECK_SET_UNIFORM(NAME) GLU_EXPECT_NO_ERROR(gl.getError(), (string("Failed to set ") + NAME).c_str()) 1146 void setUniform (const glw::Functions& gl, deUint32 programID, const char* name, const tcu::VECTYPE& vec) \ 1148 int loc = gl.getUniformLocation(programID, name); \ 1155 void setUniform (const glw::Functions& gl, deUint32 programID, const char* name, const tcu::VECTYPE* vec, int arraySize) \ 1157 int loc = gl.getUniformLocation(programID, name); \ 1163 MAKE_SET_VEC_UNIFORM (Vec2, gl.uniform2fv); 1164 MAKE_SET_VEC_UNIFORM (Vec3, gl.uniform3fv); 1165 MAKE_SET_VEC_UNIFORM_PTR(Vec2, gl.uniform2fv); 1167 void setUniform (const glw::Functions& gl, deUint32 programID, const char* name, float value [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
RotationVectorDemo.java | 115 // is interpreted by Open GL as the inverse of the 122 public void onDrawFrame(GL10 gl) { 124 gl.glClear(GL10.GL_COLOR_BUFFER_BIT); 127 gl.glMatrixMode(GL10.GL_MODELVIEW); 128 gl.glLoadIdentity(); 129 gl.glTranslatef(0, 0, -3.0f); 130 gl.glMultMatrixf(mRotationMatrix, 0); 133 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 134 gl.glEnableClientState(GL10.GL_COLOR_ARRAY); 136 mCube.draw(gl); [all...] |
/external/deqp/framework/opengl/wrapper/ |
glwWrapper.cpp | 45 void setCurrentThreadFunctions (const glw::Functions* gl) 47 s_functions = gl; 70 inline void set (const glw::Functions* gl) 72 deThreadLocal_set(m_ptr, (void*)gl); 89 void setCurrentThreadFunctions (const glw::Functions* gl) 91 s_functions.set(gl);
|
/external/replicaisland/src/com/replica/replicaisland/ |
DrawableBitmap.java | 67 * @param gl A pointer to the OpenGL context. 71 public static void beginDrawing(GL10 gl, float viewWidth, float viewHeight) { 72 gl.glShadeModel(GL10.GL_FLAT); 73 gl.glEnable(GL10.GL_BLEND); 74 gl.glBlendFunc(GL10.GL_ONE, GL10.GL_ONE_MINUS_SRC_ALPHA); 75 gl.glColor4x(0x10000, 0x10000, 0x10000, 0x10000); 77 gl.glMatrixMode(GL10.GL_PROJECTION); 78 gl.glPushMatrix(); 79 gl.glLoadIdentity(); 80 gl.glOrthof(0.0f, viewWidth, 0.0f, viewHeight, 0.0f, 1.0f) 101 GL10 gl = OpenGLSystem.getGL(); local [all...] |
/frameworks/base/opengl/java/android/opengl/ |
GLDebugHelper.java | 22 import javax.microedition.khronos.opengles.GL; 27 * Wraps the supplied GL interface with a new GL interface that adds support for 34 * Wrap an existing GL interface in a new GL interface that adds support for 37 * Wrapping means that the GL instance that is passed in to this method is 38 * wrapped inside a new GL instance that optionally performs additional 39 * operations before and after calling the wrapped GL instance. 42 * glError after each GL operation, 45 * is an alternative to manually calling glError after every GL operation [all...] |
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d/ |
TextureStorage.h | 16 namespace gl namespace 38 virtual RenderTarget *getRenderTarget(const gl::ImageIndex &index) = 0; 41 unsigned int getRenderTargetSerial(const gl::ImageIndex &index) const;
|
/external/chromium_org/cc/resources/ |
scoped_gpu_raster.cc | 25 GLES2Interface* gl = context_provider_->ContextGL(); local 30 gl->PushGroupMarkerEXT(0, "GpuRasterization"); 39 GLES2Interface* gl = context_provider_->ContextGL(); local 49 gl->PopGroupMarkerEXT();
|
/external/chromium_org/mojo/apps/js/bindings/gl/ |
module.h | 13 namespace gl { namespace in namespace:mojo::js 18 } // namespace gl
|
/external/chromium_org/third_party/angle/src/common/ |
event_tracer.cpp | 7 namespace gl namespace 13 } // namespace gl 20 gl::g_getCategoryEnabledFlag = getCategoryEnabledFlag; 21 gl::g_addTraceEvent = addTraceEvent; 26 namespace gl namespace 49 } // namespace gl
|
/external/chromium_org/third_party/angle/src/libGLESv2/ |
queryconversions.h | 9 namespace gl namespace 12 // The GL state query API types are: bool, int, uint, float, int64
|
/external/chromium_org/ui/gl/android/ |
gl_jni_registrar.h | 10 #include "ui/gl/gl_export.h" 13 namespace gl { namespace in namespace:ui 20 } // namespace gl
|