Best code examples for Java 8 GL11 class (javax.microedition.khronos.opengles.GL11)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 GL11 class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Java 8 GL11 examples from Open Source projects
This code example shows how to use the following methods: glClientActiveTexture, glBindBuffer, glTexCoordPointer, glVertexPointer
166:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertBufferIndex); 
167:	gl11.glVertexPointer(3, GL11.GL_FLOAT, 0, 0); 
-
169:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mTextureCoordBufferIndex); 
170:	gl11.glTexCoordPointer(2, GL11.GL_FLOAT, 0, 0); 
171:	gl11.glClientActiveTexture(GL11.GL_TEXTURE1); 
172:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mSecTextureCoordBufferIndex); 
173:	gl11.glTexCoordPointer(2, GL11.GL_FLOAT, 0, 0); 
174:	gl11.glClientActiveTexture(GL11.GL_TEXTURE0); 
175:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBufferIndex); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: glBindBuffer, glDrawElements, glTexCoordPointer, glVertexPointer
210:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertexBufferObjectId); 
211:	gl11.glVertexPointer(3, GL10.GL_FLOAT, VERTEX_SIZE, 0); 
212:	gl11.glTexCoordPointer(2, GL10.GL_FLOAT, VERTEX_SIZE, VERTEX_TEXTURE_BUFFER_INDEX_OFFSET * FLOAT_SIZE); 
-
220:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mElementBufferObjectId); 
221:	gl11.glDrawElements(GL10.GL_TRIANGLES, mIndexCount, GL10.GL_UNSIGNED_SHORT, 0); 
-
225:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); 
226:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: glBindBuffer, glBufferData, glGenBuffers
185:	gl11.glGenBuffers(2, vboIds, 0); 
-
190:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertexBufferObjectId); 
-
192:	gl11.glBufferData(GL11.GL_ARRAY_BUFFER, mVertexByteBuffer.capacity(), mVertexByteBuffer, GL11.GL_STATIC_DRAW); 
-
194:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mElementBufferObjectId); 
-
196:	gl11.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer.capacity() * CHAR_SIZE, mIndexBuffer, GL11.GL_STATIC_DRAW); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: glDrawArrays, glBindBuffer, glColorPointer, glDrawElements, glVertexPointer
354:	gl.glBindBuffer(GL11.GL_ARRAY_BUFFER, vertexVbo); 
355:	gl.glVertexPointer(3, GL10.GL_FLOAT, 0, 0); 
-
357:	gl.glBindBuffer(GL11.GL_ARRAY_BUFFER, colorVbo); 
358:	gl.glColorPointer(4, GL10.GL_UNSIGNED_BYTE, 0, 0); 
-
360:	gl.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); 
-
363:	gl.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, vertexElementVbo); 
364:	gl.glDrawElements(GL10.GL_LINE_STRIP, n * n, GL10.GL_UNSIGNED_SHORT, 0); 
365:	gl.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); 
-
372:	gl.glDrawArrays(GL10.GL_LINE_STRIP, 0, N2); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: glBindTexture, glGenTextures, glTexParameterf, glTexParameteri, glTexParameteriv
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.glBindTexture(GL11.GL_TEXTURE_2D, textureId); 
-
154:	gl.glTexParameteriv(GL11.GL_TEXTURE_2D, GL11Ext.GL_TEXTURE_CROP_RECT_OES, cropRect, 0); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: glClientActiveTexture, glBindBuffer, glTexCoordPointer, glVertexPointer
166:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertBufferIndex); 
167:	gl11.glVertexPointer(3, GL11.GL_FLOAT, 0, 0); 
-
169:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mTextureCoordBufferIndex); 
170:	gl11.glTexCoordPointer(2, GL11.GL_FLOAT, 0, 0); 
171:	gl11.glClientActiveTexture(GL11.GL_TEXTURE1); 
172:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mSecTextureCoordBufferIndex); 
173:	gl11.glTexCoordPointer(2, GL11.GL_FLOAT, 0, 0); 
174:	gl11.glClientActiveTexture(GL11.GL_TEXTURE0); 
175:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBufferIndex); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: glBindBuffer, glDrawElements, glTexCoordPointer, glVertexPointer
131:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertBufferIndex); 
132:	gl11.glVertexPointer(3, GL11.GL_FLOAT, 0, 0); 
-
134:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mTextureCoordBufferIndex); 
135:	gl11.glTexCoordPointer(2, GL11.GL_FLOAT, 0, 0); 
-
137:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBufferIndex); 
138:	gl11.glDrawElements(GL11.GL_TRIANGLES, mIndexCount, GL11.GL_UNSIGNED_SHORT, 0); 
-
140:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); 
141:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: glBindBuffer, glDrawElements, glNormalPointer, glVertexPointer
367:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertexBufferObjectId); 
368:	gl11.glVertexPointer(3, GL10.GL_FLOAT, VERTEX_SIZE, 0); 
-
371:	gl11.glNormalPointer(GL10.GL_FLOAT, VERTEX_SIZE, VERTEX_NORMAL_BUFFER_INDEX_OFFSET * FLOAT_SIZE); 
-
373:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mElementBufferObjectId); 
374:	gl11.glDrawElements(GL10.GL_TRIANGLES, mIndexCount, GL10.GL_UNSIGNED_SHORT, 0); 
-
377:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); 
378:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: glBindBuffer, glBufferData, glGenBuffers
358:	gl11.glGenBuffers(1, buffer, 0); 
-
360:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertBufferIndex); 
-
364:	gl11.glBufferData(GL11.GL_ARRAY_BUFFER, vertexSize, mVertexBuffer, bufferType); 
-
367:	gl11.glGenBuffers(1, buffer, 0); 
-
369:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mOverlayTextureCoordBufferIndex); 
-
372:	gl11.glBufferData(GL11.GL_ARRAY_BUFFER, texCoordSize, mOverlayTexCoordBuffer, bufferType); 
-
374:	gl11.glGenBuffers(1, buffer, 0); 
-
376:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mBaseTextureCoordBufferIndex); 
-
378:	gl11.glBufferData(GL11.GL_ARRAY_BUFFER, texCoordSize, mBaseTexCoordBuffer, bufferType); 
-
381:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); 
-
384:	gl11.glGenBuffers(1, buffer, 0); 
-
386:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBufferIndex); 
-
390:	gl11.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, indexSize, mIndexBuffer, GL11.GL_STATIC_DRAW); 
-
393:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glBindBuffer, glDrawElements, glVertexPointer
214:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertexBufferObjectId); 
215:	gl11.glVertexPointer(3, GL10.GL_FLOAT, VERTEX_SIZE, 0); 
-
217:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mElementBufferObjectId); 
218:	gl11.glDrawElements(GL10.GL_TRIANGLES, mIndexCount, GL10.GL_UNSIGNED_SHORT, 0); 
-
220:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); 
221:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: glBindBuffer, glDrawElements, glTexCoordPointer, glVertexPointer
269:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertBufferIndex); 
270:	gl11.glVertexPointer(3, mCoordinateType, 0, 0); 
-
272:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mTextureCoordBufferIndex); 
273:	gl11.glTexCoordPointer(2, mCoordinateType, 0, 0); 
-
275:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBufferIndex); 
276:	gl11.glDrawElements(GL11.GL_TRIANGLES, mIndexCount, 
-
279:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); 
280:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glColor4f, glDrawArrays, glMultMatrixf, glPopMatrix, glPushMatrix
312:	gl.glTexEnvf(GL11.GL_TEXTURE_ENV, 
-
314:	gl.glColor4f(alpha, alpha, alpha, alpha); 
-
327:	gl.glPushMatrix(); 
-
329:	gl.glMultMatrixf(toGLMatrix(matrix), 0); 
330:	gl.glTranslatef(x, y, 0); 
331:	gl.glScalef(width, height, 1); 
332:	gl.glDrawArrays(GL11.GL_TRIANGLE_STRIP, 0, 4); 
333:	gl.glPopMatrix(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glBindBuffer, glDrawElements, glTexCoordPointer, glVertexPointer
131:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertBufferIndex); 
132:	gl11.glVertexPointer(3, GL11.GL_FLOAT, 0, 0); 
-
134:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mTextureCoordBufferIndex); 
135:	gl11.glTexCoordPointer(2, GL11.GL_FLOAT, 0, 0); 
-
137:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBufferIndex); 
138:	gl11.glDrawElements(GL11.GL_TRIANGLES, mIndexCount, GL11.GL_UNSIGNED_SHORT, 0); 
-
140:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); 
141:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glBindBuffer, glDrawElements, glNormalPointer, glVertexPointer
367:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertexBufferObjectId); 
368:	gl11.glVertexPointer(3, GL10.GL_FLOAT, VERTEX_SIZE, 0); 
-
371:	gl11.glNormalPointer(GL10.GL_FLOAT, VERTEX_SIZE, VERTEX_NORMAL_BUFFER_INDEX_OFFSET * FLOAT_SIZE); 
-
373:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mElementBufferObjectId); 
374:	gl11.glDrawElements(GL10.GL_TRIANGLES, mIndexCount, GL10.GL_UNSIGNED_SHORT, 0); 
-
377:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); 
378:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glGetError, glBindBuffer, glBufferData, glGenBuffers
321:	gl11.glGenBuffers(1, buffer, 0); 
-
323:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertBufferIndex); 
-
325:	gl11.glBufferData(GL11.GL_ARRAY_BUFFER, vertexSize, 
-
329:	gl11.glGenBuffers(1, buffer, 0); 
-
331:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 
-
335:	gl11.glBufferData(GL11.GL_ARRAY_BUFFER, texCoordSize, 
-
339:	gl11.glGenBuffers(1, buffer, 0); 
-
341:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 
-
345:	gl11.glBufferData(GL11.GL_ARRAY_BUFFER, colorSize, 
-
349:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); 
-
352:	gl11.glGenBuffers(1, buffer, 0); 
-
354:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 
-
358:	gl11.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, indexSize, mIndexBuffer, 
-
362:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); 
-
369:	assert gl11.glGetError() == 0; 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glBindTexture, glGenTextures, glTexParameterf, glTexParameteri, glTexParameteriv
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.glTexParameterf(GL11.GL_TEXTURE_2D, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glDepthFunc, glDisable, glLoadIdentity, glMatrixMode
127:	gl.glDisable(GL10.GL_LIGHTING); 
-
130:	gl.glDisable(GL10.GL_DEPTH_TEST); 
131:	gl.glDepthFunc(GL10.GL_ALWAYS); 
-
142:	gl.glMatrixMode(GL10.GL_TEXTURE); 
143:	gl.glLoadIdentity(); 
144:	gl.glMatrixMode(GL10.GL_MODELVIEW); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glBindBuffer, glBufferData, glDeleteBuffers, glGenBuffers
60:	gl.glDeleteBuffers(1, tmp, 0); 
-
63:	gl.glGenBuffers(1, buffers, 0); 
64:	gl.glBindBuffer(GL11.GL_ARRAY_BUFFER, buffers[0]); 
-
74:	gl.glBufferData(GL11.GL_ARRAY_BUFFER, mVertex.length * 4, mBuffer, GL11.GL_DYNAMIC_DRAW); 
-
76:	gl.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glClientActiveTexture, glBindBuffer, glTexCoordPointer, glVertexPointer
166:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertBufferIndex); 
167:	gl11.glVertexPointer(3, GL11.GL_FLOAT, 0, 0); 
-
169:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mTextureCoordBufferIndex); 
170:	gl11.glTexCoordPointer(2, GL11.GL_FLOAT, 0, 0); 
171:	gl11.glClientActiveTexture(GL11.GL_TEXTURE1); 
172:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mSecTextureCoordBufferIndex); 
173:	gl11.glTexCoordPointer(2, GL11.GL_FLOAT, 0, 0); 
174:	gl11.glClientActiveTexture(GL11.GL_TEXTURE0); 
175:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBufferIndex); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glBindTexture, glEnable, glTexParameterf
78:	gl.glEnable(GL10.GL_TEXTURE_2D); 
79:	gl.glBindTexture(GL10.GL_TEXTURE_2D, result.texture); 
-
84:	gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); 
85:	gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_NEAREST); 
-
87:	gl.glBindTexture(GL10.GL_TEXTURE_2D, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glBindTexture, glGenTextures, glTexParameterf, glTexParameteri, glTexParameteriv
104:	gl.glGenTextures(1, textureId, 0); 
105:	gl.glBindTexture(GL11.GL_TEXTURE_2D, textureId[0]); 
106:	gl.glTexParameteriv(GL11.GL_TEXTURE_2D, 
-
108:	gl.glTexParameteri(GL11.GL_TEXTURE_2D, 
-
110:	gl.glTexParameteri(GL11.GL_TEXTURE_2D, 
-
112:	gl.glTexParameterf(GL11.GL_TEXTURE_2D, 
-
114:	gl.glTexParameterf(GL11.GL_TEXTURE_2D, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glBindTexture, glGenTextures, glTexParameterf, glTexParameteri, glTexParameteriv
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.glTexParameterf(GL11.GL_TEXTURE_2D, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glBindBuffer, glDrawElements, glTexCoordPointer, glVertexPointer
131:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertBufferIndex); 
132:	gl11.glVertexPointer(3, GL11.GL_FLOAT, 0, 0); 
-
134:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mTextureCoordBufferIndex); 
135:	gl11.glTexCoordPointer(2, GL11.GL_FLOAT, 0, 0); 
-
137:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBufferIndex); 
138:	gl11.glDrawElements(GL11.GL_TRIANGLES, mIndexCount, GL11.GL_UNSIGNED_SHORT, 0); 
-
140:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); 
141:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glBindTexture, glGenTextures, glTexParameterf, glTexParameteri, glTexParameteriv
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.glTexParameterf(GL11.GL_TEXTURE_2D, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glBindBuffer, glBufferData, glGenBuffers
184:	gl11.glGenBuffers(2, vboIds, 0); 
-
189:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertexBufferObjectId); 
-
191:	gl11.glBufferData(GL11.GL_ARRAY_BUFFER, mVertexByteBuffer.capacity(), mVertexByteBuffer, GL11.GL_STATIC_DRAW); 
-
193:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mElementBufferObjectId); 
-
195:	gl11.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer.capacity() * CHAR_SIZE, mIndexBuffer, GL11.GL_STATIC_DRAW); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glDisable, glEnable, glGetIntegerv
81:	gl11.glDisable(GL11.GL_DITHER); 
82:	gl11.glDisable(GL11.GL_DEPTH_TEST); 
83:	gl11.glDisable(GL11.GL_DEPTH_BUFFER_BIT); 
84:	gl11.glEnable(GL10.GL_TEXTURE_2D); 
-
86:	gl11.glGetIntegerv(GL11.GL_MAX_TEXTURE_SIZE, buf); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glClientActiveTexture, glBindBuffer, glTexCoordPointer, glVertexPointer
166:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertBufferIndex); 
167:	gl11.glVertexPointer(3, GL11.GL_FLOAT, 0, 0); 
-
169:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mTextureCoordBufferIndex); 
170:	gl11.glTexCoordPointer(2, GL11.GL_FLOAT, 0, 0); 
171:	gl11.glClientActiveTexture(GL11.GL_TEXTURE1); 
172:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mSecTextureCoordBufferIndex); 
173:	gl11.glTexCoordPointer(2, GL11.GL_FLOAT, 0, 0); 
174:	gl11.glClientActiveTexture(GL11.GL_TEXTURE0); 
175:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBufferIndex); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glClientActiveTexture, glBindBuffer, glTexCoordPointer, glVertexPointer
166:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertBufferIndex); 
167:	gl11.glVertexPointer(3, GL11.GL_FLOAT, 0, 0); 
-
169:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mTextureCoordBufferIndex); 
170:	gl11.glTexCoordPointer(2, GL11.GL_FLOAT, 0, 0); 
171:	gl11.glClientActiveTexture(GL11.GL_TEXTURE1); 
172:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mSecTextureCoordBufferIndex); 
173:	gl11.glTexCoordPointer(2, GL11.GL_FLOAT, 0, 0); 
174:	gl11.glClientActiveTexture(GL11.GL_TEXTURE0); 
175:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBufferIndex); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glBlendFunc, glColor4f, glPushMatrix, glScalef, glTranslatef
55:	gl11.glPushMatrix(); 
56:	gl11.glTranslatef(x, y, 0); 
57:	gl11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE); 
58:	gl11.glColor4f(0.0f, 0.7f, 0.0f, 1); 
59:	gl11.glScalef(select_scale, select_scale, 1); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glBindBuffer, glBufferData, glGenBuffers
65:	gl11.glGenBuffers(1, buffer, 0); 
-
67:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertBufferIndex); 
68:	gl11.glBufferData(GL11.GL_ARRAY_BUFFER, mVertexBuffer.capacity() * 4, 
-
73:	gl11.glGenBuffers(1, buffer, 0); 
-
75:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mNormBufferIndex); 
76:	gl11.glBufferData(GL11.GL_ARRAY_BUFFER, mNormBuffer.capacity() * 4, 
-
81:	gl11.glGenBuffers(1, buffer, 0); 
-
83:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mTexBufferIndex); 
84:	gl11.glBufferData(GL11.GL_ARRAY_BUFFER, mTexBuffer.capacity() * 4, 
-
89:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); 
-
92:	gl11.glGenBuffers(1, buffer, 0); 
-
94:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBufferIndex); 
95:	gl11.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, 
-
99:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glBindBuffer, glBufferData, glGenBuffers
230:	gl11.glGenBuffers(1, buffer, 0); 
-
232:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertBufferIndex); 
-
235:	gl11.glBufferData(GL11.GL_ARRAY_BUFFER, vertexSize, mVertexBuffer, GL11.GL_STATIC_DRAW); 
-
238:	gl11.glGenBuffers(1, buffer, 0); 
-
240:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mTextureCoordBufferIndex); 
-
243:	gl11.glBufferData(GL11.GL_ARRAY_BUFFER, texCoordSize, mTexCoordBuffer, GL11.GL_STATIC_DRAW); 
-
246:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); 
-
249:	gl11.glGenBuffers(1, buffer, 0); 
-
251:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBufferIndex); 
-
255:	gl11.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, indexSize, mIndexBuffer, GL11.GL_STATIC_DRAW); 
-
258:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: glBindBuffer, glBufferData, glGenBuffers
232:	gl11.glGenBuffers(1, buffer, 0); 
-
234:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertBufferIndex); 
-
236:	gl11.glBufferData(GL11.GL_ARRAY_BUFFER, vertexSize, 
-
240:	gl11.glGenBuffers(1, buffer, 0); 
-
242:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 
-
246:	gl11.glBufferData(GL11.GL_ARRAY_BUFFER, texCoordSize, 
-
250:	gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); 
-
253:	gl11.glGenBuffers(1, buffer, 0); 
-
255:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 
-
259:	gl11.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, indexSize, mIndexBuffer, GL11.GL_STATIC_DRAW); 
-
262:	gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); 
Full Snippet Info
6
CodeRank
Related Java 8 GL11 Questions & Answers: