ManaPlus
|
#include <shadersmanager.h>
Public Member Functions | |
ShadersManager () | |
Shader * | createShader (const unsigned int type, const std::string &fileName) |
ShaderProgram * | createProgram (const std::string &vertex, const std::string &fragment, const bool isNewShader) |
ShaderProgram * | getSimpleProgram () |
ShaderProgram * | getGles2Program () |
Definition at line 34 of file shadersmanager.h.
|
inline |
Definition at line 37 of file shadersmanager.h.
ShaderProgram * ShadersManager::createProgram | ( | const std::string & | vertex, |
const std::string & | fragment, | ||
const bool | isNewShader | ||
) |
Definition at line 71 of file shadersmanager.cpp.
References CAST_SIZE, Resource::decRef(), Loader::getShader(), Shader::getShaderId(), GL_FRAGMENT_SHADER, GL_INFO_LOG_LENGTH, GL_LINK_STATUS, GL_VALIDATE_STATUS, GL_VERTEX_SHADER, Logger::log(), logger, and Resource::mIdPath.
Referenced by getGles2Program(), getSimpleProgram(), and anonymous_namespace{shaderprogramloader.cpp}::ShaderProgramLoader::load().
Shader * ShadersManager::createShader | ( | const unsigned int | type, |
const std::string & | fileName | ||
) |
Definition at line 47 of file shadersmanager.cpp.
References CAST_SIZE, fileName, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, VirtFs::loadTextFileString(), Logger::log(), and logger.
Referenced by anonymous_namespace{shaderloader.cpp}::ShaderLoader::load().
ShaderProgram * ShadersManager::getGles2Program | ( | ) |
Definition at line 139 of file shadersmanager.cpp.
References createProgram(), Configuration::getStringValue(), and paths.
Referenced by MobileOpenGL2Graphics::postInit().
ShaderProgram * ShadersManager::getSimpleProgram | ( | ) |
Definition at line 131 of file shadersmanager.cpp.
References createProgram(), Configuration::getStringValue(), and paths.
Referenced by ModernOpenGLGraphics::postInit().