Skip to main content
gamedev.net
🔒 Locked

GUI help.

Started by CrackMonkeyT May 27, 2003 at 3:49 PM 3 replies 450+ views
Original Post
CrackMonkeyT
CrackMonkeyT
Hey everyone, I am in the process of making a 3d game, and parts of it (obviously) have to be in 2d, like the gui and hud over-lays, etc. How do I go about doing this? Are there any good tutorials on that sort of thing? I was thinking about using "billboards" and the regular mouse handler, but that seems in-efficiant to test where the mouse hit and check every pixel of every clickable object to figure out what the person wanted... Anyway if anyone has some insight, or links to tut''s, etc. That would be wonderful! Thanks in advance, peace, Me.
dopeflow
dopeflow
Thats exactly how I did it too. You can create a set of classes
CGuiElement and have everything derived from that base class, like buttons, list, static images, you name it.

I would suggest just using opengl immediate mode to draw to gui. It makes things easy and still fast since you dont have that much geometry to use.
CrackMonkeyT
CrackMonkeyT
Thanx for the help. Does anyone have any example code or antying? I don''t know all that much about opengl (I''ve been using for about a month total, now) and example code is the quickest way for me personaly to learn things. Anything like that would be great. In the mean time I will google around for the things that you guys suggested.

Thanx again,
Me.

Taharez
Taharez
There''s a nice series on developing a game GUI in the articles section: Developing a GUI Using C++ and DirectX. You should be able to learn a lot from it despite the title, it presents the concepts in a nice way, and the method for rendering is rather irrelevant as long as you understand those.

Good luck!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.