• Advertisement

Archived

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

Direct X Menus

This topic is 5977 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to know how to create menus in direct 3d. So when you right click you get a menu... just like the windows popup menus, but not using windows menus. So you could add menu items and have a title at the top of the menu, also able to set the alpha values, which is the main reason i''m wondering how to create it in direct 3d. Jibberish. Thanks, andy -=[skillfreak]=-

Share this post


Link to post
Share on other sites
Advertisement
Well, first of all i think that you don''t need direct3D at all to make this job all you need is direct draw...

To create a menu you must draw everything with your hands...
Basically you draw a filled rectangle with the color you want your menu to appear with... then it''s time to add items to your menu....

Adding items to your menu will require you to write your font engine first under direct draw... this is basically done by having an image that contains all the alphabetical characters and bliting from it to the ositions you want to draw it...

you''ll find a useful article here in gamedev,net about creating your font engine.

Concerning the part of alpha-blending you won''t need D3D to implement it by hardware... you can use direct draw instead with the support of MMX or 3DNow! instruction sets... you''ll find also here some articles disribinng this...

Share this post


Link to post
Share on other sites

  • Advertisement