hey im trying to code a simple tile-based game on OSX…

ive got to the point where i have:
-> a window
-> a white texturemapped rectange in the center

i want to move to the upper-left corner, draw it, move over, so on… basically if anyone could help me with transforms (i believe thats the term) and how to do tiles.


Setup an orthographic projection (glOrtho) where the width and height you pass to it are equal to the width and height of your window. This way each gl unit corresponds to a pixel on the window. Now depending on how you set things up(where the origin is) translate to the desired position and draw your quad. This gets asked a lot so if you search the forums or google for it you should come up with much more info.