2016-08-05 15:12:00 +00:00
|
|
|
#ifndef __GL_POSTPROCESSSTATE_H
|
|
|
|
#define __GL_POSTPROCESSSTATE_H
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include "gl/system/gl_interface.h"
|
2017-11-25 12:51:09 +00:00
|
|
|
#include "r_data/matrix.h"
|
2016-08-05 15:12:00 +00:00
|
|
|
#include "c_cvars.h"
|
|
|
|
#include "r_defs.h"
|
|
|
|
|
|
|
|
class FGLPostProcessState
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
FGLPostProcessState();
|
|
|
|
~FGLPostProcessState();
|
|
|
|
|
2016-10-05 05:57:27 +00:00
|
|
|
void SaveTextureBindings(unsigned int numUnits);
|
2016-09-18 13:57:22 +00:00
|
|
|
|
2016-08-05 15:12:00 +00:00
|
|
|
private:
|
|
|
|
FGLPostProcessState(const FGLPostProcessState &) = delete;
|
|
|
|
FGLPostProcessState &operator=(const FGLPostProcessState &) = delete;
|
|
|
|
|
|
|
|
GLint activeTex;
|
2016-10-05 05:57:27 +00:00
|
|
|
TArray<GLint> textureBinding;
|
|
|
|
TArray<GLint> samplerBinding;
|
2016-08-05 15:12:00 +00:00
|
|
|
GLboolean blendEnabled;
|
|
|
|
GLboolean scissorEnabled;
|
|
|
|
GLboolean depthEnabled;
|
|
|
|
GLboolean multisampleEnabled;
|
|
|
|
GLint currentProgram;
|
|
|
|
GLint blendEquationRgb;
|
|
|
|
GLint blendEquationAlpha;
|
|
|
|
GLint blendSrcRgb;
|
|
|
|
GLint blendSrcAlpha;
|
|
|
|
GLint blendDestRgb;
|
|
|
|
GLint blendDestAlpha;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|