-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTypes.h
More file actions
74 lines (57 loc) · 1.4 KB
/
Types.h
File metadata and controls
74 lines (57 loc) · 1.4 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
Engine types
*/
#ifndef RX_ENGINE_TYPES_H
#define RX_ENGINE_TYPES_H
#include "Client.h"
namespace DifferentialArts
{
#ifdef RX_OPENGL_API
#include <gl/gl.h>
#include <gl/glu.h>
//Reduce unsigned variables declaration length
typedef unsigned long ulong;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned char uchar;
typedef unsigned int uint32;
typedef unsigned short uint16;
typedef uint TextureID;
typedef void* RawTextureData;
typedef const char* ConstCharPtr;
enum RX_API DataFormatType
{
BYTE_RX = GL_BYTE,
UBYTE_RX = GL_UNSIGNED_BYTE,
SHORT_RX = GL_SHORT,
USHORT_RX = GL_UNSIGNED_SHORT,
INT_RX = GL_INT,
FLOAT_RX = GL_FLOAT,
_2BYTES_RX = GL_2_BYTES,
_3BYTES_RX = GL_3_BYTES,
_4BYTES_RX = GL_4_BYTES,
DOUBLE_RX = GL_DOUBLE
};
enum RX_API TextureMagFilter
{
LINEAR = GL_LINEAR,
NEAREST = GL_NEAREST
};
enum RX_API TextureMinFilter
{
NEAREST_MIPMAP_NEAREST = GL_NEAREST_MIPMAP_NEAREST,
LINEAR_MIPMAP_NEAREST = GL_LINEAR_MIPMAP_NEAREST,
NEAREST_MIPMAP_LINEAR = GL_NEAREST_MIPMAP_LINEAR,
LINEAR_MIPMAP_LINEAR = GL_LINEAR_MIPMAP_LINEAR,
};
enum RX_API TextureTypes
{
TEXTURE_1D = GL_TEXTURE_1D,
TEXTURE_2D = GL_TEXTURE_2D,
TEXTURE_3D = GL_TEXTURE_3D,
TEXTURE_CUBE = GL_TEXTURE_CUBE_MAP_ARB,
TEXTURE_RECTANGLE = GL_TEXTURE_RECTANGLE_NV
};
#endif
}
#endif