-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathASlider.h
executable file
·38 lines (25 loc) · 939 Bytes
/
ASlider.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
#pragma once
#include <string>
#include <iostream>
#include <FFGLSDK.h>
#include <fstream>
#include "FFGLScopedFBOBinding.h"
class ASlider : public ffglqs::Plugin
{
public:
ASlider();
~ASlider();
//CFFGLPlugin
FFResult InitGL( const FFGLViewportStruct* vp ) override;
FFResult ProcessOpenGL( ProcessOpenGLStruct* pGL ) override;
unsigned int Resize( const FFGLViewportStruct* vp )override;
FFResult DeInitGL() override;
private:
ffglex::FFGLShader shader; //!< Utility to help us compile and link some shaders into a program.
ffglex::FFGLScreenQuad quad; //!< Utility to help us render a full screen quad.
ffglex::FFGLShader dummy_shader; //!< Utility to help us compile and link some shaders into a program.
ffglex::FFGLFBO fbos[2];
int index = 0;
bool resolutionChanged(int width, int height);
uint last_width, last_height;
};