1
Graphics / Drawing from class
« on: December 23, 2011, 03:04:27 pm »
Hi, first post on forum
I've choosed SFML for maze project. I would like to make a GUI class, but i'm not sure if i can draw sprites on RenderWindows from other files than one with RenderWindow declaration.
For example, is it possible to make a function like GUI->Check(int x, int y), where x,y - mouse position, which would check mouseover effects, and draw the right Sprites on window?
Regards - Veri
I've choosed SFML for maze project. I would like to make a GUI class, but i'm not sure if i can draw sprites on RenderWindows from other files than one with RenderWindow declaration.
For example, is it possible to make a function like GUI->Check(int x, int y), where x,y - mouse position, which would check mouseover effects, and draw the right Sprites on window?
Regards - Veri