ge211  2021.5.1
A student game engine
Image_sprite Class Reference

Detailed Description

A Sprite that displays a bitmap image.

Definition at line 213 of file ge211_sprites.hxx.

+ Inheritance diagram for Image_sprite:
+ Collaboration diagram for Image_sprite:

Public Member Functions

 Image_sprite (std::string const &filename)
 Constructs an image sprite, given the filename of the image to display. More...
 

Constructor & Destructor Documentation

◆ Image_sprite()

Image_sprite ( std::string const &  filename)
explicit

Constructs an image sprite, given the filename of the image to display.

The image must be saved in the project's Resources/ directory. Many image formats are supported, including JPEG, PNG, GIF, BMP, etc.

Definition at line 197 of file ge211_sprites.cxx.


The documentation for this class was generated from the following files: