(svn r10203) -Codechange: more moving things to blitter-layer: DrawLine
This commit is contained in:
@@ -96,6 +96,19 @@ public:
|
||||
*/
|
||||
virtual void DrawRect(void *video, int width, int height, uint8 color) = 0;
|
||||
|
||||
/**
|
||||
* Draw a line with a given color.
|
||||
* @param video The destination pointer (video-buffer).
|
||||
* @param x The x coordinate from where the line starts.
|
||||
* @param y The y coordinate from where the line starts.
|
||||
* @param x2 The x coordinate to where the line goes.
|
||||
* @param y2 The y coordinate to where the lines goes.
|
||||
* @param screen_width The width of the screen you are drawing in (to avoid buffer-overflows).
|
||||
* @param screen_height The height of the screen you are drawing in (to avoid buffer-overflows).
|
||||
* @param color A 8bpp mapping color.
|
||||
*/
|
||||
virtual void DrawLine(void *video, int x, int y, int x2, int y2, int screen_width, int screen_height, uint8 color) = 0;
|
||||
|
||||
/**
|
||||
* Copy from a buffer to the screen.
|
||||
* @param video The destionation pointer (video-buffer).
|
||||
|
Reference in New Issue
Block a user