View Full Version : Model coordinates match pixel coordinates

08-22-2006, 09:22 AM
I'm trying to use GL for a tile based graphics program and want to use textured Quads as the tiles. At the same time I want to be able to specify the quads in pixels, for example, glVertex2i(0, 100) and have the vertex on the screen at x = 0 and y = 100. How would be the best way to set up the 'camera' to achieve this?

08-22-2006, 09:50 AM
Something like setting projection matrix to :