File
158380266711.jpg
- (111.79KB
, 640x480
, aa719ac50c0b1dbb27ba1ede985aae253bee1325-700.jpg
)
I'm building a little demo in Win32 using GDI and C. I need multiple instances of sprites with different speeds.
Code is below. The question is, how do I pass an instance to the UpdateSpritePosition function? Pic unrelated.
Currently, I am calling the function like this- UpdateSpritePosition( &rcClient); from WM_PAINT
I need something like- sprite_sp1.UpdateSpritePosition();
// The struct containing sprite information
struct SpriteAnimation
{
int frames;
int direction;
float counter2;
float counter;
float sprite_speed;
float sdrift_speed;
Message too long. Click here to view the full text.