Searched refs:gl (Results 1 - 25 of 35) sorted by relevance

12

/packages/apps/Camera/src/com/android/camera/ui/
H A DRawTexture.java25 private RawTexture(GL11 gl, int id) { argument
26 super(gl, id, STATE_LOADED);
33 public static RawTexture newInstance(GL11 gl) { argument
35 gl.glGenTextures(1, textureId, 0);
36 int glError = gl.glGetError();
40 return new RawTexture(gl, textureId[0]);
54 protected boolean bind(GLRootView glRootView, GL11 gl) { argument
55 if (mGL == gl) {
56 gl.glBindTexture(GL11.GL_TEXTURE_2D, getId());
H A DFrameTexture.java28 public FrameTexture(GL11 gl, int id, int state) { argument
29 super(gl, id, state);
H A DTexture.java49 protected Texture(GL11 gl, int id, int state) { argument
50 mGL = gl;
92 private void uploadToGL(GL11 gl) throws GLOutOfMemoryException { argument
103 gl.glGenTextures(1, textureId, 0);
104 gl.glBindTexture(GL11.GL_TEXTURE_2D, textureId[0]);
105 gl.glTexParameteriv(GL11.GL_TEXTURE_2D,
107 gl.glTexParameteri(GL11.GL_TEXTURE_2D,
109 gl.glTexParameteri(GL11.GL_TEXTURE_2D,
111 gl.glTexParameterf(GL11.GL_TEXTURE_2D,
113 gl
147 bind(GLRootView root, GL11 gl) argument
[all...]
H A DPopupWindowStencilImpl.java26 protected void renderBackground(GLRootView rootView, GL11 gl) { argument
38 gl.glStencilOp(GL11.GL_KEEP, GL11.GL_KEEP, GL11.GL_REPLACE);
39 gl.glStencilFunc(GL11.GL_ALWAYS, 1, 1);
41 gl.glStencilFunc(GL11.GL_NOTEQUAL, 1, 1);
42 gl.glStencilOp(GL11.GL_KEEP, GL11.GL_KEEP, GL11.GL_KEEP);
H A DGLRootView.java243 GL11 gl = (GL11) gl1;
246 Log.i(TAG, "GLObject has changed from " + mGL + " to " + gl);
248 mGL = gl;
261 gl.glDisable(GL11.GL_LIGHTING);
264 gl.glEnable(GL11.GL_BLEND);
265 gl.glEnable(GL11.GL_SCISSOR_TEST);
266 gl.glEnable(GL11.GL_STENCIL_TEST);
267 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
268 gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
269 gl
426 onDrawFrame(GL10 gl) argument
[all...]
H A DRotatePane.java70 protected void render(GLRootView view, GL11 gl) { argument
73 mChild.render(view, gl);
92 mChild.render(view, gl);
H A DNinePatchTexture.java52 protected boolean bind(GLRootView root, GL11 gl) { argument
59 return mDelegate.bind(root, gl);
H A DPopupWindow.java106 protected void renderBackground(GLRootView root, GL11 gl) { argument
121 if (mBackupTexture == null || mBackupTexture.getBoundGL() != gl) {
122 mBackupTexture = RawTexture.newInstance(gl);
140 gl.glBlendFunc(GL11.GL_ONE, GL11.GL_ZERO);
142 gl.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE_MINUS_SRC_ALPHA);
H A DGLView.java191 protected void render(GLRootView view, GL11 gl) { argument
192 renderBackground(view, gl);
197 renderChild(view, gl, component);
201 protected void renderBackground(GLRootView view, GL11 gl) { argument
204 protected void renderChild(GLRootView root, GL11 gl, GLView component) { argument
224 component.render(root, gl);
H A DGLOptionHeader.java70 protected void render(GLRootView root, GL11 gl) { argument
H A DRestoreSettingsItem.java67 protected void render(GLRootView root, GL11 gl) { argument
H A DZoomController.java215 protected void render(GLRootView root, GL11 gl) { argument
216 renderTicks(root, gl);
217 renderSlider(root, gl);
220 private void renderTicks(GLRootView root, GL11 gl) { argument
259 private void renderSlider(GLRootView root, GL11 gl) { argument
H A DAbstractIndicator.java47 protected void render(GLRootView root, GL11 gl) { argument
/packages/apps/Gallery3D/src/com/cooliris/media/
H A DRenderView.java106 public TextureReference(Texture texture, GL11 gl, ReferenceQueue referenceQueue, int textureId) { argument
109 this.gl = gl;
113 public final GL11 gl; field in class:RenderView.TextureReference
294 GL11 gl = mGL;
295 gl.glTexEnvf(GL11.GL_TEXTURE_ENV, GL11.GL_TEXTURE_ENV_MODE, GL11.GL_MODULATE);
296 gl.glColor4f(alpha, alpha, alpha, alpha);
305 GL11 gl = mGL;
306 gl.glTexEnvf(GL11.GL_TEXTURE_ENV, GL11.GL_TEXTURE_ENV_MODE, GL11.GL_MODULATE);
307 gl
[all...]
H A DCanvasTexture.java83 public boolean bind(GL11 gl) { argument
84 if (mCachedGL != gl) {
85 mCachedGL = gl;
111 gl.glGenTextures(1, textureIdOut, 0);
117 gl.glBindTexture(GL11.GL_TEXTURE_2D, textureId);
118 gl.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, GL11.GL_CLAMP_TO_EDGE);
119 gl.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, GL11.GL_CLAMP_TO_EDGE);
120 gl.glTexParameterf(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR);
121 gl.glTexParameterf(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR);
147 gl
162 draw(RenderView view, GL11 gl, int x, int y) argument
168 drawWithEffect(RenderView view, GL11 gl, float x, float y, float anchorX, float anchorY, float alpha, float scale) argument
[all...]
H A DGridDrawables.java126 public void onSurfaceCreated(RenderView view, GL11 gl) { argument
128 sGrid.freeHardwareBuffers(gl);
129 sGrid.generateHardwareBuffers(gl);
132 sFullscreenGrid[0].freeHardwareBuffers(gl);
133 sFullscreenGrid[1].freeHardwareBuffers(gl);
134 sFullscreenGrid[2].freeHardwareBuffers(gl);
135 sFullscreenGrid[0].generateHardwareBuffers(gl);
136 sFullscreenGrid[1].generateHardwareBuffers(gl);
137 sFullscreenGrid[2].generateHardwareBuffers(gl);
140 sSelectedGrid.freeHardwareBuffers(gl);
[all...]
H A DBackgroundLayer.java98 public void renderOpaque(RenderView view, GL11 gl) { argument
99 gl.glClear(GL11.GL_COLOR_BUFFER_BIT);
107 public void renderBlended(RenderView view, GL11 gl) { argument
111 gl.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
112 gl.glTexEnvf(GL11.GL_TEXTURE_ENV, GL11.GL_TEXTURE_ENV_MODE, GL11.GL_MODULATE);
113 boolean bind = anchorTexture.bind(view, gl);
138 anchorTexture.unbind(view, gl);
141 gl.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE_MINUS_SRC_ALPHA);
142 gl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
H A DLoadingLayer.java181 public void renderBlended(RenderView view, GL11 gl) { argument
213 gl.glTexEnvf(GL11.GL_TEXTURE_ENV, GL11.GL_TEXTURE_ENV_MODE, GL11.GL_MODULATE);
214 gl.glColor4f(gray, gray, gray, alpha);
215 gl.glVertexPointer(3, GL11.GL_FIXED, 0, mVertexBuffer);
216 gl.glDisable(GL11.GL_TEXTURE_2D);
217 gl.glDisable(GL11.GL_DEPTH_TEST);
218 gl.glDrawArrays(GL11.GL_TRIANGLE_STRIP, 0, 4);
219 gl.glEnable(GL11.GL_DEPTH_TEST);
220 gl.glEnable(GL11.GL_TEXTURE_2D);
H A DGridDrawManager.java126 public void drawThumbnails(RenderView view, GL11 gl, int state) { argument
141 grid.bindArrays(gl);
271 drawDisplayItem(view, gl, displayItem, texture, PASS_THUMBNAIL_CONTENT, placeholder,
287 grid.unbindArrays(gl);
298 public void drawFocusItems(RenderView view, GL11 gl, float zoomValue, boolean slideshowMode, float timeElapsedSinceView) { argument
333 gl.glEnable(GL11.GL_BLEND);
334 gl.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
437 quad.bindArrays(gl);
438 drawDisplayItem(view, gl, displayItem, texture, PASS_FOCUS_CONTENT, null, 0.0f);
439 quad.unbindArrays(gl);
478 drawBlendedComponents(RenderView view, GL11 gl, float alpha, int state, int hudMode, float stackMixRatio, float gridMixRatio, MediaBucketList selectedBucketList, MediaBucketList markedBucketList, boolean isFeedLoading) argument
702 drawDisplayItem(RenderView view, GL11 gl, DisplayItem displayItem, Texture texture, int pass, Texture previousTexture, float mixRatio) argument
[all...]
H A DLayer.java77 public void renderOpaque(RenderView view, GL11 gl) { argument
80 public void renderBlended(RenderView view, GL11 gl) { argument
93 protected void onSurfaceCreated(RenderView view, GL11 gl) { argument
H A DGridQuadMesh.java119 public void draw(GL10 gl, boolean useTexture) { argument
121 gl.glVertexPointer(3, GL11.GL_FLOAT, 0, mVertexBuffer);
124 gl.glTexCoordPointer(2, GL11.GL_FLOAT, 0, mTexCoordBuffer);
127 gl.glDrawElements(GL11.GL_TRIANGLES, mIndexCount, GL11.GL_UNSIGNED_SHORT, mIndexBuffer);
129 GL11 gl11 = (GL11) gl;
164 public void freeHardwareBuffers(GL10 gl) { argument
166 if (gl instanceof GL11) {
167 GL11 gl11 = (GL11) gl;
189 * @param gl
192 public void generateHardwareBuffers(GL10 gl) { argument
[all...]
H A DRootLayer.java27 public void onSurfaceCreated(RenderView renderView, GL11 gl) { argument
H A DGridQuadFrame.java163 public void bindArrays(GL10 gl) { argument
164 GL11 gl11 = (GL11) gl;
183 public void unbindArrays(GL10 gl) { argument
184 GL11 gl11 = (GL11) gl;
208 public void freeHardwareBuffers(GL10 gl) { argument
210 if (gl instanceof GL11) {
211 GL11 gl11 = (GL11) gl;
235 * @param gl
238 public void generateHardwareBuffers(GL10 gl) { argument
240 if (gl instanceo
[all...]
H A DGridQuad.java261 public void bindArrays(GL10 gl) { argument
262 GL11 gl11 = (GL11) gl;
298 public void unbindArrays(GL10 gl) { argument
299 GL11 gl11 = (GL11) gl;
322 public void freeHardwareBuffers(GL10 gl) { argument
324 if (gl instanceof GL11) {
325 GL11 gl11 = (GL11) gl;
347 * @param gl
351 public void generateHardwareBuffers(GL10 gl) { argument
353 if (gl instanceo
[all...]
H A DCrossFadingTexture.java101 public boolean bind(RenderView view, GL11 gl) { argument
145 public void unbind(RenderView view, GL11 gl) { argument

Completed in 154 milliseconds

12