source: golgotha/src/maxtool/sdk_inc/driver.h @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1#if !defined(_DRIVER_H_)
2
3#define _DRIVER_H_
4
5// configuration values based on GW_ flags in gfx.h!
6#define DRV_WIDE_LINES          0x0400
7#define DRV_STIPPLE                     0x0800
8#define DRV_INVIS_EDGES         0x4000
9
10// color types
11#define DRV_LINE_COLOR          0
12#define DRV_FILL_COLOR          1
13#define DRV_TEXT_COLOR          2
14#define DRV_CLEAR_COLOR         3
15
16// connect types
17#define DRV_EDGE_SKIP           0
18#define DRV_EDGE_VIS            1
19#define DRV_EDGE_INVIS          2
20
21// export types
22#define DRV_EXP_BITMAP          0
23#define DRV_EXP_METAFILE        1
24
25// buffer types
26#define DRV_F_BUFFER            0
27#define DRV_Z_BUFFER            1
28
29// maximum vertices in a line or polygon
30#define DRV_MAX_VERTS           64
31
32// texture type names
33#define TEX_MAX_NAME            32
34
35#ifndef WM_SHUTDOWN
36#define WM_SHUTDOWN             (WM_USER+2001)
37#endif
38                         
39typedef struct {
40        int                     size;
41        TCHAR           desc[TEX_MAX_NAME];
42} TexData;
43
44typedef void (*TexLookup)(TexData *td, float *rgb,
45                                float *uvw, float *horzDelta, float *vertDelta, float *clr);
46
47
48#endif // _DRIVER_H_
Note: See TracBrowser for help on using the repository browser.