Imported update to graphics

Kayne Ruse
2013-06-06 02:58:09 +10:00
parent b5716d8b73
commit b7b2b79f9a
+2 -2
@@ -15,5 +15,5 @@ The graphics systems are designed to be resource-efficient. They're made up of t
`surface_manager.hpp` and `surface_manager.cpp` hold the `SurfaceManager` class, which loads bitmap files into memory, distributes them throughout the program, and frees them when the resources are no longer needed.
`image.hpp` and `image.cpp` hold the `Image` class, which acts as a simple static image on the screen. This class requires that the image file is loaded beforehand, and passed to the `Image` object. It also handles the clipping rectangle and drawing to a specific location.
`sprite_sheet.hpp` and `sprite_sheet.cpp` hold the `SpriteSheet` class, which inherits from `Image`. This class is a specialized image that displays an animated sprite sheet to the screen. In order to display this sprite sheet's animation, the width and height of a single "cell" of animation must be passed to the object alongside the surface. An "interval" must be specified using `SpriteSheet::SetInterval(int)`, and the delta time (time since the last call) must be passed to `SpriteSheet::Update(int)`.
`raster_font.hpp` and `raster_font.cpp` hold the `RasterFont` class, which inherits from `Image`. This class is used to draw text to the screen, using a specialized rasterized font surface.
`sprite_sheet.hpp` and `sprite_sheet.cpp` hold the `SpriteSheet` class, which which utilizes `Image`. This class is a specialized image that displays an animated sprite sheet on the screen. In order to display this sprite sheet's animation, the width and height of a single "cell" of animation must be passed to the object alongside the surface. An "interval" must be specified using `SpriteSheet::SetInterval(double)`, and the delta time (time since the last call) must be passed to `SpriteSheet::Update(double)`.
`raster_font.hpp` and `raster_font.cpp` hold the `RasterFont` class, which utilizes `Image`. This class is used to draw text to the screen, using a specialized rasterized font surface.