TDME2 1.9.121
EZRShaderDefaultImplementation.cpp
Go to the documentation of this file.
2
3#include <string>
4
5#include <tdme/tdme.h>
9
10using std::string;
11
16
17bool EZRShaderDefaultImplementation::isSupported(Renderer* renderer) {
18 return true;
19}
20
22{
23}
24
26}
27
29 return "default";
30}
31
33{
34 auto shaderVersion = renderer->getShaderVersion();
35
36 // load EZR shaders
39 "shader/" + shaderVersion + "/earlyzrejection",
40 "vertexshader.vert"
41 );
42 if (vertexShaderId == 0) return;
45 "shader/" + shaderVersion + "/earlyzrejection",
46 "fragmentshader.frag"
47 );
48 if (fragmentShaderId == 0) return;
49
50 // create EZR render program
54
55 //
57}
58
60}
virtual void initialize() override
Init EZR render shader program implementation.
virtual void initialize() override
Init EZR render shader program implementation.
virtual void updateShaderParameters(Renderer *renderer, int contextIdx) override
Update shader parameters.
virtual int32_t loadShader(int32_t type, const string &pathName, const string &fileName, const string &definitions=string(), const string &functions=string())=0
Loads a shader.
virtual int32_t createProgram(int type)=0
Creates a shader program.
virtual void attachShaderToProgram(int32_t programId, int32_t shaderId)=0
Attaches a shader to a program.
File system singleton class.
Definition: FileSystem.h:14