// Copyright (C) 2013 Jérôme Leclercq // This file is part of the "Nazara Engine - Graphics module" // For conditions of distribution and use, see copyright notice in Config.hpp #ifndef NAZARA_RENDERQUEUE_HPP #define NAZARA_RENDERQUEUE_HPP #include #include #include #include #include class NzDrawable; class NzLight; class NzMaterial; class NzModel; class NzSkeletalMesh; class NzStaticMesh; class NAZARA_API NzRenderQueue { public: NzRenderQueue() = default; ~NzRenderQueue() = default; void Clear(); struct SkeletalData { NzMatrix4f transformMatrix; ///TODO: Déplacer vers un container séparé qui ne serait pas sujet à Clear(); std::vector skinnedVertices; }; struct TransparentModel { NzMatrix4f transformMatrix; NzMaterial* material; }; struct TransparentSkeletalModel : public TransparentModel { ///TODO: Déplacer vers un container séparé qui ne serait pas sujet à Clear(); std::vector skinnedVertices; }; struct TransparentStaticModel : public TransparentModel { NzStaticMesh* mesh; }; struct MaterialComparator { bool operator()(const NzMaterial* mat1, const NzMaterial* mat2); }; struct SkeletalMeshComparator { bool operator()(const NzSkeletalMesh* subMesh1, const NzSkeletalMesh* subMesh2); }; struct StaticMeshComparator { bool operator()(const NzStaticMesh* subMesh1, const NzStaticMesh* subMesh2); }; typedef std::map, SkeletalMeshComparator> SkeletalMeshContainer; typedef std::map, StaticMeshComparator> StaticMeshContainer; std::map visibleSkeletalModels; std::map visibleStaticModels; std::vector visibleTransparentSkeletalModels; std::vector visibleTransparentStaticModels; std::vector otherDrawables; std::vector directionnalLights; std::vector visibleLights; }; #endif // NAZARA_RENDERQUEUE_HPP