58 ALLEGRO_TRANSFORM *pTransformation = NULL);
74 void DrawString(
const Font *pFont, std::string *text,
const Vector2 position,
76 const float drawDepth = 0);
93 const float drawDepth = 0);
111 const float drawDepth = 0);
129 float drawDepth = 0);
158 ALLEGRO_BITMAP *pBitmap;
168 bool operator<(
const Drawable& other)
const 170 return (depth < other.depth);
174 struct CompareBackToFront
176 bool operator()(
const Drawable* l,
const Drawable* r) {
return (*l < *r); }
179 struct CompareFrontToBack
181 bool operator()(
const Drawable* l,
const Drawable* r) {
return (*r < *l); }
184 std::vector<Drawable *> m_drawables;
185 std::vector<Drawable *> m_inactiveDrawables;
186 std::vector<Drawable *>::iterator m_it;
188 unsigned short m_lastID;
194 ALLEGRO_TRANSFORM *m_pTransformation;
198 void DrawBitmap(Drawable *drawable);
199 void DrawFont(Drawable *drawable);
BlendState
Defines the way in which textures blending will be calculated.
Definition: SpriteBatch.h:37
Represents a 2D grid of texels.
Definition: Texture.h:17
static const Color White
White.
Definition: Color.h:198
Represents a font or true-type font.
Definition: Font.h:17
Represents a four-component color using red, green, blue, and alpha data.
Definition: Color.h:17
static const Vector2 Zero
A vector with both of its components set to zero.
Definition: Vector2.h:29
TextAlign
Defines the states for text alignment.
Definition: SpriteBatch.h:17
Defines a vector with 2 components (x and y). This is additional information...
Definition: Vector2.h:18
Represents timing and framing values for texture animations.
Definition: Animation.h:17
Defines a rectangular region defined by a point, height, width.
Definition: Region.h:17
Enables a group of sprites to be drawn using the same settings.
Definition: SpriteBatch.h:44
SpriteSortMode
Defines the methods for sorting sprites before rendering.
Definition: SpriteBatch.h:27
static const Vector2 One
A vector with both of its components set to one.
Definition: Vector2.h:30
Katana Engine is a library of classes, interfaces, and value types that provides a foundation for dev...
Definition: Animation.cpp:14