Original Post
How can I draw more than one sprite with different SpriteFlags using Direct3D? The problem is that I have two sprites; one with SpriteFlags.AlphaBlend and the other one with SpriteFlags.None. I can't quite figure out how could I get this to work. I tried to do this with following lines of code under my render method: I was able to get visual with using one sprite that had transparency, but it looked kinda wrong. Meaby I still haven't figures out the idea with these rectangle and the sprite coordinates. Somehow they just feel difficult when you need to give two different coordinates for using one sprite. And when I input the coordinates for sprite, I haven't understood that should the coordinates be inserted by the screen coordinates or by the rectangle coornates where the sprite is being drawn. [Edited by - Hoover85 on July 3, 2006 5:36:18 AM]
' This one needs to have the transparency feature.
spriteTest1.Begin(SpriteFlags.AlphaBlend()
Dim rPicture1 As Rectangle = New Rectangle(0, 0, 50, 50)
spriteTest1.Draw(texture1, rPicture1, New Vector3(0, 0, 0), New Vector3(0, 0, 0), Color.White)
spriteTest1.End()
' The other sprite does not need transparency!
spriteTest2.Begin(SpriteFlags.None)
Dim rPicture2 As Rectangle = New Rectangle(50, 0, 50, 50)
spriteTest2.Draw(texture2, rPicture2, New Vector3(0, 0, 0), New Vector3(0, 50, 0), Color.White)
spriteTest2.End()