8 float _rectangleVertices[24] =
11 1.0f, -1.0f, 1.0f, 0.0f,
12 -1.0f, -1.0f, 0.0f, 0.0f,
13 -1.0f, 1.0f, 0.0f, 1.0f,
15 1.0f, 1.0f, 1.0f, 1.0f,
16 1.0f, -1.0f, 1.0f, 0.0f,
17 -1.0f, 1.0f, 0.0f, 1.0f
20 unsigned int _rectVAO, _rectVBO;
25 unsigned int _multisampledFBO;
26 unsigned int _multisampledRBO;
29 bool _multisampleEnabled =
false;
30 int _multisamples = 0;
32 static void SetMultisample(
bool enable) {
34 glEnable(GL_MULTISAMPLE);
37 glDisable(GL_MULTISAMPLE);
41 uint32_t _framebufferTexture;
42 uint32_t _multisampledTexture;
49 void init(
int windowWidth,
int windowHeight,
bool enableMSAA,
int MSAA_samples = 0);
51 void attachMultisampleTexture(
int windowWidth,
int windowHeight);
53 void attachTexture(
int windowWidth,
int windowHeight);