Linux fix
- Fixed 'Instrumentor' by including 'ostream' & 'fstream' - Fixed 'Application' by including 'Instrumentor' - Fixed both 'RendererProgram''s 'Advance()', should have returned true
This commit is contained in:
parent
cf888cfbe0
commit
d2bd0881d1
5 changed files with 9 additions and 3 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#include "Base.h"
|
#include "Base.h"
|
||||||
|
|
||||||
|
#include "Debug/Instrumentor.h"
|
||||||
|
|
||||||
#include "Layer/LayerStack.h"
|
#include "Layer/LayerStack.h"
|
||||||
|
|
||||||
namespace Light {
|
namespace Light {
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
#include "Base.h"
|
#include "Base.h"
|
||||||
|
|
||||||
|
#include <ostream>
|
||||||
|
#include <fstream>
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|
||||||
namespace Light {
|
namespace Light {
|
||||||
|
|
|
@ -120,6 +120,8 @@ namespace Light {
|
||||||
|
|
||||||
void Renderer::EndFrame()
|
void Renderer::EndFrame()
|
||||||
{
|
{
|
||||||
|
m_RenderCommand->SwapBuffers();
|
||||||
|
m_RenderCommand->ClearBackBuffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Renderer::BeginSceneImpl(const std::shared_ptr<Camera>& camera)
|
void Renderer::BeginSceneImpl(const std::shared_ptr<Camera>& camera)
|
||||||
|
@ -158,9 +160,6 @@ namespace Light {
|
||||||
m_TextureRenderer.Bind();
|
m_TextureRenderer.Bind();
|
||||||
m_RenderCommand->DrawIndexed(m_TextureRenderer.GetQuadCount() * 6u);
|
m_RenderCommand->DrawIndexed(m_TextureRenderer.GetQuadCount() * 6u);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_RenderCommand->SwapBuffers();
|
|
||||||
m_RenderCommand->ClearBackBuffer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -33,6 +33,7 @@ namespace Light {
|
||||||
|
|
||||||
m_MapCurrent += 4;
|
m_MapCurrent += 4;
|
||||||
m_QuadCount++;
|
m_QuadCount++;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QuadRendererProgram::SetCamera(const Camera& camera)
|
void QuadRendererProgram::SetCamera(const Camera& camera)
|
||||||
|
|
|
@ -33,6 +33,7 @@ namespace Light {
|
||||||
|
|
||||||
m_MapCurrent += 4;
|
m_MapCurrent += 4;
|
||||||
m_QuadCount++;
|
m_QuadCount++;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextureRendererProgram::SetCamera(const Camera& camera)
|
void TextureRendererProgram::SetCamera(const Camera& camera)
|
||||||
|
|
Loading…
Add table
Reference in a new issue