forked from Wolf3s/glDoom
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gldefs.h
41 lines (35 loc) · 940 Bytes
/
gldefs.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
// GLDefs.h
#include "doomtype.h"
#ifndef GLDEFS
#define GLDEFS
typedef struct
{
unsigned char r;
unsigned char g;
unsigned char b;
unsigned char a;
}GLPixelRGBA;
typedef struct
{
int TexName;
float Width; // Actual texture width
float Height; // Actual texture height
float XDisp; // Texture coordinate displacement from right side
float YDisp; // Texture coordinate displacement from bottom
float LeftOff;
float TopOff;
float glWidth;
float glHeight;
int Translucent;
int Intensity;
dboolean Permanent; // Is this sprite just for a level?
}GLTexData;
typedef struct
{
GLPixelRGBA *Pixels; // Array of pixels
float Width; // Actual texture width
float Height; // Actual texture height
float LeftOff; // Left offset of pixels
float TopOff; // Top offset of pixels
}GLPixelmap;
#endif