9 #ifndef __flowviz__Shader__
10 #define __flowviz__Shader__
13 #include <OpenGL/gl3.h>
14 #include <OpenGL/OpenGL.h>
30 GLint m_uniformLocation;
37 void set1i(
const int);
38 void set1f(
const float);
39 void set2f(
const float,
const float);
66 bool init(
const char *vertexShaderFilename,
const char* pixelShaderFilename);
void uninit(void)
Cleans up shader.
Definition: Shader.cpp:195
Definition: type_mat2x2.hpp:45
Represents the current state of rendering.
Definition: SceneContext.h:22
virtual void render(SceneContext *context)
Sets shader active and saves it in.
Definition: Shader.cpp:218
Represents part of the SceneGraph.
Definition: ISceneGraphPart.h:23
virtual ~Shader(void)
Definition: Shader.cpp:82
Definition: type_mat2x2.hpp:39
void use(void)
Sets this shader active.
Definition: Shader.cpp:213
Uniform getUniform(const char *uniformName)
Gets uniform by name.
Definition: Shader.h:91
Definition: type_mat2x2.hpp:40
Shader()
Definition: Shader.h:57
bool init(const char *vertexShaderFilename, const char *pixelShaderFilename)
Reads Shader from tex files.
Definition: Shader.cpp:88
OpenGL shader class.
Definition: Shader.h:51
Definition: type_mat2x2.hpp:49
void bindAttributeLocations()
Binds correct attribute locations.
Definition: Shader.cpp:159