How to make a Game Menu with DirectX

Started by
2 comments, last by Spindle 22 years, 8 months ago
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.
Addicted Technolagy Raven Engine - Join Us :)
Advertisement
Simple.

Write the code to draw them yourself.

DirectX won''t do your menu''s for you.

Regards,
Nekosion
Regards,Nekosion
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
-----------------------------kevin@mayday-anime.comhttp://www.mayday-anime.com
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".
Joseph FernaldSoftware EngineerRed Storm Entertainment.------------------------The opinions expressed are that of the person postingand not that of Red Storm Entertainment.

This topic is closed to new replies.

Advertisement