1
Graphics / I have two questions
« on: May 02, 2009, 05:06:08 am »
First is how do I pass the RenderWindow to a function.
For example I want to have a render function in my layer class
void render(Sprite& s, RenderWindow& rw)
{
rw.Draw(s);
}
how would I go about making that :?:
-----------------------------------------------------------------------------
The second question is how come when I change the image of the sprite, when I draw it, it appears white ?!?!??!
For example I want to have a render function in my layer class
void render(Sprite& s, RenderWindow& rw)
{
rw.Draw(s);
}
how would I go about making that :?:
-----------------------------------------------------------------------------
The second question is how come when I change the image of the sprite, when I draw it, it appears white ?!?!??!