-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathr_data.h
41 lines (31 loc) · 855 Bytes
/
r_data.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
#ifndef __R_DATA__
#define __R_DATA__
#include "r_defs.h"
#include "r_state.h"
#include "r_patch.h"
typedef struct
{
int originx, originy;
int patch;
} texpatch_t;
typedef struct
{
char name[8];
int next, index;
unsigned widthmask;
short width, height;
short patchcount;
texpatch_t patches[1];
} texture_t;
extern int numtextures;
extern texture_t **textures;
const byte *R_GetTextureColumn(const rpatch_t *texpatch, int col);
void R_InitData(void);
int R_FlatNumForName(const char *name);
int R_TextureNumForName(const char *name);
int R_SafeTextureNumForName(const char *name, int snum);
int R_CheckTextureNumForName(const char *name);
int R_ColormapNumForName(const char *name);
const lighttable_t* R_ColourMap(int lightlevel, int spryscale);
void R_SetPatchNum(patchnum_t *patchnum, const char *name);
#endif