how to get a enum to change colours of sprites

okay so i am trying to get my sprite to draw in 4 different colours, everything about the sprite is the same except its position and colour.I am trying to get THIRSTIE_COLOUR (which is my enum) to choose one of four different textures but i cant seem to get it to load different ones it just loads the same colour sprite


1
2
3
4
5
6
7
	
for( int i = 0; i < 4; ++i )
	{
		Thirsties* pThirsty = new Thirsties(THIRSTIE_COLOUR, (180 * i) + 180, (120 * i) + 105);
		pThirsty->OnLoad();
		m_pThirsties.push_back(pThirsty);
	}


this is the enum i am using

1
2
3
4
5
6
7
8
9

enum THIRSTIE_COLOUR
{
	Blue, 
	Purple, 
	Orange, 
	Green
};


and these are the textures is should use

LoadTexture("./Images/SpriteBlue.png");
LoadTexture("./Images/SpritePurple.png");
LoadTexture("./Images/SpriteOrange.png");
LoadTexture("./Images/SpriteGreen.png");
Topic archived. No new replies allowed.