Code example for GL11

Methods: glDrawArrays, glLineWidth, glVertexPointer

0
	} 
 
	public static final void drawLines(FloatBuffer vb, float[] color,
			float width, int type, int stride) {
		setColor(color);
		gl.glLineWidth(width);
		gl.glVertexPointer(2, GL10.GL_FLOAT, stride, vb);
		gl.glDrawArrays(type, 0, vb.capacity() / (2 + stride / 8));
	} 
 
	public static final void drawLines(FloatBuffer vb, float[] color,
			float width, int type) {
		drawLines(vb, color, width, type, 0);
	} 
 
	public static final void drawCircle(float pointSize, float[] color, float x,
			float y) {
		push(); 
		translate(x, y);
		float scale = pointSize / CIRCLE_RADIUS;
		scale(scale, scale);