- 'Renderer' now receives 'WindowResizedEvent' and handle the 'Framebuffer' and viewport stuff - Added 'Renderer' now uses the new 'FlushScene' function to flush when the mapped vertex buffer is filled - The viewport is now set by 'RenderCommand' via the 'Renderer' rather than the 'GraphicsConntext' - 'Window' no longer sends 'WindowResizedEvent' to 'GraphicsContext' - 'GraphicsContext' no longer receives 'OnWindowResize' events - Note: Sending events should be done by the 'Application'
26 lines
No EOL
380 B
C++
26 lines
No EOL
380 B
C++
#pragma once
|
|
|
|
#include "Base.h"
|
|
#include "Graphics/GraphicsContext.h"
|
|
|
|
struct GLFWwindow;
|
|
|
|
namespace Light {
|
|
|
|
class WindowResizedEvent;
|
|
|
|
class glGraphicsContext : public GraphicsContext
|
|
{
|
|
private:
|
|
GLFWwindow* m_WindowHandle;
|
|
|
|
public:
|
|
glGraphicsContext(GLFWwindow* windowHandle);
|
|
|
|
virtual void LogDebugData() override;
|
|
|
|
private:
|
|
void SetDebugMessageCallback();
|
|
};
|
|
|
|
} |