ManaPlus
|
#include <shaderprogram.h>
Public Member Functions | |
ShaderProgram (const unsigned int id, Shader *const vertex, Shader *const fragment) | |
~ShaderProgram () | |
unsigned int | getProgramId () const |
Public Member Functions inherited from Resource | |
Resource () | |
~Resource () | |
virtual void | incRef () |
virtual void | decRef () |
int | calcMemoryLocal () const |
std::string | getCounterName () const |
Public Member Functions inherited from MemoryCounter | |
MemoryCounter () | |
virtual | ~MemoryCounter () |
int | calcMemory (const int level) const |
virtual int | calcMemoryChilds (const int level) const |
Protected Attributes | |
unsigned int | mProgramId |
Shader * | mVertex |
Shader * | mFragment |
Additional Inherited Members | |
Data Fields inherited from Resource | |
time_t | mTimeStamp |
std::string | mIdPath |
std::string | mSource |
unsigned int | mRefCount |
bool | mProtected |
bool | mNotCount |
Definition at line 31 of file shaderprogram.h.
ShaderProgram::ShaderProgram | ( | const unsigned int | id, |
Shader *const | vertex, | ||
Shader *const | fragment | ||
) |
Definition at line 35 of file shaderprogram.cpp.
ShaderProgram::~ShaderProgram | ( | ) |
Definition at line 45 of file shaderprogram.cpp.
References Resource::decRef(), mFragment, mProgramId, and mVertex.
|
inline |
Definition at line 42 of file shaderprogram.h.
References mProgramId.
Referenced by MobileOpenGL2Graphics::postInit(), and ModernOpenGLGraphics::postInit().
|
protected |
Definition at line 48 of file shaderprogram.h.
Referenced by ~ShaderProgram().
|
protected |
Definition at line 46 of file shaderprogram.h.
Referenced by getProgramId(), and ~ShaderProgram().
|
protected |
Definition at line 47 of file shaderprogram.h.
Referenced by ~ShaderProgram().