mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-24 22:55:40 +00:00
40c8259130
The standard triangle render requires gl 4.1 core, so should work on mac. The quad renderer runs on 4.5 core. The legacy renderer should still work, and when enabled a regular opengl context will be created, which allows functions marked depreciated in the core profiles to still work. This will only work in windows/linux I think. Apple doesn't support this. A GL 4.1 GPU is now the min required spec. Sorry if you have an OLDER gpu. GL 4.1 is over 12 years old now. This is a big update so I apologise in advance if I accidently broke something :]
40 lines
695 B
C++
40 lines
695 B
C++
#ifndef _R3DSCROLLFOG_H_
|
|
#define _R3DSCROLLFOG_H_
|
|
|
|
#include "Util/NewConfig.h"
|
|
#include <GL/glew.h>
|
|
|
|
namespace New3D {
|
|
|
|
class R3DScrollFog
|
|
{
|
|
public:
|
|
|
|
R3DScrollFog(const Util::Config::Node &config);
|
|
~R3DScrollFog();
|
|
|
|
void DrawScrollFog(float rbga[4], float attenuation, float ambient, float *spotRGB, float *spotEllipse);
|
|
|
|
private:
|
|
|
|
void AllocResources();
|
|
void DeallocResources();
|
|
|
|
const Util::Config::Node &m_config;
|
|
|
|
GLuint m_shaderProgram;
|
|
GLuint m_vertexShader;
|
|
GLuint m_fragmentShader;
|
|
|
|
GLint m_locFogColour;
|
|
GLint m_locFogAttenuation;
|
|
GLint m_locFogAmbient;
|
|
GLint m_locSpotFogColor;
|
|
GLint m_locSpotEllipse;
|
|
|
|
GLuint m_vao;
|
|
};
|
|
|
|
}
|
|
|
|
#endif |