Files
NazaraEngine/include/Nazara/Graphics/Enums.hpp
Jérôme Leclercq 03e2801dbe Split engine to packages NazaraUtils and NZSL (#375)
* Move code to NazaraUtils and NZSL packages

* Reorder includes

* Tests: Remove glslang and spirv-tools deps

* Tests: Remove glslang init

* Remove NazaraUtils tests and fix Vector4Test

* Fix Linux compilation

* Update msys2-build.yml

* Fix assimp package

* Update xmake.lua

* Update xmake.lua

* Fix shader compilation on MinGW

* Final fixes

* The final fix 2: the fix strikes back!

* Disable cache on CI

* The return of the fix™️
2022-05-25 19:36:10 +02:00

79 lines
1.4 KiB
C++

// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_GRAPHICS_ENUMS_HPP
#define NAZARA_GRAPHICS_ENUMS_HPP
#include <Nazara/Core/Algorithm.hpp>
#include <Nazara/Utils/Flags.hpp>
namespace Nz
{
enum class BasicLightType
{
Directional,
Point,
Spot,
Max = Spot
};
constexpr std::size_t BasicLightTypeCount = UnderlyingCast(BasicLightType::Max) + 1;
enum class BasicRenderElement
{
SpriteChain = 0,
Submesh = 1,
Max = Submesh
};
constexpr std::size_t BasicRenderElementCount = UnderlyingCast(BasicRenderElement::Max) + 1;
enum class CullTest
{
Box,
NoTest,
Sphere,
Volume
};
enum class MaterialPassFlag
{
SortByDistance,
Max = SortByDistance
};
template<>
struct EnumAsFlags<MaterialPassFlag>
{
static constexpr MaterialPassFlag max = MaterialPassFlag::Max;
};
using MaterialPassFlags = Flags<MaterialPassFlag>;
enum class ProjectionType
{
Orthographic,
Perspective
};
enum class PredefinedShaderBinding
{
InstanceDataUbo,
LightDataUbo,
OverlayTexture,
ViewerDataUbo,
Max = ViewerDataUbo
};
constexpr std::size_t PredefinedShaderBindingCount = static_cast<std::size_t>(PredefinedShaderBinding::Max) + 1;
}
#endif // NAZARA_GRAPHICS_ENUMS_HPP