Minor fixes

This commit is contained in:
SirLynix 2022-12-08 19:20:54 +01:00
parent 780359eb8b
commit 8b101114d1
6 changed files with 10 additions and 20 deletions

View File

@ -1,7 +0,0 @@
// Copyright (C) 2015 Jérôme Leclercq
// This file is part of the "Nazara Engine"
// For conditions of distribution and use, see copyright notice in Config.hpp
// no header guards
#include <Nazara/Core/Debug/MemoryLeakTracker.hpp>

View File

@ -1,8 +0,0 @@
// Copyright (C) 2015 Jérôme Leclercq
// This file is part of the "Nazara Engine"
// For conditions of distribution and use, see copyright notice in Config.hpp
// no header guards
#undef delete
#undef new

View File

@ -43,6 +43,7 @@
#include <Nazara/Graphics/ForwardFramePipeline.hpp>
#include <Nazara/Graphics/ForwardPipelinePass.hpp>
#include <Nazara/Graphics/FrameGraph.hpp>
#include <Nazara/Graphics/FrameGraphStructs.hpp>
#include <Nazara/Graphics/FramePass.hpp>
#include <Nazara/Graphics/FramePassAttachment.hpp>
#include <Nazara/Graphics/FramePipeline.hpp>
@ -52,6 +53,7 @@
#include <Nazara/Graphics/GuillotineTextureAtlas.hpp>
#include <Nazara/Graphics/InstancedRenderable.hpp>
#include <Nazara/Graphics/Light.hpp>
#include <Nazara/Graphics/LightShadowData.hpp>
#include <Nazara/Graphics/LinearSlicedSprite.hpp>
#include <Nazara/Graphics/Material.hpp>
#include <Nazara/Graphics/MaterialInstance.hpp>
@ -61,6 +63,7 @@
#include <Nazara/Graphics/MaterialSettings.hpp>
#include <Nazara/Graphics/Model.hpp>
#include <Nazara/Graphics/PointLight.hpp>
#include <Nazara/Graphics/PointLightShadowData.hpp>
#include <Nazara/Graphics/PredefinedMaterials.hpp>
#include <Nazara/Graphics/PredefinedShaderStructs.hpp>
#include <Nazara/Graphics/RenderBufferPool.hpp>
@ -72,9 +75,11 @@
#include <Nazara/Graphics/RenderSpriteChain.hpp>
#include <Nazara/Graphics/RenderSubmesh.hpp>
#include <Nazara/Graphics/ShaderReflection.hpp>
#include <Nazara/Graphics/ShadowViewer.hpp>
#include <Nazara/Graphics/SkeletonInstance.hpp>
#include <Nazara/Graphics/SlicedSprite.hpp>
#include <Nazara/Graphics/SpotLight.hpp>
#include <Nazara/Graphics/SpotLightShadowData.hpp>
#include <Nazara/Graphics/Sprite.hpp>
#include <Nazara/Graphics/SpriteChainRenderer.hpp>
#include <Nazara/Graphics/SubmeshRenderer.hpp>

View File

@ -101,10 +101,10 @@ namespace Nz
Matrix4& Transpose();
T& operator()(std::size_t x, std::size_t y);
T operator()(std::size_t x, std::size_t y) const;
const T& operator()(std::size_t x, std::size_t y) const;
T& operator[](std::size_t i);
T operator[](std::size_t i) const;
const T& operator[](std::size_t i) const;
Matrix4& operator=(const Matrix4& matrix) = default;

View File

@ -1297,7 +1297,7 @@ namespace Nz
* \remark x and y must both be comprised in range [0,4[
*/
template<typename T>
T Matrix4<T>::operator()(std::size_t x, std::size_t y) const
const T& Matrix4<T>::operator()(std::size_t x, std::size_t y) const
{
NazaraAssert(x <= 3, "index out of range");
NazaraAssert(y <= 3, "index out of range");
@ -1326,7 +1326,7 @@ namespace Nz
* \remark i must be comprised in range [0,16[
*/
template<typename T>
T Matrix4<T>::operator[](std::size_t i) const
const T& Matrix4<T>::operator[](std::size_t i) const
{
NazaraAssert(i <= 16, "index out of range");

View File

@ -5,9 +5,9 @@
#include <Nazara/VulkanRenderer/Wrapper/Device.hpp>
#include <Nazara/Core/Error.hpp>
#include <Nazara/Core/ErrorFlags.hpp>
#include <Nazara/Utils/StackArray.hpp>
#include <Nazara/VulkanRenderer/Utils.hpp>
#include <Nazara/VulkanRenderer/Wrapper/Instance.hpp>
#include <Nazara/Utils/StackArray.hpp>
#include <Nazara/VulkanRenderer/Debug.hpp>
namespace Nz::Vk