Archived

This topic is now archived and is closed to further replies.

Spindle

How to make a Game Menu with DirectX

Recommended Posts

How do make a game menu using DirectX''s Direct3D. No DirectDraw stuff. All I want is a PLAY GAME, OPTIONS, and EXIT options. What is the easyiest way of acomplishing this? I would greatly appricate if anybody has some code I can look at from there game menus. Thanks in advance.

Share this post


Link to post
Share on other sites
You need to look at the menu text items as Textures. If you plan on using DirectX 8, Microsoft provides an Interface called D3DXSprite. You can easily create small "sprite-like" textures and draw them in a 3D world with this Interface. Take a look at the DirectX 8 SDK documentation on the D3DXSprite Interface (ID3DXSprite).

If DirectX 7 is your liking, some DirectDraw is needed. You need to create your surface with your menu option, color key it, then apply it as a Texture in your 3D world. Hope this helps.

-----------------------------
kevin@mayday-anime.com
http://dainteractive.mayday-anime.com

Share this post


Link to post
Share on other sites
Actualy the easiest way to do a menu system is to use the new d3d font utilities in DirectX 8.0. You can find a pretty good sample menu system that came with the SDK it''s called "Space doughnuts 3d".

Share this post


Link to post
Share on other sites