mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 11:06:44 +01:00
DrawCenteredTintedScaled
This commit is contained in:
parent
34a36c2038
commit
396e07a0ce
2 changed files with 6 additions and 1 deletions
|
@ -122,7 +122,11 @@ SYMBOL_EXPORT void DrawCentered(ALLEGRO_BITMAP* bitmap, int x, int y, int flags)
|
|||
}
|
||||
|
||||
SYMBOL_EXPORT void DrawCenteredScaled(ALLEGRO_BITMAP* bitmap, int x, int y, double sx, double sy, int flags) {
|
||||
al_draw_scaled_rotated_bitmap(bitmap, al_get_bitmap_width(bitmap) / 2.0, al_get_bitmap_height(bitmap) / 2.0,
|
||||
DrawCenteredTintedScaled(bitmap, al_map_rgb(255, 255, 255), x, y, sx, sy, flags);
|
||||
}
|
||||
|
||||
SYMBOL_EXPORT void DrawCenteredTintedScaled(ALLEGRO_BITMAP* bitmap, ALLEGRO_COLOR tint, int x, int y, double sx, double sy, int flags) {
|
||||
al_draw_tinted_scaled_rotated_bitmap(bitmap, tint, al_get_bitmap_width(bitmap) / 2.0, al_get_bitmap_height(bitmap) / 2.0,
|
||||
x, y, sx, sy, 0, flags);
|
||||
}
|
||||
|
||||
|
|
|
@ -54,6 +54,7 @@ int DrawWrappedTextWithShadow(ALLEGRO_FONT* font, ALLEGRO_COLOR color, float x,
|
|||
|
||||
void DrawCentered(ALLEGRO_BITMAP* bitmap, int x, int y, int flags);
|
||||
void DrawCenteredScaled(ALLEGRO_BITMAP* bitmap, int x, int y, double sx, double sy, int flags);
|
||||
void DrawCenteredTintedScaled(ALLEGRO_BITMAP* bitmap, ALLEGRO_COLOR tint, int x, int y, double sx, double sy, int flags);
|
||||
|
||||
double DotProduct(const double v[], const double u[], int n);
|
||||
double VectorLength(double x, double y, double z);
|
||||
|
|
Loading…
Reference in a new issue