Jump to content
  • Advertisement
Sign in to follow this  
ed209

Confusion over the relationship between surfaces and textures

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

So a surface is like a background and a texture is the sprite, correct? Or why is it you sometimes use surfaces and sometimes textures when doing something 2D? EDIT: "lemme see if I got this" is not a suitable subject line [Edited by - jollyjeffers on January 28, 2008 5:13:59 PM]

Share this post


Link to post
Share on other sites
Advertisement
Textures are just collections of surfaces, typically in decending size order for the purpose of mip-maps.

Surfaces can be copied around, but really shouldn't if you want good performance. Textures can be applied to geometry and are intended for the actual rendering.

Assuming you're talking about Direct3D then you should be using textures or ID3DXSprite for all 2D rendering unless you have a specific requirement that cannot be met by either approach. This latter case is unlikely.

hth
Jack

P.S. For the benefit of your fellow community members, please choose an appropriate subject line in future. Read the FAQ for more details or search online for effective communication guidelines. Thanks.

Share this post


Link to post
Share on other sites
Sign in to follow this  

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