Original Post
I''ve created a simple class, where I can store a texture for a sprite.
Every time the class calls Draw, eg if I want to draw a 2DObject, the data of the vertices will be stored into a single vertex buffer and only one call to drawprimative is needed.
Ex:
for (int i=0; i < 10; i++)
{
TheSpriteClass.Draw
}
TheSpriteClass.Display
the code will first draw to a single vertex buffer, 10 instance of the object, then display them.
But what about transistions matrices? like rotation and movement?
How should I implent that?
I want to use the D3DXMATRIX if I can.
Thanks for your time.