Surfaces Vs. Textures please help

LDV

Freshman
Joined
Dec 29, 2003
Messages
31
Hi Guys,

I'm using DirectX - Direct3d - 9 - Managed, to build a 2d game. Although it's 2D i'm using the 3D interfaces.
Some time i uses Textures to display images, using the Sprite object, and sometime i uses Surfaces using the UpdateSurface or StretchRectangle methods.

I would like to know, generally, which is better to use? surface or texture?
Which consume more memory?
Which one is faster to draw?

Thanks a lot.
LDV
 
ThePentiumGuy said:
hmm
i use textures - ive never used a Surface before...
i cant exactly give you the benifits of each... but i think Textures are the way to..
Surfaces are a component of textures translation a texture is made up of one or many surfaces so logicly i would think a surface takes less memory and time to render however it is less flexible than a texture. i could be wrong about this though.
 
Back
Top