Public Member Functions | Private Attributes | Friends

shader::ShaderName Class Reference

ID of a shader. More...

#include <_src_shader_shader_name.hh>

List of all members.

Public Member Functions

 ShaderName (void)
 ShaderName (const string &name)
bool IfDefaultShader (void) const
const string & GetString (void) const
bool operator== (const char *name) const

Private Attributes

const string mName
const bool mDefault
 if name is of the default shader (no need to be tested by operator<())

Friends

bool operator< (const ShaderName &a, const ShaderName &b)
bool operator== (const ShaderName &a, const ShaderName &b)

Detailed Description

ID of a shader.

Default shader can be referenced by either Shader("default") or Shader(). Rationale is that Lua scripts could use "default" or omit name.


Constructor & Destructor Documentation

shader::ShaderName::ShaderName ( void   )  [inline]
shader::ShaderName::ShaderName ( const string &  name  )  [inline]

Member Function Documentation

const string& shader::ShaderName::GetString ( void   )  const [inline]
bool shader::ShaderName::IfDefaultShader ( void   )  const [inline]
bool shader::ShaderName::operator== ( const char *  name  )  const [inline]

Friends And Related Function Documentation

bool operator< ( const ShaderName a,
const ShaderName b 
) [friend]
bool operator== ( const ShaderName a,
const ShaderName b 
) [friend]

Member Data Documentation

const bool shader::ShaderName::mDefault [private]

if name is of the default shader (no need to be tested by operator<())

const string shader::ShaderName::mName [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:12