• Advertisement

Archived

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

DXSprite or Textured Quads, the GUI way!

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

Hi! I was using the magical programming RPGs with DX, and he uses DX Sprites for 2D stuff, now i want to make some GUI objects like buttons, sliders etc so i want more customisatin, i think now i have to switch to textured quads, is this the right way or it''s a silly thing to do? One guy alos pointed me to StretchRect, i don''t understand that, so what''s the best thing for rendering sprites intendet for GUI stuff where nice flexibility is needed?

Share this post


Link to post
Share on other sites
Advertisement
Even though it may not seem like it at first, GUI''s are *quite* a bit of work. But...you can simply make textures, then load them, and use ID3DXSprite to render them. That''s probably the easiest way (like that guy suggested in the book). If you plan it out correctly, you can really make it look nice with sprite animations.

For an awesome series, check out this.


Dustin Franklin
Mircrosoft DirectX MVP

Share this post


Link to post
Share on other sites
You''re talking about the easy way, but look how i can move individual vertices of quad in D3DXSprite, as far as i know i can''t, so i think quads are more of my type, i will stick with them, any thing wrong in this approach?

Share this post


Link to post
Share on other sites

  • Advertisement