DrawSpritesBuffered

Started by
1 comment, last by b1gjo3 16 years ago
hello, i have created a user-defined structure named Sprite, and in it it has a D3DX10_SPRITE object. I have an array of Sprites. DrawSpritesBuffered's first parameter calls for a pointer to all the Sprites D3DX10_SPRITE objects. How would i satisfy the first parameter of DrawSpritesBuffered without passing it a pointer that only points to the first D3DX10_SPRITE object in my array of Sprites?
Advertisement
Arrays are required to be contiguous blocks of memory. Since DirectX expects an array for that parameter, you'll need to use something like std::vector to collect all your D3DX10_SPRITE objects into one place before submitting it to DrawSpritesBuffered().
NextWar: The Quest for Earth available now for Windows Phone 7.
which one has the greatest performance? DrawSpritesBuffered or DrawSpritesImmediate. or does it matter?

This topic is closed to new replies.

Advertisement