DrawSpritesBuffered
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?
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().
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement