2016-12-25 12:12:51 +00:00
|
|
|
#pragma once
|
|
|
|
#include "Parameter.h"
|
|
|
|
|
|
|
|
namespace graphics {
|
|
|
|
|
2017-01-28 09:52:09 +00:00
|
|
|
namespace colorFormat {
|
2018-03-26 20:00:25 +00:00
|
|
|
extern ColorFormatParam RED_GREEN_BLUE; //Windows has a macro called RGB
|
2017-01-28 09:52:09 +00:00
|
|
|
extern ColorFormatParam RGBA;
|
|
|
|
extern ColorFormatParam RG;
|
|
|
|
extern ColorFormatParam RED;
|
|
|
|
extern ColorFormatParam DEPTH;
|
2017-02-05 06:47:36 +00:00
|
|
|
extern ColorFormatParam LUMINANCE;
|
2016-12-25 12:12:51 +00:00
|
|
|
}
|
|
|
|
|
2017-01-28 09:52:09 +00:00
|
|
|
namespace internalcolorFormat {
|
2018-03-28 05:28:05 +00:00
|
|
|
extern InternalColorFormatParam NOCOLOR;
|
2017-01-28 09:52:09 +00:00
|
|
|
extern InternalColorFormatParam RGB8;
|
2017-02-05 12:58:33 +00:00
|
|
|
extern InternalColorFormatParam RGBA8;
|
2017-01-28 09:52:09 +00:00
|
|
|
extern InternalColorFormatParam RGBA4;
|
|
|
|
extern InternalColorFormatParam RGB5_A1;
|
|
|
|
extern InternalColorFormatParam RG;
|
2018-04-15 01:25:34 +00:00
|
|
|
extern InternalColorFormatParam R16F;
|
2017-01-28 09:52:09 +00:00
|
|
|
extern InternalColorFormatParam DEPTH;
|
|
|
|
extern InternalColorFormatParam RG32F;
|
2017-02-05 06:47:36 +00:00
|
|
|
extern InternalColorFormatParam LUMINANCE;
|
2018-03-26 20:00:25 +00:00
|
|
|
extern InternalColorFormatParam COLOR_INDEX8;
|
2016-12-25 12:12:51 +00:00
|
|
|
}
|
|
|
|
|
2017-01-01 14:59:54 +00:00
|
|
|
namespace datatype {
|
2017-01-28 09:52:09 +00:00
|
|
|
extern DatatypeParam UNSIGNED_BYTE;
|
|
|
|
extern DatatypeParam UNSIGNED_SHORT;
|
|
|
|
extern DatatypeParam UNSIGNED_INT;
|
|
|
|
extern DatatypeParam FLOAT;
|
2018-03-26 20:00:25 +00:00
|
|
|
extern DatatypeParam UNSIGNED_SHORT_5_6_5;
|
2017-01-28 09:52:09 +00:00
|
|
|
extern DatatypeParam UNSIGNED_SHORT_5_5_5_1;
|
|
|
|
extern DatatypeParam UNSIGNED_SHORT_4_4_4_4;
|
2016-12-25 12:12:51 +00:00
|
|
|
}
|
|
|
|
|
2017-01-28 09:52:09 +00:00
|
|
|
namespace textureTarget {
|
|
|
|
extern TextureTargetParam TEXTURE_2D;
|
|
|
|
extern TextureTargetParam TEXTURE_2D_MULTISAMPLE;
|
|
|
|
extern TextureTargetParam RENDERBUFFER;
|
2019-10-04 18:22:19 +00:00
|
|
|
extern TextureTargetParam TEXTURE_EXTERNAL;
|
2016-12-27 16:26:36 +00:00
|
|
|
}
|
|
|
|
|
2017-01-02 14:00:49 +00:00
|
|
|
namespace bufferTarget {
|
2017-01-28 09:52:09 +00:00
|
|
|
extern BufferTargetParam FRAMEBUFFER;
|
|
|
|
extern BufferTargetParam DRAW_FRAMEBUFFER;
|
|
|
|
extern BufferTargetParam READ_FRAMEBUFFER;
|
2017-01-02 14:00:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace bufferAttachment {
|
2017-01-28 09:52:09 +00:00
|
|
|
extern BufferAttachmentParam COLOR_ATTACHMENT0;
|
2018-04-12 15:15:45 +00:00
|
|
|
extern BufferAttachmentParam COLOR_ATTACHMENT1;
|
|
|
|
extern BufferAttachmentParam COLOR_ATTACHMENT2;
|
2017-01-28 09:52:09 +00:00
|
|
|
extern BufferAttachmentParam DEPTH_ATTACHMENT;
|
2017-01-02 14:00:49 +00:00
|
|
|
}
|
|
|
|
|
2016-12-27 16:26:36 +00:00
|
|
|
namespace enable {
|
2017-01-28 09:52:09 +00:00
|
|
|
extern EnableParam BLEND;
|
|
|
|
extern EnableParam CULL_FACE;
|
|
|
|
extern EnableParam DEPTH_TEST;
|
|
|
|
extern EnableParam DEPTH_CLAMP;
|
|
|
|
extern EnableParam CLIP_DISTANCE0;
|
|
|
|
extern EnableParam DITHER;
|
|
|
|
extern EnableParam POLYGON_OFFSET_FILL;
|
|
|
|
extern EnableParam SCISSOR_TEST;
|
2016-12-27 16:26:36 +00:00
|
|
|
}
|
2017-01-01 14:59:54 +00:00
|
|
|
|
2017-01-06 08:19:35 +00:00
|
|
|
namespace textureIndices {
|
2017-01-28 09:52:09 +00:00
|
|
|
extern TextureUnitParam Tex[2];
|
|
|
|
extern TextureUnitParam NoiseTex;
|
|
|
|
extern TextureUnitParam DepthTex;
|
|
|
|
extern TextureUnitParam ZLUTTex;
|
|
|
|
extern TextureUnitParam PaletteTex;
|
|
|
|
extern TextureUnitParam MSTex[2];
|
2017-01-06 08:19:35 +00:00
|
|
|
}
|
|
|
|
|
2017-01-07 09:40:50 +00:00
|
|
|
namespace textureImageUnits {
|
2017-02-15 07:24:37 +00:00
|
|
|
extern ImageUnitParam DepthZ;
|
|
|
|
extern ImageUnitParam DepthDeltaZ;
|
2017-01-07 09:40:50 +00:00
|
|
|
}
|
|
|
|
|
2017-01-21 11:44:56 +00:00
|
|
|
namespace textureImageAccessMode {
|
2017-01-28 09:52:09 +00:00
|
|
|
extern ImageAccessModeParam READ_ONLY;
|
|
|
|
extern ImageAccessModeParam WRITE_ONLY;
|
|
|
|
extern ImageAccessModeParam READ_WRITE;
|
2017-01-21 11:44:56 +00:00
|
|
|
}
|
|
|
|
|
2017-01-01 14:59:54 +00:00
|
|
|
namespace textureParameters {
|
2017-01-28 09:52:09 +00:00
|
|
|
extern TextureParam FILTER_NEAREST;
|
|
|
|
extern TextureParam FILTER_LINEAR;
|
|
|
|
extern TextureParam FILTER_NEAREST_MIPMAP_NEAREST;
|
|
|
|
extern TextureParam FILTER_LINEAR_MIPMAP_NEAREST;
|
|
|
|
extern TextureParam WRAP_CLAMP_TO_EDGE;
|
|
|
|
extern TextureParam WRAP_REPEAT;
|
|
|
|
extern TextureParam WRAP_MIRRORED_REPEAT;
|
2017-01-01 14:59:54 +00:00
|
|
|
}
|
2017-01-10 15:22:32 +00:00
|
|
|
|
|
|
|
namespace cullMode {
|
2017-01-28 09:52:09 +00:00
|
|
|
extern CullModeParam FRONT;
|
|
|
|
extern CullModeParam BACK;
|
2018-08-24 09:16:06 +00:00
|
|
|
extern CullModeParam FRONT_AND_BACK;
|
2017-01-10 15:22:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace compare {
|
2017-01-28 09:52:09 +00:00
|
|
|
extern CompareParam LEQUAL;
|
|
|
|
extern CompareParam LESS;
|
|
|
|
extern CompareParam ALWAYS;
|
2017-01-10 15:22:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace blend {
|
2017-01-28 09:52:09 +00:00
|
|
|
extern BlendParam ZERO;
|
|
|
|
extern BlendParam ONE;
|
|
|
|
extern BlendParam SRC_ALPHA;
|
|
|
|
extern BlendParam DST_ALPHA;
|
|
|
|
extern BlendParam ONE_MINUS_SRC_ALPHA;
|
|
|
|
extern BlendParam CONSTANT_ALPHA;
|
|
|
|
extern BlendParam ONE_MINUS_CONSTANT_ALPHA;
|
2020-04-28 15:24:26 +00:00
|
|
|
extern BlendParam SRC1_COLOR;
|
|
|
|
extern BlendParam ONE_MINUS_SRC1_COLOR;
|
|
|
|
extern BlendParam SRC1_ALPHA;
|
|
|
|
extern BlendParam ONE_MINUS_SRC1_ALPHA;
|
2017-01-10 15:22:32 +00:00
|
|
|
}
|
2017-01-10 14:58:09 +00:00
|
|
|
|
|
|
|
namespace drawmode {
|
2017-01-28 09:52:09 +00:00
|
|
|
extern DrawModeParam TRIANGLES;
|
|
|
|
extern DrawModeParam TRIANGLE_STRIP;
|
2021-01-20 10:07:23 +00:00
|
|
|
extern DrawModeParam TRIANGLE_FAN;
|
2017-01-28 09:52:09 +00:00
|
|
|
extern DrawModeParam LINES;
|
2017-01-10 14:58:09 +00:00
|
|
|
}
|
2017-01-15 07:57:25 +00:00
|
|
|
|
|
|
|
namespace blitMask {
|
2017-01-28 09:52:09 +00:00
|
|
|
extern BlitMaskParam COLOR_BUFFER;
|
|
|
|
extern BlitMaskParam DEPTH_BUFFER;
|
|
|
|
extern BlitMaskParam STENCIL_BUFFER;
|
2017-01-15 07:57:25 +00:00
|
|
|
}
|
2016-12-25 12:12:51 +00:00
|
|
|
}
|