Upgrade Utility
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Nz
|
||||
class NAZARA_GRAPHICS_API GraphicalMesh
|
||||
{
|
||||
public:
|
||||
GraphicalMesh(const Mesh* mesh);
|
||||
GraphicalMesh(const Mesh& mesh);
|
||||
GraphicalMesh(const GraphicalMesh&) = delete;
|
||||
GraphicalMesh(GraphicalMesh&&) noexcept = default;
|
||||
~GraphicalMesh() = default;
|
||||
@@ -26,7 +26,7 @@ namespace Nz
|
||||
inline const std::shared_ptr<AbstractBuffer>& GetIndexBuffer(std::size_t subMesh) const;
|
||||
inline std::size_t GetIndexCount(std::size_t subMesh) const;
|
||||
inline const std::shared_ptr<AbstractBuffer>& GetVertexBuffer(std::size_t subMesh) const;
|
||||
inline const VertexDeclarationConstRef& GetVertexDeclaration(std::size_t subMesh) const;
|
||||
inline const std::shared_ptr<const VertexDeclaration>& GetVertexDeclaration(std::size_t subMesh) const;
|
||||
inline std::size_t GetSubMeshCount() const;
|
||||
|
||||
GraphicalMesh& operator=(const GraphicalMesh&) = delete;
|
||||
@@ -38,7 +38,7 @@ namespace Nz
|
||||
std::shared_ptr<AbstractBuffer> indexBuffer;
|
||||
std::shared_ptr<AbstractBuffer> vertexBuffer;
|
||||
std::size_t indexCount;
|
||||
VertexDeclarationConstRef vertexDeclaration;
|
||||
std::shared_ptr<const VertexDeclaration> vertexDeclaration;
|
||||
};
|
||||
|
||||
std::vector<GraphicalSubMesh> m_subMeshes;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Nz
|
||||
return m_subMeshes[subMesh].vertexBuffer;
|
||||
}
|
||||
|
||||
inline const VertexDeclarationConstRef& GraphicalMesh::GetVertexDeclaration(std::size_t subMesh) const
|
||||
inline const std::shared_ptr<const VertexDeclaration>& GraphicalMesh::GetVertexDeclaration(std::size_t subMesh) const
|
||||
{
|
||||
assert(subMesh < m_subMeshes.size());
|
||||
return m_subMeshes[subMesh].vertexDeclaration;
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
#include <Nazara/Prerequisites.hpp>
|
||||
#include <Nazara/Core/Color.hpp>
|
||||
#include <Nazara/Core/ObjectLibrary.hpp>
|
||||
#include <Nazara/Core/ObjectRef.hpp>
|
||||
#include <Nazara/Core/RefCounted.hpp>
|
||||
#include <Nazara/Core/Resource.hpp>
|
||||
#include <Nazara/Core/ResourceLoader.hpp>
|
||||
#include <Nazara/Core/ResourceManager.hpp>
|
||||
@@ -32,7 +30,7 @@ namespace Nz
|
||||
class CommandBufferBuilder;
|
||||
class UploadPool;
|
||||
|
||||
class NAZARA_GRAPHICS_API Material : public RefCounted, public Resource
|
||||
class NAZARA_GRAPHICS_API Material : public Resource
|
||||
{
|
||||
public:
|
||||
Material(std::shared_ptr<const MaterialSettings> settings);
|
||||
|
||||
@@ -107,7 +107,7 @@ namespace Nz
|
||||
*
|
||||
* This parameter is required for depth writing.
|
||||
*
|
||||
* In order to enable depth writing without enabling depth test, set the depth comparison function to RendererComparison_Never
|
||||
* In order to enable depth writing without enabling depth test, set the depth comparison function to RendererComparison::Never
|
||||
*
|
||||
* \param depthBuffer Defines if this material will use depth buffer
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user