- [NEW] draw::putPixel()
This commit is contained in:
@@ -315,6 +315,11 @@ namespace draw
|
||||
return 0;
|
||||
}
|
||||
|
||||
void putPixel(const int x, const int y, const uint8_t color)
|
||||
{
|
||||
pset(screen, x, y, color);
|
||||
}
|
||||
|
||||
// Pinta un troç de la superficie "source" en la superficie "destination".
|
||||
void draw(const int dx, const int dy, const int w, const int h, const int sx, const int sy, const int flip)
|
||||
{
|
||||
|
||||
@@ -94,6 +94,8 @@ namespace draw
|
||||
/// @param color color a usar com a transparent
|
||||
void setTrans(const uint8_t color);
|
||||
|
||||
void putPixel(const int x, const int y, const uint8_t color);
|
||||
|
||||
/// @brief Pinta un troç de la superficie "source" en la superficie "destination".
|
||||
/// @param dx coordenada x de la destinació
|
||||
/// @param dy coordenada y de la destinació
|
||||
|
||||
Reference in New Issue
Block a user