Lagrangian Liquid Simulation
Master Thesis project on simulation of liquids using Lagrangian approach and SPH
ShaderObject Class Reference

a base object used to store shader info from the config file More...

#include <ShaderObject.h>

List of all members.

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

Detailed Description

a base object used to store shader info from the config file

Definition at line 18 of file ShaderObject.h.


Constructor & Destructor Documentation

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

Parameters:
[in]_shaderNamethe name of the shader
[in]_vertexFilethe filename of the vertex shader file
[in]_fragementFilethe filename of the fragment shader file
[in]_attributesthe attributes for the shader file
[in]_attributeValuesthe attributes values for the shader file
[in]_isSpecialtoggle 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;
}

Member Function Documentation

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; }

Here is the caller graph for this function:

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; }

Here is the caller graph for this function:

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; }

Here is the caller graph for this function:

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; }

Here is the caller graph for this function:

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; }

Here is the caller graph for this function:

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; }

Here is the caller graph for this function:


Member Data Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator