#include <shapes.h>
Public Member Functions | |
| void | load () |
| void | animate () |
| void | drawTile (Graphics::ManagedSurface &dest, int x, int y, int index) const |
The map tile graphics: 80 tiles of 16x16 pixels, from SHAPES.ULT, which has 2 bits per pixel with each tile holding its even scanlines first and then its odd ones, or from the upgrade's EGA or VGA files, depending on the renderer. They're kept a byte per pixel. The animated tiles are changed in place as the animation ticks.
| void Ultima::Ultima3::Gfx::Shapes::load | ( | ) |
Loads the graphics, restarting the animation
| void Ultima::Ultima3::Gfx::Shapes::animate | ( | ) |
Advances the tile animations by one tick
| void Ultima::Ultima3::Gfx::Shapes::drawTile | ( | Graphics::ManagedSurface & | dest, |
| int | x, | ||
| int | y, | ||
| int | index | ||
| ) | const |
Draws a tile, overwriting all 256 pixels. The caller is responsible for flagging the changed area as dirty