GL11 glVertexPointer - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for GL11 glVertexPointer method.

This code example shows how to use the following methods:glClientActiveTexture, glBindBuffer, glTexCoordPointer, glVertexPointer
This code example shows how to use the following methods:glBindBuffer, glDrawElements, glTexCoordPointer, glVertexPointer
7
CodeRank
This code example shows how to use the following methods:glDrawArrays, glBindBuffer, glColorPointer, glDrawElements, glVertexPointer
		} 
	} 
 
	public void draw(GL11 gl) {
		if (useVBO) {
			gl.glBindBuffer(GL11.GL_ARRAY_BUFFER, vertexVbo);
			gl.glVertexPointer(3, GL10.GL_FLOAT, 0, 0);
 
			gl.glBindBuffer(GL11.GL_ARRAY_BUFFER, colorVbo);
			gl.glColorPointer(4, GL10.GL_UNSIGNED_BYTE, 0, 0);
 
			gl.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0);
			// gl.glDrawArrays(GL10.GL_LINE_STRIP, 0, N*N); 
 
			gl.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, vertexElementVbo);
			gl.glDrawElements(GL10.GL_LINE_STRIP, n * n, GL10.GL_UNSIGNED_SHORT, 0);
			gl.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0);
		} else { 
			gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuf);
			gl.glColorPointer(4, GL10.GL_UNSIGNED_BYTE, 0, colorBuf);

7
CodeRank
This code example shows how to use the following methods:glBindBuffer, glDrawElements, glTexCoordPointer, glVertexPointer
7
CodeRank
This code example shows how to use the following methods:glClientActiveTexture, glBindBuffer, glTexCoordPointer, glVertexPointer
This code example shows how to use the following methods:glBindBuffer, glDrawElements, glTexCoordPointer, glVertexPointer
This code example shows how to use the following methods:glBindBuffer, glDrawElements, glNormalPointer, glVertexPointer
7
CodeRank
This code example shows how to use the following methods:glClientActiveTexture, glBindBuffer, glBufferData, glTexCoordPointer, glVertexPointer
6
CodeRank
This code example shows how to use the following methods:glBindBuffer, glDrawElements, glVertexPointer
This code example shows how to use the following methods:glBindBuffer, glDrawElements, glTexCoordPointer, glVertexPointer
6
CodeRank