A central point of control for graphics.
bool drawImage(const Image *image, int x, int y)
Blits an image onto the screen.
Icon(const std::string &filename)
Constructor.
void draw(gcn::Graphics *g) override
Draws the Icon.
ResourceRef< Image > mImage
void setImage(Image *image)
Sets the image to display.
Defines a class for loading and storing images.
int getHeight() const
Returns the height of the image.
int getWidth() const
Returns the width of the image.
A class for loading and managing resources.