#include <Program.h>

Public Member Functions | |
| Program (void) | |
| loads the two files and creates, compiles and links the program | |
| virtual | ~Program (void) |
| virtual void | createProperties (void) |
| virtual const string | getTypeName (bool ofComponent=false) const |
| virtual void | onInitialize (void) |
| GLuint | getProgramID (void) const |
| GLuint | getVertexID (void) const |
| GLuint | getFragmentID (void) const |
| const PropertyContainerPtr | getUniforms (void) const |
| const PropertyPtr | findUniform (const string name) const |
| bool | bind (const string uniform, const string value) |
| bool | bind (const PropertyPtr uniform) |
| unsigned int | bind (void) |
| we call this bind, to stay close to the naming scheme of Sampler, Frame- and Renderbuffer, etc. calls glUseProgram and validates. | |
| ProgramPtr | getSharedPtrProgram (void) |
| const ProgramPtr | getSharedPtrProgram (void) const |
Static Public Member Functions | |
| static PropertyPtr | create (const XMLNodePtr &xml=XMLNodePtr()) |
| static void | unbind (void) |
| static const ProgramPtr | getCurrent (void) |
Definition at line 17 of file Program.h.
| RenderTools::Program::Program | ( | void | ) |
loads the two files and creates, compiles and links the program
( string& m_vertexShader, string& m_fragmentShader )
| m_vertexShader | path to vertex shader file | |
| m_fragmentShader | path to fragment shader file |
Definition at line 24 of file Program.cpp.
| RenderTools::Program::~Program | ( | void | ) | [virtual] |
Definition at line 483 of file Program.cpp.
| unsigned int RenderTools::Program::bind | ( | void | ) |
we call this bind, to stay close to the naming scheme of Sampler, Frame- and Renderbuffer, etc. calls glUseProgram and validates.
()
Definition at line 609 of file Program.cpp.
| bool RenderTools::Program::bind | ( | const PropertyPtr | uniform | ) |
Definition at line 503 of file Program.cpp.
| bool RenderTools::Program::bind | ( | const string | uniform, | |
| const string | value | |||
| ) |
Definition at line 491 of file Program.cpp.
| PropertyPtr RenderTools::Program::create | ( | const XMLNodePtr & | xml = XMLNodePtr() |
) | [static] |
Definition at line 35 of file Program.cpp.
| void RenderTools::Program::createProperties | ( | void | ) | [virtual] |
Reimplemented from RenderTools::AbstractPropertyContainer.
Definition at line 43 of file Program.cpp.
| const PropertyPtr RenderTools::Program::findUniform | ( | const string | name | ) | const |
Definition at line 296 of file Program.cpp.
| static const ProgramPtr RenderTools::Program::getCurrent | ( | void | ) | [inline, static] |
| GLuint RenderTools::Program::getFragmentID | ( | void | ) | const |
Definition at line 288 of file Program.cpp.
| GLuint RenderTools::Program::getProgramID | ( | void | ) | const |
Definition at line 280 of file Program.cpp.
| const ProgramPtr RenderTools::Program::getSharedPtrProgram | ( | void | ) | const |
Definition at line 670 of file Program.cpp.
| ProgramPtr RenderTools::Program::getSharedPtrProgram | ( | void | ) |
Definition at line 666 of file Program.cpp.
| const string RenderTools::Program::getTypeName | ( | bool | ofComponent = false |
) | const [virtual] |
| const PropertyContainerPtr RenderTools::Program::getUniforms | ( | void | ) | const |
Definition at line 292 of file Program.cpp.
| GLuint RenderTools::Program::getVertexID | ( | void | ) | const |
Definition at line 284 of file Program.cpp.
| void RenderTools::Program::onInitialize | ( | void | ) | [virtual] |
TODO destroy previously initialised
Reimplemented from RenderTools::AbstractPropertyContainer.
Definition at line 54 of file Program.cpp.
| void RenderTools::Program::unbind | ( | void | ) | [static] |
Definition at line 661 of file Program.cpp.
1.5.8