LDV Posted April 12, 2004 Posted April 12, 2004 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 Quote
ThePentiumGuy Posted April 12, 2004 Posted April 12, 2004 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.. Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
rifter1818 Posted April 13, 2004 Posted April 13, 2004 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.