[.net] questions about managed directx

Started by
2 comments, last by ZachE84 16 years, 2 months ago
What exactly is a surface? Is it a frame with sprites? I don't understand!
Advertisement
A surface is a chunk of memory which contains image data.

Former Microsoft XNA and Xbox MVP | Check out my blog for random ramblings on game development

so it's anything that contains image data...like a bitmap or background, anything.
A surface is what was stated, just image data. As far as a background, etc, thats up to the programmer. You can use the surface as a background, sprite, tile, etc.

It performs no functions, just a placeholder/pointer to image(s).

You would have to use the Sprite class (recommended for 2D), DirectDraw, or Direct3D to apply the surface to your screen (backbuffer).

This topic is closed to new replies.

Advertisement