Confusion over the relationship between surfaces and textures

Started by
0 comments, last by jollyjeffers 16 years, 2 months ago
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]
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.

<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ | MVP Profile | Developer Journal ]</small>

This topic is closed to new replies.

Advertisement