Fixed Const View Proj
This commit is contained in:
parent
e0f3031187
commit
cc55a3471f
|
@ -37,12 +37,12 @@ namespace Oyster
|
||||||
return API::Sucsess;
|
return API::Sucsess;
|
||||||
}
|
}
|
||||||
|
|
||||||
void API::SetProjection(Math::Float4x4& projection)
|
void API::SetProjection(const Math::Float4x4& projection)
|
||||||
{
|
{
|
||||||
Projection = projection;
|
Projection = projection;
|
||||||
}
|
}
|
||||||
|
|
||||||
void API::SetView(Math::Float4x4& view)
|
void API::SetView(const Math::Float4x4& view)
|
||||||
{
|
{
|
||||||
View = view;
|
View = view;
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,9 +42,9 @@ namespace Oyster
|
||||||
static void Clean();
|
static void Clean();
|
||||||
|
|
||||||
//! @brief Sets the view matrix to use next frame
|
//! @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
|
//! @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
|
//! @brief will internally use last values from SetView and SetProjection
|
||||||
static void NewFrame();
|
static void NewFrame();
|
||||||
|
@ -71,7 +71,7 @@ namespace Oyster
|
||||||
static void DeleteTexture(Texture);
|
static void DeleteTexture(Texture);
|
||||||
|
|
||||||
//! @brief adds a light to the scene
|
//! @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
|
//! @brief removes all lights from the scene
|
||||||
static void ClearLights();
|
static void ClearLights();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue