Sign in to follow this  
Steve00000

entitys and sprite drawing

Recommended Posts

So in my engine I have a class and its purpose is to manage entitys, its called entitymanager. Anyways each entity has a D3DX10_SPRITE stuct and this is my problem so I'v come to u to ask what you think. The sprite drawing method in directx 10 calls for an array of this sprite structure so I'm wondering if an array should be built upon with with the sprite structures when an entity is created or its sprite is changed. Perhaps each entity can call drawspritesimmediate (which i dont know) but that maybe be less performance smart since function overead can cause drag if its a big function. anyways thanks for input [Edited by - Steve00000 on September 10, 2009 10:57:32 AM]

Share this post


Link to post
Share on other sites
I ditched trying to do the D3D stuff and went with making my own sprite class that blits to a 2DTexture. Fast simple and does a nice job. Not to mention I can manage my own frames that are on a texture with frames from other sprites. Saves on video memory. I hope I have been helpfull

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this