Otclient
14/8/2020
|
#include <shadermanager.h>
Public Types | |
enum | { ITEM_ID_UNIFORM = 10, MAP_CENTER_COORD = 10, MAP_GLOBAL_COORD = 11, MAP_ZOOM = 12 } |
Public Member Functions | |
void | init () |
void | terminate () |
PainterShaderProgramPtr | createShader (const std::string &name) |
PainterShaderProgramPtr | createFragmentShader (const std::string &name, std::string file) |
PainterShaderProgramPtr | createFragmentShaderFromCode (const std::string &name, const std::string &code) |
PainterShaderProgramPtr | createItemShader (const std::string &name, const std::string &file) |
PainterShaderProgramPtr | createMapShader (const std::string &name, const std::string &file) |
const PainterShaderProgramPtr & | getDefaultItemShader () |
const PainterShaderProgramPtr & | getDefaultMapShader () |
PainterShaderProgramPtr | getShader (const std::string &name) |
Definition at line 30 of file shadermanager.h.
anonymous enum |
Enumerator | |
---|---|
ITEM_ID_UNIFORM | |
MAP_CENTER_COORD | |
MAP_GLOBAL_COORD | |
MAP_ZOOM |
Definition at line 33 of file shadermanager.h.
PainterShaderProgramPtr ShaderManager::createFragmentShader | ( | const std::string & | name, |
std::string | file | ||
) |
Definition at line 63 of file shadermanager.cpp.
PainterShaderProgramPtr ShaderManager::createFragmentShaderFromCode | ( | const std::string & | name, |
const std::string & | code | ||
) |
Definition at line 86 of file shadermanager.cpp.
PainterShaderProgramPtr ShaderManager::createItemShader | ( | const std::string & | name, |
const std::string & | file | ||
) |
Definition at line 107 of file shadermanager.cpp.
PainterShaderProgramPtr ShaderManager::createMapShader | ( | const std::string & | name, |
const std::string & | file | ||
) |
Definition at line 115 of file shadermanager.cpp.
PainterShaderProgramPtr ShaderManager::createShader | ( | const std::string & | name | ) |
Definition at line 51 of file shadermanager.cpp.
|
inline |
|
inline |
PainterShaderProgramPtr ShaderManager::getShader | ( | const std::string & | name | ) |
void ShaderManager::init | ( | ) |
Definition at line 31 of file shadermanager.cpp.
void ShaderManager::terminate | ( | ) |