Add OpenGLSwapChain
This commit is contained in:
26
engine/include/XCEngine/RHI/OpenGL/OpenGLSwapChain.h
Normal file
26
engine/include/XCEngine/RHI/OpenGL/OpenGLSwapChain.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
namespace XCEngine {
|
||||
namespace RHI {
|
||||
|
||||
class OpenGLSwapChain {
|
||||
public:
|
||||
OpenGLSwapChain();
|
||||
~OpenGLSwapChain();
|
||||
|
||||
bool Initialize(GLFWwindow* window);
|
||||
void Shutdown();
|
||||
|
||||
void Present();
|
||||
void SwapBuffers();
|
||||
|
||||
GLFWwindow* GetWindow() const { return m_window; }
|
||||
|
||||
private:
|
||||
GLFWwindow* m_window;
|
||||
};
|
||||
|
||||
} // namespace RHI
|
||||
} // namespace XCEngine
|
||||
Reference in New Issue
Block a user