From 6695ddf704e15a6b5b10961669cc97d224618f37 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Thu, 2 May 2013 05:36:39 -0700 Subject: [PATCH] Updated Graphics System (markdown) --- Graphics-System.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Graphics-System.md b/Graphics-System.md index 09d0f4a..412a698 100644 --- a/Graphics-System.md +++ b/Graphics-System.md @@ -9,3 +9,10 @@ The graphics system is designed to be resource-efficient. It's made up of the fo ## Breakdown +`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 upon it's creation. 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 (an example of a sprite sheet is shown below). In order to display this sprite sheet's animation, the width and height of a single "cell" of animation must be passed to the constructor alongside the surface. An "interval" must be specified using `SpriteSheet::SetInterval(int)`, and a "delta" value (time since the last call) must be passed to `SpriteSheet::Update(int)`. + +## Example Sprite Sheet + +![aniflower](http://art.devsader.com/content/contributions/sprites/Elliot_Moosader.png) \ No newline at end of file