Blitter: Add method to draw rectangle at x, y offset

This commit is contained in:
Jonathan G Rennison
2023-01-17 22:18:02 +00:00
parent 84c80977ca
commit aaf9fcebee
10 changed files with 36 additions and 0 deletions

View File

@@ -161,6 +161,17 @@ public:
*/
virtual void DrawRect(void *video, int width, int height, uint8 colour) = 0;
/**
* Make a single horizontal line in a single colour on the video-buffer.
* @param video The destination pointer (video-buffer).
* @param x The x position within video-buffer.
* @param y The y position within video-buffer.
* @param width The length of the line.
* @param height The height of the line.
* @param colour A 8bpp mapping colour.
*/
virtual void DrawRectAt(void *video, int x, int y, int width, int height, uint8 colour) = 0;
/**
* Draw a line with a given colour.
* @param video The destination pointer (video-buffer).