blob: 53f79b9293f2bbd0aa6a293f818a5be50df4cb99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef GLWINDOW_H
#define GLWINDOW_H
#include "UnityGL.h"
#include "Runtime/GfxDevice/GfxDeviceWindow.h"
#include "GLContext.h"
class GLWindow : public GfxDeviceWindow
{
private:
GraphicsContextHandle m_GLContext;
int cc;
public:
GLWindow (NativeWindow window, int width, int height, DepthBufferFormat depthFormat, int antiAlias);
~GLWindow();
bool Reshape( int width, int height, DepthBufferFormat depthFormat, int antiAlias );
bool BeginRendering();
bool EndRendering( bool presentContent );
public:
static GLWindow* Current();
};
#endif
|