From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- src/parsec/include/e_draw.h | 55 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/parsec/include/e_draw.h (limited to 'src/parsec/include/e_draw.h') diff --git a/src/parsec/include/e_draw.h b/src/parsec/include/e_draw.h new file mode 100644 index 0000000..6fdd324 --- /dev/null +++ b/src/parsec/include/e_draw.h @@ -0,0 +1,55 @@ +/* + * PARSEC HEADER: e_draw.h + */ + +#ifndef _E_DRAW_H_ +#define _E_DRAW_H_ + + +// colored screen rectangle info + +struct colscreenrect_s { + + int x; + int y; + int w; + int h; + + dword itertype; + colrgba_s color; +}; + + +// textured screen rectangle info + +struct texscreenrect_s { + + int x; + int y; + int w; + int h; + + int scaled_w; + int scaled_h; + + int texofsx; + int texofsy; + + int alpha; + + dword itertype; + TextureMap* texmap; +}; + + +// external functions + +void DRAW_PanelDecorations( sgrid_t putx, sgrid_t puty, int width, int height ); +void DRAW_ClippedTrRect( sgrid_t putx, sgrid_t puty, int width, int height, dword brightx ); +void DRAW_ColoredScreenRect( colscreenrect_s *rect ); +void DRAW_TexturedScreenRect( texscreenrect_s *rect, Rectangle2 *cliprect ); + + +#endif // _E_DRAW_H_ + + -- cgit v1.2.3