UGDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
ugdk::graphic::Spritesheet Class Reference

#include <spritesheet.h>

List of all members.

Public Member Functions

 Spritesheet (const SpritesheetData &data)
 Converts the given FixedSpritesheetData into an optimized FixedSpritesheet.
virtual ~Spritesheet ()
size_t frame_count () const
const Vector2Dframe_size (size_t frame_number) const
void Draw (int frame_number, const Vector2D &hotspot) const

Constructor & Destructor Documentation

Converts the given FixedSpritesheetData into an optimized FixedSpritesheet.


Member Function Documentation

void ugdk::graphic::Spritesheet::Draw ( int  frame_number,
const Vector2D hotspot 
) const

Draws at position, a draw_size square with the given frame_number modified by mirror and both the image and given color and alpha.

size_t ugdk::graphic::Spritesheet::frame_count ( ) const [inline]
const Vector2D & ugdk::graphic::Spritesheet::frame_size ( size_t  frame_number) const

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines