- [NEW] varies versions de draw::draw()
This commit is contained in:
@@ -351,6 +351,25 @@ namespace draw
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Pinta tota la superficie "source" en la superficie "destination", posició (x,y).
|
||||||
|
void draw(const int x, const int y)
|
||||||
|
{
|
||||||
|
draw(x, y, source->w, source->h, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Pinta tota la superficie "source" en la superficie "destination", posició (0,0)
|
||||||
|
void draw()
|
||||||
|
{
|
||||||
|
draw(0,0,source->w, source->h, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Carrega la superficie especificada en "source" i la pinta tota en la superficie "destination", posició (0,0).
|
||||||
|
void draw(draw::surface* surf)
|
||||||
|
{
|
||||||
|
setSource(surf);
|
||||||
|
draw();
|
||||||
|
}
|
||||||
|
|
||||||
void swapcol(const Uint8 c1, const Uint8 c2)
|
void swapcol(const Uint8 c1, const Uint8 c2)
|
||||||
{
|
{
|
||||||
color_indices[c1] = c2;
|
color_indices[c1] = c2;
|
||||||
|
|||||||
@@ -100,6 +100,17 @@ namespace draw
|
|||||||
/// @param flip si s'ha de fer flip en hortizontal o vertical (o ambdos)
|
/// @param flip si s'ha de fer flip en hortizontal o vertical (o ambdos)
|
||||||
void draw(const int dx, const int dy, const int w, const int h, const int sx, const int sy, const int flip = DRAW_FLIP_NONE);
|
void draw(const int dx, const int dy, const int w, const int h, const int sx, const int sy, const int flip = DRAW_FLIP_NONE);
|
||||||
|
|
||||||
|
/// @brief Pinta tota la superficie "source" en la superficie "destination", posició (x,y).
|
||||||
|
/// @param x coordenada x de la destinació
|
||||||
|
/// @param y coordenada y de la destinació
|
||||||
|
void draw(const int x, const int y);
|
||||||
|
|
||||||
|
/// @brief Pinta tota la superficie "source" en la superficie "destination", posició (0,0).
|
||||||
|
void draw();
|
||||||
|
|
||||||
|
/// @brief Carrega la superficie especificada en "source" i la pinta tota en la superficie "destination", posició (0,0).
|
||||||
|
void draw(draw::surface* surf);
|
||||||
|
|
||||||
void swapcol(const uint8_t c1, const uint8_t c2);
|
void swapcol(const uint8_t c1, const uint8_t c2);
|
||||||
void restorecol(const uint8_t c);
|
void restorecol(const uint8_t c);
|
||||||
void color(const uint8_t col);
|
void color(const uint8_t col);
|
||||||
|
|||||||
Reference in New Issue
Block a user