-
Notifications
You must be signed in to change notification settings - Fork 0
/
OpenGLstuff.h
55 lines (41 loc) · 1.27 KB
/
OpenGLstuff.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef _OPENGLSTUFF_H
#define _OPENGLSTUFF_H
#define GL_GLEXT_PROTOTYPES
#include "Engine.h"
#include "Font.h"
#include "OpenGLES2stuff.h"
class OpenGLstuff{
public:
OpenGLstuff(SDL_Window* mainWindow_);
~OpenGLstuff();
void init();
void render();
void swapBuffers();
void printCompressedTextureAvailability();
void setExitKeyPressedTime(float time);
unsigned char *frameBufferPointer;
unsigned char *frameBufferPointerRect[MAX_SERVERS];
unsigned int framebufferTexIDRect[MAX_SERVERS];
unsigned char *rectCopyBuffers[MAX_SERVERS];
#ifndef ANDROID
PFNGLCOMPRESSEDTEXIMAGE2DPROC glCompressedTexImage2D;
PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glCompressedTexSubImage2D;
#endif
private:
SDL_Window* mainWindow;
void generateFramebufferTexture();
void generateFramebufferTextureNoRect();
void generateFramebufferTextureRect();
unsigned int framebufferTexID;
void drawFrameBufferNoRect();
void drawFrameBufferRect();
void drawFPS();
void drawHUD();
bool isPVRTCSupported();
bool isPVRTC2Supported();
bool isS3TCSupported();
bool isETCSupported();
bool isDXT1Supported();
bool isFrontBufferSupported();
};
#endif