From cc55a3471f6ce2ec1907345d12de0bfddf7d7971 Mon Sep 17 00:00:00 2001 From: lanariel Date: Mon, 10 Feb 2014 16:22:23 +0100 Subject: [PATCH] Fixed Const View Proj --- Code/OysterGraphics/DllInterfaces/GFXAPI.cpp | 4 ++-- Code/OysterGraphics/DllInterfaces/GFXAPI.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Code/OysterGraphics/DllInterfaces/GFXAPI.cpp b/Code/OysterGraphics/DllInterfaces/GFXAPI.cpp index 3722f9f8..5a92f0de 100644 --- a/Code/OysterGraphics/DllInterfaces/GFXAPI.cpp +++ b/Code/OysterGraphics/DllInterfaces/GFXAPI.cpp @@ -37,12 +37,12 @@ namespace Oyster return API::Sucsess; } - void API::SetProjection(Math::Float4x4& projection) + void API::SetProjection(const Math::Float4x4& projection) { Projection = projection; } - void API::SetView(Math::Float4x4& view) + void API::SetView(const Math::Float4x4& view) { View = view; } diff --git a/Code/OysterGraphics/DllInterfaces/GFXAPI.h b/Code/OysterGraphics/DllInterfaces/GFXAPI.h index cb9e26cc..65f82460 100644 --- a/Code/OysterGraphics/DllInterfaces/GFXAPI.h +++ b/Code/OysterGraphics/DllInterfaces/GFXAPI.h @@ -42,9 +42,9 @@ namespace Oyster static void Clean(); //! @brief Sets the view matrix to use next frame - static void SetView(Oyster::Math::Float4x4& View); + static void SetView(const Oyster::Math::Float4x4& View); //! @brief Sets the projection matrix to use next frame - static void SetProjection(Oyster::Math::Float4x4& Projection); + static void SetProjection(const Oyster::Math::Float4x4& Projection); //! @brief will internally use last values from SetView and SetProjection static void NewFrame(); @@ -71,7 +71,7 @@ namespace Oyster static void DeleteTexture(Texture); //! @brief adds a light to the scene - static void AddLight(Definitions::Pointlight light); + static void AddLight(const Definitions::Pointlight light); //! @brief removes all lights from the scene static void ClearLights();