aboutsummaryrefslogtreecommitdiff
path: root/src/parsec/include/e_draw.h
blob: 6fdd3244437c40c18ad02a36d2173044d58de72b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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_