Code examples for IntBuffer

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
205:	buffer.position(0); 
206:	buffer.limit(buffer.capacity()); 
207:	Gdx.gl.glGenTextures(1, buffer); 
208:	return buffer.get(0); 
Full Snippet Info
8
CodeRank
200:	vertices.position(0);                        // Set Vertex Buffer to Position 
201:	gl.glVertexPointer(positionCnt, GL10.GL_FLOAT, vertexSize, vertices);  // Set Vertex Pointer 
-
205:	vertices.position(positionCnt);            // Set Vertex Buffer to Color 
206:	gl.glColorPointer(COLOR_CNT, GL10.GL_FLOAT, vertexSize, vertices);  // Set Color Pointer 
-
211:	vertices.position(positionCnt + (hasColor ? COLOR_CNT : 0));  // Set Vertex Buffer to Texture Coords (NOTE: position based on whether color is also specified) 
212:	gl.glTexCoordPointer(TEXCOORD_CNT, GL10.GL_FLOAT, vertexSize, vertices);  // Set Texture Coords Pointer 
Full Snippet Info
7
CodeRank
35:	intBuffer.put(source, 2, 2); 
36:	intBuffer.put(source, 4, 2); 
37:	assertEquals(4, intBuffer.get(0)); 
38:	assertEquals(5, intBuffer.get(1)); 
39:	assertEquals(6, intBuffer.get(2)); 
40:	assertEquals(7, intBuffer.get(3)); 
Full Snippet Info
7
CodeRank
210:	mTexcoordBuffer.put(texcoords); 
211:	mTexcoordBuffer.position(0); 
Full Snippet Info
6
CodeRank
81:	mColorBuffer.put(colors); 
82:	mColorBuffer.position(0); 
Full Snippet Info
6
CodeRank
175:	zeroBuffer0(b, b.position()*4L, b.remaining()*4L); 
Full Snippet Info
6
CodeRank
167:	coord_buffer.put(0, (int)accum_dx); 
168:	coord_buffer.put(1, (int)accum_dy); 
-
170:	coord_buffer.put(0, (int)last_x); 
171:	coord_buffer.put(1, (int)last_y); 
-
173:	coord_buffer.put(2, accum_dz); 
Full Snippet Info
6
CodeRank
75:	vertexBuffer.position(index * 3); 
-
78:	vertexBuffer.put(toFixed(x)); 
79:	vertexBuffer.put(toFixed(y)); 
80:	vertexBuffer.put(toFixed(z)); 
-
84:	vertexBuffer.put(toFixed(temp.x)); 
85:	vertexBuffer.put(toFixed(temp.y)); 
86:	vertexBuffer.put(toFixed(temp.z)); 
Full Snippet Info
6
CodeRank
89:	Gdx.gl20.glGenBuffers(1, tmpHandle); 
90:	return tmpHandle.get(0); 
Full Snippet Info
6
CodeRank
81:	mColorBuffer.put(colors); 
82:	mColorBuffer.position(0); 
Full Snippet Info
6
CodeRank
200:	vertices.position(0);                        // Set Vertex Buffer to Position 
201:	gl.glVertexPointer(positionCnt, GL10.GL_FLOAT, vertexSize, vertices);  // Set Vertex Pointer 
-
205:	vertices.position(positionCnt);            // Set Vertex Buffer to Color 
206:	gl.glColorPointer(COLOR_CNT, GL10.GL_FLOAT, vertexSize, vertices);  // Set Color Pointer 
-
211:	vertices.position(positionCnt + (hasColor ? COLOR_CNT : 0));  // Set Vertex Buffer to Texture Coords (NOTE: position based on whether color is also specified) 
212:	gl.glTexCoordPointer(TEXCOORD_CNT, GL10.GL_FLOAT, vertexSize, vertices);  // Set Texture Coords Pointer 
Full Snippet Info
6
CodeRank
147:	coord_buffer.put(0, accum_dx); 
148:	coord_buffer.put(1, accum_dy); 
-
150:	coord_buffer.put(0, last_x); 
151:	coord_buffer.put(1, last_y); 
-
153:	coord_buffer.put(2, accum_dz); 
Full Snippet Info
6
CodeRank
595:	final int vPos = viewport.position(); 
596:	gl.glTranslatef((viewport.get(2+vPos) - 2 * (x - viewport.get(0+vPos))) / deltaX, 
597:	(viewport.get(3+vPos) - 2 * (y - viewport.get(1+vPos))) / deltaY, 
-
599:	gl.glScalef(viewport.get(2) / deltaX, viewport.get(3) / deltaY, 1.0f); 
Full Snippet Info
6
CodeRank
123:	if (remaining == 0 && !tb.hasRemaining()) 
-
129:	while (tb.remaining() < len) 
-
131:	int nr = tb.remaining(); 
132:	tb.get(dst, pos, nr); 
-
139:	tb.get(dst, pos, len); 
-
155:	if (relIndex < 0 || relIndex >= tb.limit()) 
-
164:	tb.position(relIndex); 
Full Snippet Info
6
CodeRank
129:	gl.glGenTextures(1, tmp); 
-
131:	return tmp.get(0); 
Full Snippet Info
6
CodeRank
35:	intBuffer.put(source, 2, 2); 
36:	intBuffer.put(source, 4, 2); 
37:	assertEquals(4, intBuffer.get(0)); 
38:	assertEquals(5, intBuffer.get(1)); 
39:	assertEquals(6, intBuffer.get(2)); 
40:	assertEquals(7, intBuffer.get(3)); 
Full Snippet Info
6
CodeRank
63:	vertices.position(0); 
64:	gl.glVertexPointer(3, GL10.GL_FLOAT, vertexSize, vertices); 
-
68:	vertices.position(3); 
69:	gl.glColorPointer(4, GL10.GL_FLOAT, vertexSize, vertices); 
-
74:	vertices.position(hasColor ? 7 : 3); 
75:	gl.glTexCoordPointer(2, GL10.GL_FLOAT, vertexSize, vertices); 
-
85:	vertices.position(offset); 
86:	gl.glNormalPointer(GL10.GL_FLOAT, vertexSize, vertices); 
Full Snippet Info
6
CodeRank
51:	field_1236_g.put(par1); 
-
53:	if (field_1236_g.remaining() == 0) 
-
68:	field_1236_g.flip(); 
-
72:	if (field_1236_g.remaining() > 0) 
-
76:	GL11.glCallLists(field_1236_g); 
Full Snippet Info
6
CodeRank
374:	buf.clear(); 
375:	IntBuffer readonly = buf.asReadOnlyBuffer(); 
376:	IntBuffer duplicate = buf.duplicate(); 
377:	assertTrue(buf.hashCode() == readonly.hashCode()); 
-
379:	assertTrue(buf.capacity() > 5); 
380:	duplicate.position(buf.capacity() / 2); 
381:	assertTrue(buf.hashCode() != duplicate.hashCode()); 
Full Snippet Info
6
CodeRank
150:	GL11.glGenTextures(tmp); 
-
152:	return tmp.get(0); 
Full Snippet Info
6
CodeRank