Jump to content
  • Advertisement

Archived

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

Spartacus

More 2D and DX8

This topic is 6092 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 use DX8 for 2D but there is something I don''t understand. I will be using texture mapping to blit my sprites onto the screen, this means I will have to create a vertex buffer in order to draw the textures on the screen. Since this is used for 2D only I will create vertex data for a quad. This quad will have a size of for instance x_size=2 and y_size=2. This will allow me to blit textures that fit these dimensions. But what if I need to blit a texture that is larger? Would I then have to apply a scaling matrix before I draw the texture? Or would it be better to create seperate vertex data for each texture? Thanks René Petersen

Share this post


Link to post
Share on other sites
Advertisement

  • 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!