Projection for tiled renderer

I want to render my scene in tiles.

Currently I use
[source]
glViewport(0, 0, 1024, 778)
glMatrixMode( GL_PROJECTION )
gluPerspective(…)
[/source]

To set up my projection, which works fine.

Now I want to take my 1024778 image and render it sequentially in 128128 tiles…

Can someone tell my the correct sequence of commands to issue to set up each tile?

Brian Paul has written a nice little library for handling that called TR (Tile Rendering Library). The website has a description and a link to the code.

Hope it helps

Dirk