I'm using some demos that came with my OpenGL ES emulator as a starting point. The demo I'm currently using is 960x540 pixels with a simple 2D triangle drawn in the middle of the screen.
I see that the triangle has been drawn with floats, and that the lower-left corner of the screen is (-1,-1) while the upper-right corner of the screen is (1,1).
Is it possible to change this? I would like to use integers instead of floats, and have the lower-left corner of the screen be (1,1) while the upper-right corner is (960,540).
This would be much easier to work with because I plan to make a 2D platformer game. I do not want to split any pixels in this game; everything (textures, player movement, camera movement) will conform to whole-pixel coordinates.
I tried crunching the numbers (using the regular grid and floats) to draw a right triangle that was 24x24 pixels. However, it ended up being 24x23 pixels on the screen. So I didn't want to continue going forward if there was a more accurate, faster method that could use pixel coordinates.