Commit | Line | Data |
---|---|---|
ef79bbde P |
1 | /***************************************************************************\r |
2 | soft.h - description\r | |
3 | -------------------\r | |
4 | begin : Sun Oct 28 2001\r | |
5 | copyright : (C) 2001 by Pete Bernert\r | |
6 | web : www.pbernert.com \r | |
7 | ***************************************************************************/\r | |
8 | \r | |
9 | /***************************************************************************\r | |
10 | * *\r | |
11 | * This program is free software; you can redistribute it and/or modify *\r | |
12 | * it under the terms of the GNU General Public License as published by *\r | |
13 | * the Free Software Foundation; either version 2 of the License, or *\r | |
14 | * (at your option) any later version. See also the license.txt file for *\r | |
15 | * additional informations. *\r | |
16 | * *\r | |
17 | ***************************************************************************/\r | |
18 | \r | |
19 | //*************************************************************************// \r | |
20 | // History of changes:\r | |
21 | //\r | |
22 | // 2001/10/28 - Pete \r | |
23 | // - generic cleanup for the Peops release\r | |
24 | //\r | |
25 | //*************************************************************************// \r | |
26 | \r | |
27 | #ifndef _GPU_SOFT_H_\r | |
28 | #define _GPU_SOFT_H_\r | |
29 | \r | |
30 | // internally used defines\r | |
31 | \r | |
32 | #define RED(x) (x & 0xff)\r | |
33 | #define BLUE(x) ((x>>16) & 0xff)\r | |
34 | #define GREEN(x) ((x>>8) & 0xff)\r | |
35 | #define COLOR(x) (x & 0xffffff)\r | |
36 | \r | |
37 | ///////////////////////////////////////////////////////////////////////\r | |
38 | \r | |
39 | void offsetPSXLine(void);\r | |
40 | void offsetPSX2(void);\r | |
41 | void offsetPSX3(void);\r | |
42 | void offsetPSX4(void);\r | |
43 | \r | |
44 | void FillSoftwareAreaTrans(short x0, short y0, short x1, short y1, unsigned short col);\r | |
45 | void FillSoftwareArea(short x0, short y0, short x1, short y1, unsigned short col);\r | |
46 | void drawPoly3G(int rgb1, int rgb2, int rgb3);\r | |
47 | void drawPoly4G(int rgb1, int rgb2, int rgb3, int rgb4);\r | |
48 | void drawPoly3F(int rgb);\r | |
49 | void drawPoly4F(int rgb);\r | |
50 | void drawPoly4FT(unsigned char *baseAddr);\r | |
51 | void drawPoly4GT(unsigned char *baseAddr);\r | |
52 | void drawPoly3FT(unsigned char *baseAddr);\r | |
53 | void drawPoly3GT(unsigned char *baseAddr);\r | |
54 | void DrawSoftwareSprite(unsigned char *baseAddr, short w, short h, int tx, int ty);\r | |
55 | void DrawSoftwareSpriteTWin(unsigned char *baseAddr, int w, int h);\r | |
56 | void DrawSoftwareSpriteMirror(unsigned char *baseAddr, int w, int h);\r | |
57 | \r | |
58 | #endif // _GPU_SOFT_H_\r |