Jump to content
  • Advertisement

Archived

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

GeekPlusPlus

More... interactive? GUIs?

This topic is 5246 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

Hello, I''m just moving from the win GDI to directX, and I was wondering if anyone has some good 2D NON flipping (I''d prefer to blit since I don''t want to always be in full screen) tutorials for DirectX9. I''m having some troubles finding some. Also, I was wondering how you would go about doing an input field, <input type="text" size="10" maxlength="255"> if c++ was HTML, in a custom GUI? Would you draw the cursor flashing when the mouse clicks in the drawn box, and just blit the text as it''s typed? Just wondering if there is an more popular way? Hope you can help! - Newb Programmer: Geek++

Share this post


Link to post
Share on other sites
Advertisement
If you plan on using DirectX, you are obviously using windows. That means you can use Win32 widgets on top of your DX surface and if you would like to have them ''skinned'' to your liking, you can set a flag to have them draw themselves. This means your child widgets need to do something with the WM_PAINT message.

Alternatively, you could use .Net (which I have never used). Presumably you could subclass the text input class and overload the draw method(s).

Share this post


Link to post
Share on other sites
Ahh I see.

Alright. I''ll look up these windows widgets.

Hopeflly someone knows of a good 2D tutorial using DirectX9 with blitting in a window mode and not full screen.

- Newb Programmer: Geek++

Share this post


Link to post
Share on other sites
Direct3D 9 is the same in both a window and fullscreen. You draw like normal and use IDirect3DDevice9:resent to put the image on the screen.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!