src/blitter/base.hpp
changeset 6948 d7d326482813
parent 6947 2e14760f63f9
child 6951 b24e0f108ede
equal deleted inserted replaced
6947:2e14760f63f9 6948:d7d326482813
    95 	 * @param color A 8bpp mapping color.
    95 	 * @param color A 8bpp mapping color.
    96 	 */
    96 	 */
    97 	virtual void DrawRect(void *video, int width, int height, uint8 color) = 0;
    97 	virtual void DrawRect(void *video, int width, int height, uint8 color) = 0;
    98 
    98 
    99 	/**
    99 	/**
       
   100 	 * Draw a line with a given color.
       
   101 	 * @param video The destination pointer (video-buffer).
       
   102 	 * @param x The x coordinate from where the line starts.
       
   103 	 * @param y The y coordinate from where the line starts.
       
   104 	 * @param x2 The x coordinate to where the line goes.
       
   105 	 * @param y2 The y coordinate to where the lines goes.
       
   106 	 * @param screen_width The width of the screen you are drawing in (to avoid buffer-overflows).
       
   107 	 * @param screen_height The height of the screen you are drawing in (to avoid buffer-overflows).
       
   108 	 * @param color A 8bpp mapping color.
       
   109 	 */
       
   110 	virtual void DrawLine(void *video, int x, int y, int x2, int y2, int screen_width, int screen_height, uint8 color) = 0;
       
   111 
       
   112 	/**
   100 	 * Copy from a buffer to the screen.
   113 	 * Copy from a buffer to the screen.
   101 	 * @param video The destionation pointer (video-buffer).
   114 	 * @param video The destionation pointer (video-buffer).
   102 	 * @param src The buffer from which the data will be read.
   115 	 * @param src The buffer from which the data will be read.
   103 	 * @param width The width of the buffer.
   116 	 * @param width The width of the buffer.
   104 	 * @param height The height of the buffer.
   117 	 * @param height The height of the buffer.