2017-02-13 16:32:52 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "v_video.h"
|
|
|
|
#include "r_data/colormaps.h"
|
|
|
|
|
|
|
|
class SWCanvas
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static void DrawTexture(DCanvas *canvas, FTexture *img, DrawParms &parms);
|
|
|
|
static void FillSimplePoly(DCanvas *canvas, FTexture *tex, FVector2 *points, int npoints,
|
|
|
|
double originx, double originy, double scalex, double scaley, DAngle rotation,
|
2017-03-15 15:47:42 +00:00
|
|
|
const FColormap &colormap, PalEntry flatcolor, int lightlevel, int bottomclip);
|
2017-03-09 18:31:45 +00:00
|
|
|
static void DrawLine(DCanvas *canvas, int x0, int y0, int x1, int y1, int palColor, uint32_t realcolor);
|
|
|
|
static void DrawPixel(DCanvas *canvas, int x, int y, int palColor, uint32_t realcolor);
|
|
|
|
static void Clear(DCanvas *canvas, int left, int top, int right, int bottom, int palcolor, uint32_t color);
|
2017-02-13 16:32:52 +00:00
|
|
|
static void Dim(DCanvas *canvas, PalEntry color, float damount, int x1, int y1, int w, int h);
|
|
|
|
|
|
|
|
private:
|
|
|
|
static void PUTTRANSDOT(DCanvas *canvas, int xx, int yy, int basecolor, int level);
|
2017-03-09 18:31:45 +00:00
|
|
|
static int PalFromRGB(uint32_t rgb);
|
2017-02-13 16:32:52 +00:00
|
|
|
};
|