Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm migrating from XNA to SharpDX in Win8. I noticed this DrawBitmap call in one of the samples.

Is this different in some shape, way or form from XNA's SpriteBatch?

share|improve this question

1 Answer 1

Yes, they are absolutely different.

The SharpDX method you linked to is a wrapper around the native Direct2D DrawBitmap methods; SharpDX is primarily just an interoperability API that provides a wrapper around native functions (excluding it's "toolkit" APIs).

XNA's SpriteBatch is a high-level wrapper around Direct3D drawing primitives (vertex buffers, textures, shaders) that provides an easy way to draw sprites.

You can use both interfaces to draw 2D sprites on a screen. Used properly you can probably achieve performance parity. However, they are not interchangeable interfaces.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.