TDME2  1.9.200
PostProcessingShaderDefaultImplementation.cpp
Go to the documentation of this file.
1 #include <string>
2 
3 #include <tdme/tdme.h>
7 #include <tdme/engine/Engine.h>
8 
9 using std::string;
10 
14 
15 bool PostProcessingShaderDefaultImplementation::isSupported(Renderer* renderer) {
16  return true;
17 }
18 
20 {
21 }
22 
24 {
25  auto shaderVersion = renderer->getShaderVersion();
26 
27  // fragment shader
30  "shader/" + shaderVersion + "/postprocessing",
31  "default_fragmentshader.frag"
32  );
33  if (fragmentShaderId == 0) return;
34 
35  // vertex shader
38  "shader/" + shaderVersion + "/postprocessing",
39  "default_vertexshader.vert"
40  );
41  if (vertexShaderId == 0) return;
42 
43  // create, attach and link program
47 
48  //
50 }
51 
53 }
Engine main class.
Definition: Engine.h:131
virtual void setShaderParameters(int contextIdx, Engine *engine) override
Set 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.