ScummVM API documentation
Xeen::SpriteDrawer Class Reference

#include <sprites.h>

Inheritance diagram for Xeen::SpriteDrawer:
Xeen::SpriteDrawer1 Xeen::SpriteDrawer2 Xeen::SpriteDrawer3 Xeen::SpriteDrawer4 Xeen::SpriteDrawer5 Xeen::SpriteDrawer6

Public Member Functions

 SpriteDrawer (byte *data, size_t filesize)
 
virtual ~SpriteDrawer ()
 
void draw (XSurface &dest, uint16 offset, const Common::Point &pt, const Common::Rect &clipRect, uint flags, int scale)
 

Protected Member Functions

void rcr (uint16 &val, bool &cf)
 
virtual void drawPixel (byte *dest, byte pixel)
 

Protected Attributes

byte * _destTop
 
byte * _destBottom
 
byte * _destLeft
 
byte * _destRight
 
int _pitch
 

Detailed Description

Basic sprite drawer

Constructor & Destructor Documentation

◆ SpriteDrawer()

Xeen::SpriteDrawer::SpriteDrawer ( byte *  data,
size_t  filesize 
)
inline

Constructor

◆ ~SpriteDrawer()

virtual Xeen::SpriteDrawer::~SpriteDrawer ( )
inlinevirtual

Destructor

Member Function Documentation

◆ rcr()

void Xeen::SpriteDrawer::rcr ( uint16 &  val,
bool &  cf 
)
protected

Roll carry right opcode emulation

◆ drawPixel()

virtual void Xeen::SpriteDrawer::drawPixel ( byte *  dest,
byte  pixel 
)
protectedvirtual

◆ draw()

void Xeen::SpriteDrawer::draw ( XSurface dest,
uint16  offset,
const Common::Point pt,
const Common::Rect clipRect,
uint  flags,
int  scale 
)

Draw a sprite frame based on a passed offset into the data stream


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