23 lines
408 B
C
23 lines
408 B
C
|
#ifndef SHADERGEN_H
|
||
|
#define SHADERGEN_H
|
||
|
|
||
|
#include <gl/glew.h>
|
||
|
|
||
|
#include "CShader.h"
|
||
|
#include <Resource/CMaterial.h>
|
||
|
|
||
|
class CShaderGenerator
|
||
|
{
|
||
|
CShader *mShader;
|
||
|
|
||
|
CShaderGenerator();
|
||
|
~CShaderGenerator();
|
||
|
bool CreateVertexShader(const CMaterial& Mat);
|
||
|
bool CreatePixelShader(const CMaterial& Mat);
|
||
|
|
||
|
public:
|
||
|
static CShader* GenerateShader(const CMaterial& Mat);
|
||
|
};
|
||
|
|
||
|
#endif // SHADERGEN_H
|