Lagrangian Liquid Simulation
Master Thesis project on simulation of liquids using Lagrangian approach and SPH
|
a base object used to store shader info from the config file More...
#include <ShaderObject.h>
Public Member Functions | |
ShaderObject (const std::string _shaderName, const std::string _vertexFile, const std::string _fragementFile, const std::vector< std::string > _attributes, const std::vector< int > _attributeValues, const bool _isSpecial) | |
ctor | |
std::string | getShaderName () const |
returns the name of the shader | |
std::string | getVertexFile () const |
returns the filename of the vertex shader file | |
std::string | getFragementFile () const |
returns the filename of the fragment shader file | |
std::vector< std::string > | getAttributes () const |
returns the list of attributes for the shader | |
std::vector< int > | getAttributeValues () const |
returns the list of attributes values for the shader | |
bool | getIsSpecial () const |
returns the toggle flag for special shader | |
Private Attributes | |
std::string | m_shaderName |
shader name | |
std::string | m_vertexFile |
filename of the vertex shader file | |
std::string | m_fragementFile |
filename of the fragment shader file | |
std::vector< std::string > | m_attributes |
attributes of the shader | |
std::vector< int > | m_attributeValues |
attributes values of the shader | |
bool | m_isSpecial |
whether a shader is to be loaded in a special way |
a base object used to store shader info from the config file
Definition at line 18 of file ShaderObject.h.
ShaderObject::ShaderObject | ( | const std::string | _shaderName, |
const std::string | _vertexFile, | ||
const std::string | _fragementFile, | ||
const std::vector< std::string > | _attributes, | ||
const std::vector< int > | _attributeValues, | ||
const bool | _isSpecial | ||
) |
ctor
[in] | _shaderName | the name of the shader |
[in] | _vertexFile | the filename of the vertex shader file |
[in] | _fragementFile | the filename of the fragment shader file |
[in] | _attributes | the attributes for the shader file |
[in] | _attributeValues | the attributes values for the shader file |
[in] | _isSpecial | toggle flag for special shader loading |
Definition at line 7 of file ShaderObject.cpp.
{ m_shaderName = _shaderName; m_vertexFile = _vertexFile; m_fragementFile = _fragementFile; m_attributes = attributes; m_attributeValues = attributeValues; m_isSpecial = isSpecial; }
std::vector<std::string> ShaderObject::getAttributes | ( | ) | const [inline] |
returns the list of attributes for the shader
Definition at line 48 of file ShaderObject.h.
References m_attributes.
{ return m_attributes; }
std::vector<int> ShaderObject::getAttributeValues | ( | ) | const [inline] |
returns the list of attributes values for the shader
Definition at line 51 of file ShaderObject.h.
References m_attributeValues.
{ return m_attributeValues; }
std::string ShaderObject::getFragementFile | ( | ) | const [inline] |
returns the filename of the fragment shader file
Definition at line 45 of file ShaderObject.h.
References m_fragementFile.
{ return m_fragementFile; }
bool ShaderObject::getIsSpecial | ( | ) | const [inline] |
returns the toggle flag for special shader
Definition at line 54 of file ShaderObject.h.
References m_isSpecial.
{ return m_isSpecial; }
std::string ShaderObject::getShaderName | ( | ) | const [inline] |
returns the name of the shader
Definition at line 39 of file ShaderObject.h.
References m_shaderName.
{ return m_shaderName; }
std::string ShaderObject::getVertexFile | ( | ) | const [inline] |
returns the filename of the vertex shader file
Definition at line 42 of file ShaderObject.h.
References m_vertexFile.
{ return m_vertexFile; }
std::vector<std::string> ShaderObject::m_attributes [private] |
attributes of the shader
Definition at line 67 of file ShaderObject.h.
std::vector<int> ShaderObject::m_attributeValues [private] |
attributes values of the shader
Definition at line 70 of file ShaderObject.h.
std::string ShaderObject::m_fragementFile [private] |
filename of the fragment shader file
Definition at line 64 of file ShaderObject.h.
bool ShaderObject::m_isSpecial [private] |
whether a shader is to be loaded in a special way
Definition at line 73 of file ShaderObject.h.
std::string ShaderObject::m_shaderName [private] |
shader name
Definition at line 58 of file ShaderObject.h.
std::string ShaderObject::m_vertexFile [private] |
filename of the vertex shader file
Definition at line 61 of file ShaderObject.h.