gl.glVertexPointer(2, GL.GL_FLOAT, 0, posArray);
gl.glEnableClientState(GL.GL_COLOR_ARRAY);
gl.glColorPointer(3, GL.GL_FLOAT, 0, colArray);
gl.glDrawArrays(GL.GL_LINES, 0, maxParticles * 2);
}
else {
gl.glBegin(GL.GL_LINES); // start drawing points
for(int i=0; i<maxParticles; i++) {
if(particles[i].alpha > 0) {