Jump to content
  • Advertisement


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


More 2D and DX8

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

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!