Menu system using Open GL

Started by
5 comments, last by shaggynick 22 years, 7 months ago
Hello everyone, I just had a basic question. What would be the easiest way to make a game menu system for use with Open GL? Something a long the lines of SOF, Unreal, or something like that. If I was using Direct X I would just use Direct Draw. Because OpenGL has no 2d support what would be the easiest way to impliment a basic game menu. Thank you.
Advertisement
Look into glOrtho or something like that, it lets you setup a 2D orthogonal view so you can work in 2d. Its perfect for creating a menu system.

OpenGL DOES have 2D support...
I think researching into the matter a bit more might help you to discover some answers
-----------------------"When I have a problem on an Nvidia, I assume that it is my fault. With anyone else's drivers, I assume it is their fault" - John Carmack
Use textured quads in ortho mode without depth testing. That''s how most games do it.
Thanks everyone. I''ll look int using the ortho mode in OpenGL.
I''ll suggest you another alternative: add SDL library to you project (http://www.libsdl.org). You can use the SDL_OPENGLBLIT
mode to have both 2d and 3d graphic using opengl. More than that, there are many GUI creation libraries developed using
opengl and SDL (look on the libarries page on the web site).

Hope this helps.

Bye,


__
Fabio "''''- nowDruid" Franchello
---''''--------
-- snowdruid@libero.it --
Fabio "SnowDruid" Franchello--- snowdruid@libero.it ---
Umm you can do 2D and 3D together in OpenGL very easily without SDL anyway
-----------------------"When I have a problem on an Nvidia, I assume that it is my fault. With anyone else's drivers, I assume it is their fault" - John Carmack

This topic is closed to new replies.

Advertisement