mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
89 lines
2.6 KiB
Objective-C
89 lines
2.6 KiB
Objective-C
#import <OpenGLES/ES1/gl.h>
|
|
#import <OpenGLES/ES2/gl.h>
|
|
|
|
typedef enum {
|
|
DataTypeUnsignedByte = GL_UNSIGNED_BYTE,
|
|
DataTypeByte = GL_BYTE,
|
|
DataTypeUnsignedShort = GL_UNSIGNED_SHORT,
|
|
DataTypeShort = GL_SHORT,
|
|
DataTypeFixed = GL_FIXED,
|
|
DataTypeFloat = GL_FLOAT
|
|
} DataType;
|
|
|
|
typedef enum {
|
|
CompareFunctionAlways = GL_ALWAYS,
|
|
CompareFunctionEqual = GL_EQUAL,
|
|
CompareFunctionGreater = GL_GREATER,
|
|
CompareFunctionGreaterEqual = GL_GEQUAL,
|
|
CompareFunctionLess = GL_LESS,
|
|
CompareFunctionLessEqual = GL_LEQUAL,
|
|
CompareFunctionNever = GL_NEVER,
|
|
CompareFunctionNotEqual = GL_NOTEQUAL
|
|
} CompareFunction;
|
|
|
|
typedef enum {
|
|
ClearOptionsDepthBuffer = GL_DEPTH_BUFFER_BIT,
|
|
ClearOptionsStencil = GL_STENCIL_BUFFER_BIT,
|
|
ClearOptionsTarget = GL_COLOR_BUFFER_BIT
|
|
} ClearOptions;
|
|
|
|
typedef enum {
|
|
FogModeNone = 0,
|
|
FogModeLinear = GL_LINEAR,
|
|
FogModeExponent = GL_EXP,
|
|
FogModeExponentSquared = GL_EXP2
|
|
} FogMode;
|
|
|
|
typedef enum {
|
|
IndexElementSizeEightBits = 1,
|
|
IndexElementSizeSixteenBits = 2,
|
|
} IndexElementSize;
|
|
|
|
typedef enum {
|
|
ResourceUsageStatic = GL_STATIC_DRAW,
|
|
ResourceUsageDynamic = GL_DYNAMIC_DRAW
|
|
} ResourceUsage;
|
|
|
|
typedef enum {
|
|
ResourceTypeTexture2D = GL_TEXTURE_2D,
|
|
ResourceTypeIndexBuffer = GL_ELEMENT_ARRAY_BUFFER,
|
|
ResourceTypeVertexBuffer = GL_ARRAY_BUFFER
|
|
} ResourceType;
|
|
|
|
typedef enum {
|
|
VertexElementFormatSingle,
|
|
VertexElementFormatVector2,
|
|
VertexElementFormatVector3,
|
|
VertexElementFormatVector4,
|
|
VertexElementFormatHalfVector2,
|
|
VertexElementFormatHalfVector4,
|
|
VertexElementFormatRgba64,
|
|
VertexElementFormatColor,
|
|
VertexElementFormatRgba32,
|
|
VertexElementFormatRg32,
|
|
VertexElementFormatNormalizedShort2,
|
|
VertexElementFormatNormalizedShort4,
|
|
VertexElementFormatNormalized101010,
|
|
VertexElementFormatShort2,
|
|
VertexElementFormatShort4,
|
|
VertexElementFormatByte4,
|
|
VertexElementFormatUInt101010,
|
|
VertexElementFormatUnused
|
|
} VertexElementFormat;
|
|
|
|
typedef enum {
|
|
VertexElementUsagePosition = GL_VERTEX_ARRAY,
|
|
VertexElementUsageNormal = GL_NORMAL_ARRAY,
|
|
VertexElementUsageColor = GL_COLOR_ARRAY,
|
|
VertexElementUsageTextureCoordinate = GL_TEXTURE_COORD_ARRAY,
|
|
VertexElementUsagePointSize = GL_POINT_SIZE_ARRAY_OES
|
|
} VertexElementUsage;
|
|
|
|
typedef enum {
|
|
PrimitiveTypePointList = GL_POINTS,
|
|
PrimitiveTypeLineList = GL_LINES,
|
|
PrimitiveTypeLineStrip = GL_LINE_STRIP,
|
|
PrimitiveTypeTriangleList = GL_TRIANGLES,
|
|
PrimitiveTypeTriangleStrip = GL_TRIANGLE_STRIP,
|
|
PrimitiveTypeTriangleFan = GL_TRIANGLE_FAN
|
|
} PrimitiveType; |