ScummVM API documentation
Ultima::Ultima3::Gfx::Shapes Class Reference

#include <shapes.h>

Public Member Functions

void load ()
 
void animate ()
 
void drawTile (Graphics::ManagedSurface &dest, int x, int y, int index) const
 

Detailed Description

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.

Member Function Documentation

◆ load()

void Ultima::Ultima3::Gfx::Shapes::load ( )

Loads the graphics, restarting the animation

◆ animate()

void Ultima::Ultima3::Gfx::Shapes::animate ( )

Advances the tile animations by one tick

◆ drawTile()

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


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