On Thu, 13 Oct 2005 10:52:20 -0300 Andreas Berger <[EMAIL PROTECTED]> wrote:
> I am not a graphic programmer, but in an application I am writing I will > need a synotic that need to be refreshed at a decent rate - around 40 > times per second. I thought to use OpenGL for this, but have not found > any documentation on how to do 2D graphics. It seems all the > documentation and demos deal with 3D only. > > Does anyone know where I can find documentation and a demo or two on 2D > programming with OpenGL? > The only difference between 2D and 3D programming in OpenGL is the projection matrix to use. The GLU library comes with a little function to set up a 2D orthographic projection matrix, google for gluOrtho2D. And here are some links that might help to get you started on OpenGL: OpenGL Programming Guide: http://www.opengl.org/documentation/red_book_1.0/ OpenGL Reference Guide: http://www.opengl.org/documentation/blue_book_1.0/ Tutorials (in C): http://nehe.gamedev.net/ hih _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
