Sign in to follow this  
ed209

Confusion over the relationship between surfaces and textures

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this