Sign in to follow this  

DrawSpritesBuffered

This topic is 3577 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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().

Share this post


Link to post
Share on other sites
which one has the greatest performance? DrawSpritesBuffered or DrawSpritesImmediate. or does it matter?

Share this post


Link to post
Share on other sites
Sign in to follow this