Hello everybody, again...
Just started learning vertex buffer objects, and it is much easier than I thought it would be. Pretty straight forward really. I have been following this example:http://www.java-gaming.org/topics/introduction-to-vertex-arrays-and-vertex-buffer-objects-opengl/24272/view.html
Specifically the Vertex Buffer Objects (interleaved) example in the format VCVCVC and modifying it to draw GL_POINTS instead of GL_TRIANGLES. This all works perfectly! This line of code is used to place a pixel:
The problem is, when drawing many pixels next to each other, the coordinate system of -1 to 1 isnt really accurate enough, and leaves strips of white lines vertically up the screen. My screen width is 960, so if I want to place a point at 250, the argument in the first put() would look like this:
Is there anyway to change the coordinate system from -1 to 1, to 0 to 960 and same on the y axis?