-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathOGLTables.h
53 lines (43 loc) · 1.06 KB
/
OGLTables.h
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
#ifndef __OGL_TABLES_H__
#define __OGL_TABLES_H__
#include "GlOgl.h"
#include "GLRender.h"
typedef struct
{
float h;
float w;
} OGLAspect;
typedef struct
{
int width;
int height;
int numPixels;
} OGLTexInfo;
typedef struct
{
bool local;
bool other;
ALPHAFACTORFUNCPROC func;
} OGLAlphaTable;
typedef struct
{
bool local;
bool other;
bool alocal;
bool aother;
COLORFACTORFUNCPROC factorfunc;
COLORFUNCTIONPROC func;
} OGLColorTable;
// OGLTextureTables.cpp
extern OGLAspect texAspects[ 7 ];
extern OGLTexInfo texInfo[ 7 ][ 9 ];
extern FxU32 nSquareLod[ 2 ][ 7 ][ 9 ];
extern FxU32 nSquareTexLod[ 2 ][ 7 ][ 9 ][ 9 ];
// OGLColorAlphaTables.cpp
extern OGLAlphaTable alphaCombineTable[ 14 ][ 17 ];
extern OGLColorTable colorCombineTable[ 14 ][ 17 ];
// OGLFogTables.cpp
extern FxU32 intStartEnd[ GR_FOG_TABLE_SIZE + 1 ];
extern FxU32 intEndMinusStart[ GR_FOG_TABLE_SIZE ];
extern float tableIndexToW[ GR_FOG_TABLE_SIZE ];
#endif