14#include <boost/filesystem.hpp>
44 DtEffect(
const std::string& dataPath,
const std::string& strDefines);
66 const std::string& strFileName,
const std::string& strDefines);
81 const boost::filesystem::path& filename,
int level,
82 const std::string& shaderFolderPath);
Definition DtEffect.h:113
virtual ~CreateParameters()
Definition DtEffect.h:114
virtual ~DtEffectCreator()
virtual DtEffect * create(const std::string &dataPath, const std::string &strDefines, CreateParameters *params=0)=0
const std::string myDefines
Definition DtEffect.h:102
static std::string loadShaderFile(const std::string &strFileName)
Used by loadShaderSource() and preprocessIncludes() to load a shader file.
virtual void updateUniforms()=0
std::string myFragmentShaderName
Definition DtEffect.h:98
DtEffect(const std::string &dataPath, const std::string &strDefines)
CTOR.
std::string myName
Definition DtEffect.h:89
static std::string loadShaderSource(const std::string &strFileFolder, const std::string &strFileName, const std::string &strDefines)
unsigned int myFragmentShader
Definition DtEffect.h:93
virtual void releaseResources()
Release and HW resources of the effect.
virtual void initializeShaderSource()=0
Virtual abstract Interface.
bool compileShaders()
Compile the shaders.
std::string myFragmentShaderSource
Definition DtEffect.h:97
std::string myVertexShaderSource
Definition DtEffect.h:95
static std::string preprocessShaderIncludes(const std::string &source, const boost::filesystem::path &filename, int level, const std::string &shaderFolderPath)
Preprocess shader includes (recursive).
bool myEnabledFlag
Definition DtEffect.h:90
virtual void reloadShaders()
Reloads any shaders associated with the effect.
bool enabled() const
Is the effect enabled.
std::string myVertexShaderName
Definition DtEffect.h:96
virtual void updateUniformLocations()=0
virtual ~DtEffect()
DTORs.
std::string myGeometryShaderSource
Definition DtEffect.h:99
unsigned int myVertexShader
Definition DtEffect.h:92
unsigned int myProgram
Definition DtEffect.h:91
std::string myDataPath
Definition DtEffect.h:101
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition vrvGraphics.h:19
const char * source
Definition lz4.h:442
Contains DtCreateSensorFieldOfViewCommand and DtCreateSensorFieldOfViewCommandCreator class declarati...
Definition DtGridLinesSettingsRecord.h:16
VertexAttribPtrInfo(const void *p, unsigned int t, unsigned int s)
Definition DtEffect.h:26
unsigned int size
Definition DtEffect.h:35
bool operator==(const VertexAttribPtrInfo &rhs)
Definition DtEffect.h:37
unsigned int type
Definition DtEffect.h:34
const void * pointer
Definition DtEffect.h:33