CSEngine
Loading...
Searching...
No Matches
OGLMgr.h
1#pragma once
2#include "../OGLDef.h"
3#include "Base/CoreBase.h"
4#include "Base/RenderCoreBase.h"
5#include <string>
6
7namespace CSE {
8 class OGLMgr : public CoreBase, public RenderCoreBase {
9 public:
10 OGLMgr();
11 ~OGLMgr() override;
12
13 void Init() override;
14
15 void setBuffers();
16 void setupEGLGraphics();
17
18 void Render() const override;
19
20 void ResizeWindow(GLuint width, GLuint height);
21 void releaseBuffers();
22
23 private:
24 void setProjectionRatio(int width, int height);
25
26 private:
27 GLfloat m_projectionRatio;
28 GLuint m_depthRenderbuffer = 0;
29 GLuint m_colorRenderbuffer = 0;
30 GLuint m_framebuffer = 0;
31 };
32}