Oxygine  1
2g game engine
ShaderProgramGL.h
1 #pragma once
2 #include "../ShaderProgram.h"
3 #include "oxgl.h"
4 namespace oxygine
5 {
6  class VertexDeclarationGL;
8  {
9  public:
10  ShaderProgramGL(GLuint program);
11  ShaderProgramGL(GLuint vs, GLuint fs, const VertexDeclarationGL* decl);
12  ~ShaderProgramGL();
13 
14  unsigned int getID() const;
15  int getUniformLocation(const char* id) const;
16 
17  static unsigned int createShader(unsigned int type, const char* data,
18  const char* prepend = "", const char* append = "", error_policy ep = ep_show_error);
19  static unsigned int createProgram(int vs, int fs, const VertexDeclarationGL* decl, bool deleteAttachedShaders = false);
20  static bool getShaderBuildLog(GLuint shader, std::string& str);
21  static bool getProgramBuildLog(GLuint program, std::string& str);
22 
23  private:
24  GLuint _program;
25  };
26 
27 
28 }
Definition: ShaderProgram.h:7
–oxgl-end–!
Definition: Actor.h:14
Definition: ShaderProgramGL.h:7
Definition: VertexDeclarationGL.h:8