Skip to content

Commit

Permalink
add default cpp classes which are not generated
Browse files Browse the repository at this point in the history
  • Loading branch information
gouarin committed Jan 28, 2018
1 parent c385dac commit 5e6f062
Show file tree
Hide file tree
Showing 5 changed files with 620 additions and 0 deletions.
210 changes: 210 additions & 0 deletions xthreejs/xthreejs/base/xenums.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
#pragma once

//
// This file auto-generated with generate-enums.js
// Date: Thu Jan 25 2018 04:46:33 GMT+0100 (CET)
//

#include "xwidgets/xeither.hpp"

namespace xthree{
namespace xenums{

auto Equations = XEITHER(
"AddEquation",
"SubtractEquation",
"ReverseSubtractEquation",
"MinEquation",
"MaxEquation",
);

auto BlendFactors = XEITHER(
"ZeroFactor",
"OneFactor",
"SrcColorFactor",
"OneMinusSrcColorFactor",
"SrcAlphaFactor",
"OneMinusSrcAlphaFactor",
"DstAlphaFactor",
"OneMinusDstAlphaFactor",
"DstColorFactor",
"OneMinusDstColorFactor",
"SrcAlphaSaturateFactor",
);

auto Side = XEITHER(
"FrontSide",
"BackSide",
"DoubleSide",
);

auto Shading = XEITHER(
"FlatShading",
"SmoothShading",
);

auto Colors = XEITHER(
"NoColors",
"FaceColors",
"VertexColors",
);

auto BlendingMode = XEITHER(
"NoBlending",
"NormalBlending",
"AdditiveBlending",
"SubtractiveBlending",
"MultiplyBlending",
"CustomBlending",
);

auto DepthMode = XEITHER(
"NeverDepth",
"AlwaysDepth",
"LessDepth",
"LessEqualDepth",
"EqualDepth",
"GreaterEqualDepth",
"GreaterDepth",
"NotEqualDepth",
);

auto Operations = XEITHER(
"MultiplyOperation",
"MixOperation",
"AddOperation",
);

auto MappingModes = XEITHER(
"UVMapping",
"CubeReflectionMapping",
"CubeRefractionMapping",
"EquirectangularReflectionMapping",
"EquirectangularRefractionMapping",
"SphericalReflectionMapping",
"CubeUVReflectionMapping",
"CubeUVRefractionMapping",
);

auto WrappingModes = XEITHER(
"RepeatWrapping",
"ClampToEdgeWrapping",
"MirroredRepeatWrapping",
);

auto Filters = XEITHER(
"NearestFilter",
"NearestMipMapNearestFilter",
"NearestMipMapLinearFilter",
"LinearFilter",
"LinearMipMapNearestFilter",
"LinearMipMapLinearFilter",
);

auto DataTypes = XEITHER(
"UnsignedByteType",
"ByteType",
"ShortType",
"UnsignedShortType",
"IntType",
"UnsignedIntType",
"FloatType",
"HalfFloatType",
);

auto PixelTypes = XEITHER(
"UnsignedShort4444Type",
"UnsignedShort5551Type",
"UnsignedShort565Type",
"UnsignedInt248Type",
);

auto PixelFormats = XEITHER(
"AlphaFormat",
"RGBFormat",
"RGBAFormat",
"LuminanceFormat",
"LuminanceAlphaFormat",
"DepthFormat",
"DepthStencilFormat",
);

auto DepthFormats = XEITHER(
"DepthFormat",
"DepthStencilFormat",
);

auto CompressedTextureFormats = XEITHER(
"RGB_S3TC_DXT1_Format",
"RGBA_S3TC_DXT1_Format",
"RGBA_S3TC_DXT3_Format",
"RGBA_S3TC_DXT5_Format",
"RGB_PVRTC_4BPPV1_Format",
"RGB_PVRTC_2BPPV1_Format",
"RGBA_PVRTC_4BPPV1_Format",
"RGBA_PVRTC_2BPPV1_Format",
"RGB_ETC1_Format",
);

auto TextureEncodings = XEITHER(
"LinearEncoding",
"sRGBEncoding",
"RGBEEncoding",
"LogLuvEncoding",
"RGBM7Encoding",
"RGBM16Encoding",
"RGBDEncoding",
"GammaEncoding",
);

auto CullFaceModes = XEITHER(
"CullFaceNone",
"CullFaceBack",
"CullFaceFront",
"CullFaceFrontBack",
);

auto FrontFaceDirection = XEITHER(
"FrontFaceDirectionCW",
"FrontFaceDirectionCCW",
);

auto ShadowTypes = XEITHER(
"BasicShadowMap",
"PCFShadowMap",
"PCFSoftShadowMap",
);

auto ToneMappings = XEITHER(
"NoToneMapping",
"LinearToneMapping",
"ReinhardToneMapping",
"Uncharted2ToneMapping",
"CineonToneMapping",
);

auto LoopModes = XEITHER(
"LoopOnce",
"LoopRepeat",
"LoopPingPong",
);

auto InterpolationModes = XEITHER(
"InterpolateDiscrete",
"InterpolateLinear",
"InterpolateSmooth",
);

auto EndingModes = XEITHER(
"ZeroCurvatureEnding",
"ZeroSlopeEnding",
"WrapAroundEnding",
);

auto DrawModes = XEITHER(
"TrianglesDrawMode",
"TriangleStripDrawMode",
"TriangleFanDrawMode",
);
}
}
Loading

0 comments on commit 5e6f062

Please sign in to comment.