Otclient  14/8/2020
ShaderManager Class Reference

#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 PainterShaderProgramPtrgetDefaultItemShader ()
 
const PainterShaderProgramPtrgetDefaultMapShader ()
 
PainterShaderProgramPtr getShader (const std::string &name)
 

Detailed Description

Definition at line 30 of file shadermanager.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ITEM_ID_UNIFORM 
MAP_CENTER_COORD 
MAP_GLOBAL_COORD 
MAP_ZOOM 

Definition at line 33 of file shadermanager.h.

Member Function Documentation

◆ createFragmentShader()

PainterShaderProgramPtr ShaderManager::createFragmentShader ( const std::string &  name,
std::string  file 
)

Definition at line 63 of file shadermanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createFragmentShaderFromCode()

PainterShaderProgramPtr ShaderManager::createFragmentShaderFromCode ( const std::string &  name,
const std::string &  code 
)

Definition at line 86 of file shadermanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createItemShader()

PainterShaderProgramPtr ShaderManager::createItemShader ( const std::string &  name,
const std::string &  file 
)

Definition at line 107 of file shadermanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createMapShader()

PainterShaderProgramPtr ShaderManager::createMapShader ( const std::string &  name,
const std::string &  file 
)

Definition at line 115 of file shadermanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createShader()

PainterShaderProgramPtr ShaderManager::createShader ( const std::string &  name)

Definition at line 51 of file shadermanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDefaultItemShader()

const PainterShaderProgramPtr& ShaderManager::getDefaultItemShader ( )
inline

Definition at line 50 of file shadermanager.h.

Here is the caller graph for this function:

◆ getDefaultMapShader()

const PainterShaderProgramPtr& ShaderManager::getDefaultMapShader ( )
inline

Definition at line 51 of file shadermanager.h.

Here is the caller graph for this function:

◆ getShader()

PainterShaderProgramPtr ShaderManager::getShader ( const std::string &  name)

Definition at line 139 of file shadermanager.cpp.

Here is the caller graph for this function:

◆ init()

void ShaderManager::init ( )

Definition at line 31 of file shadermanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ terminate()

void ShaderManager::terminate ( )

Definition at line 44 of file shadermanager.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: