void
DrawingContext::draw_surface(const Surface* surface, const Vector& position,
- int layer, Uint32 drawing_effect)
+ int layer, uint32_t drawing_effect)
{
assert(surface != 0);
void
DrawingContext::draw_surface_part(const Surface* surface, const Vector& source,
- const Vector& size, const Vector& dest, int layer, Uint32 drawing_effect)
+ const Vector& size, const Vector& dest, int layer, uint32_t drawing_effect)
{
assert(surface != 0);
}
void
-DrawingContext::draw_text(Font* font, const std::string& text,
- const Vector& position, int allignment, int layer,
- Uint32 drawing_effect)
+DrawingContext::draw_text(const Font* font, const std::string& text,
+ const Vector& position, FontAlignment alignment, int layer,
+ uint32_t drawing_effect)
{
DrawingRequest request;
TextRequest* textrequest = new TextRequest;
textrequest->font = font;
textrequest->text = text;
- textrequest->allignment = allignment;
+ textrequest->alignment = alignment;
request.request_data = textrequest;
drawingrequests.push_back(request);
}
void
-DrawingContext::draw_center_text(Font* font, const std::string& text,
- const Vector& position, int layer, Uint32 drawing_effect)
+DrawingContext::draw_center_text(const Font* font, const std::string& text,
+ const Vector& position, int layer, uint32_t drawing_effect)
{
-draw_text(font, text, Vector(position.x + screen->w/2, position.y),
- CENTER_ALLIGN, layer, drawing_effect);
+ draw_text(font, text, Vector(position.x + screen->w/2, position.y),
+ CENTER_ALLIGN, layer, drawing_effect);
}
void
{
TextRequest* textrequest = (TextRequest*) request.request_data;
- textrequest->font->draw(textrequest->text, request.pos, textrequest->allignment, request.drawing_effect, request.alpha);
+ textrequest->font->draw(textrequest->text, request.pos,
+ textrequest->alignment, request.drawing_effect, request.alpha);
delete textrequest;
}