aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxgpu/setdefdrawenv.c
blob: bcd93ca8065c61ac738daffa22820a47c61cb961 (plain) (blame)
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
#include <psxgpu.h>

DRAWENV *SetDefDrawEnv(DRAWENV *draw, int x, int y, int w, int h) {

	draw->clip.x = x;
	draw->clip.y = y;
	draw->clip.w = w;
	draw->clip.h = h;

	draw->ofs[0] = 0;
	draw->ofs[1] = 0;

	draw->tw.x = 0;
	draw->tw.y = 0;
	draw->tw.w = 0;
	draw->tw.h = 0;

	draw->tpage = 0x0a;
	draw->dtd = 1;
	draw->dfe = 0;
	draw->isbg = 0;
	setRGB0( draw, 0, 0, 0 );

	return draw;

}