/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/ |
CubeRenderer.java | 44 public void onDrawFrame(GL10 gl) { 51 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 57 gl.glMatrixMode(GL10.GL_MODELVIEW); 58 gl.glLoadIdentity(); 59 gl.glTranslatef(0, 0, -3.0f); 60 gl.glRotatef(mAngle, 0, 1, 0); 61 gl.glRotatef(mAngle*0.25f, 1, 0, 0); 63 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 64 gl.glEnableClientState(GL10.GL_COLOR_ARRAY); 66 gl.glScalef(mScale, mScale, mScale) [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...] |
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
TriangleRenderer.java | 37 public void onSurfaceCreated(GL10 gl, EGLConfig config) { 43 gl.glDisable(GL10.GL_DITHER); 49 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, 52 gl.glClearColor(.5f, .5f, .5f, 1); 53 gl.glShadeModel(GL10.GL_SMOOTH); 56 public void onDrawFrame(GL10 gl) { 62 gl.glDisable(GL10.GL_DITHER); 70 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 76 gl.glMatrixMode(GL10.GL_MODELVIEW); 77 gl.glLoadIdentity() [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/renderers/ |
GLArrowSensorTestRenderer.java | 74 public void onDrawFrame(GL10 gl) { 76 gl.glTexEnvx(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_MODULATE); 77 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 78 gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); 79 gl.glActiveTexture(GL10.GL_TEXTURE0); 80 gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID); 81 gl.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT); 82 gl.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_REPEAT); 85 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 86 gl.glMatrixMode(GL10.GL_MODELVIEW) [all...] |
/frameworks/native/opengl/tests/lighting1709/src/com/android/lightingtest/ |
ClearActivity.java | 70 public void onSurfaceCreated(GL10 gl, EGLConfig config) { 74 public void onSurfaceChanged(GL10 gl, int w, int h) { 76 gl.glMatrixMode(GL10.GL_PROJECTION); 77 gl.glLoadIdentity(); 86 gl.glFrustumf(fl, fr, fb, ft, 1.0f, 2000.0f); 89 gl.glMatrixMode(GL10.GL_MODELVIEW); 90 gl.glLoadIdentity(); 91 gl.glViewport(0, 0, w, h); 94 public void onDrawFrame(GL10 gl) { 95 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT) [all...] |
/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/ |
Square.java | 71 * @param gl - The OpenGL ES context in which to draw this shape. 73 public void draw(GL10 gl) { 75 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 78 gl.glColor4f( // set color 81 gl.glVertexPointer( // point to vertex data: 84 gl.glDrawElements( // draw shape: 91 gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
|
MyGLRenderer.java | 40 public void onSurfaceCreated(GL10 gl, EGLConfig config) { 42 gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); 49 public void onDrawFrame(GL10 gl) { 52 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 55 gl.glMatrixMode(GL10.GL_MODELVIEW); 56 gl.glLoadIdentity(); // reset the matrix to its default state 59 GLU.gluLookAt(gl, 0, 0, -3, 0f, 0f, 0f, 0f, 1.0f, 0.0f); 62 mSquare.draw(gl); 71 gl.glRotatef(mAngle, 0.0f, 0.0f, 1.0f); 74 mTriangle.draw(gl); [all...] |
/external/chromium_org/mojo/apps/js/bindings/gl/ |
module.cc | 5 #include "mojo/apps/js/bindings/gl/module.h" 12 #include "mojo/apps/js/bindings/gl/context.h" 17 namespace gl { namespace in namespace:mojo::js 19 const char* kModuleName = "mojo/apps/js/bindings/gl"; 48 } // namespace gl
|
/external/chromium_org/third_party/angle/src/libGLESv2/ |
HandleAllocator.cpp | 8 // HandleAllocator.cpp: Implements the gl::HandleAllocator class, which is used 9 // to allocate GL handles. 15 namespace gl namespace
|
ProgramBinary.cpp | 8 // Program.cpp: Implements the gl::Program class. Implements GL program objects 32 namespace gl namespace 54 void GetInputLayoutFromShader(const std::vector<gl::Attribute> &shaderAttributes, VertexFormat inputLayout[MAX_VERTEX_ATTRIBS]) 61 const gl::Attribute &shaderAttr = shaderAttributes[attributeIndex]; 93 for (size_t attributeIndex = 0; attributeIndex < gl::MAX_VERTEX_ATTRIBS; attributeIndex++) 937 bool ProgramBinary::applyUniformBuffers(const std::vector<gl::Buffer*> boundBuffers) 939 const gl::Buffer *vertexUniformBuffers[gl::IMPLEMENTATION_MAX_VERTEX_SHADER_UNIFORM_BUFFERS] = {NULL}; 940 const gl::Buffer *fragmentUniformBuffers[gl::IMPLEMENTATION_MAX_FRAGMENT_SHADER_UNIFORM_BUFFERS] = {NULL} [all...] |
Query.cpp | 8 // Query.cpp: Implements the gl::Query class 14 namespace gl namespace
|
RenderbufferProxySet.cpp | 8 // RenderbufferProxySet.cpp: Implements the gl::RenderbufferProxySet, a class for 14 namespace gl namespace
|
RenderbufferProxySet.h | 7 // RenderbufferProxySet.h: Defines the gl::RenderbufferProxySet, a class for 15 namespace gl namespace
|
VertexArray.h | 8 // The buffer objects that are to be used by the vertex stage of the GL are collected 25 namespace gl namespace 39 void setAttributeState(unsigned int attributeIndex, gl::Buffer *boundBuffer, GLint size, GLenum type,
|
formatutils.h | 7 // formatutils.h: Queries for GL image formats. 42 namespace gl namespace
|
main.h | 20 namespace gl namespace 56 gl::Context *glCreateContext(int clientVersion, const gl::Context *shareContext, rx::Renderer *renderer, bool notifyResets, bool robustAccess); 57 void glDestroyContext(gl::Context *context); 58 void glMakeCurrent(gl::Context *context, egl::Display *display, egl::Surface *surface); 59 gl::Context *glGetCurrentContext();
|
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d/ |
HLSLCompiler.h | 8 namespace gl namespace 28 ShaderBlob *compileToBinary(gl::InfoLog &infoLog, const char *hlsl, const char *profile,
|
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d11/ |
Image11.h | 17 namespace gl namespace 55 virtual void copy(GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height, gl::Framebuffer *source);
|
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d9/ |
Image9.h | 16 namespace gl namespace 59 virtual void copy(GLint xoffset, GLint yoffset, GLint zoffset,GLint x, GLint y, GLsizei width, GLsizei height, gl::Framebuffer *source);
|
/external/chromium_org/third_party/skia/src/gpu/gl/ |
GrGLStencilBuffer.cpp | 27 const GrGLInterface* gl = gpuGL->glInterface(); local 28 GR_GL_CALL(gl, DeleteRenderbuffers(1, &fRenderbufferID));
|
/external/skia/src/gpu/gl/ |
GrGLStencilBuffer.cpp | 27 const GrGLInterface* gl = gpuGL->glInterface(); local 28 GR_GL_CALL(gl, DeleteRenderbuffers(1, &fRenderbufferID));
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_gl.py | 2 """Very simple test script for the SGI gl library extension module 9 gl = import_module('gl') variable 10 GL = import_module('GL') 93 raise unittest.SkipTest, "No $DISPLAY -- skipping gl test" 95 # touch all the attributes of gl without doing anything 97 print 'Touching gl module attributes...' 101 getattr(gl, attr) 107 gl.foreground( [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_gl.py | 2 """Very simple test script for the SGI gl library extension module 9 gl = import_module('gl') variable 10 GL = import_module('GL') 93 raise unittest.SkipTest, "No $DISPLAY -- skipping gl test" 95 # touch all the attributes of gl without doing anything 97 print 'Touching gl module attributes...' 101 getattr(gl, attr) 107 gl.foreground( [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
GLES11IdImpl.java | 22 * Open GL ES 1.1 implementation for generating and destroying texture IDs and 47 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) { 49 gl.glDeleteTextures(n, textures, offset); 54 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { 56 gl.glDeleteBuffers(n, buffers, offset);
|
/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...] |