1
Graphics / virtual void Render(RenderTarget& Target)
« on: May 03, 2010, 12:05:58 am »
Oh, thanks.
Button is now inheriting from Drawable.
And it has a Sprite, Image, and String member.
And they're being drawn correctly now.
In the .hpp:
In the .cpp:
Button is now inheriting from Drawable.
And it has a Sprite, Image, and String member.
And they're being drawn correctly now.
In the .hpp:
Code: [Select]
protected:
virtual void Render(RenderTarget& Target) const;
In the .cpp:
Code: [Select]
void Render(RenderTarget& Target) const
{
Target.Draw(sprite);
Target.Draw(text);
}