CrystalSpace

Public API Reference

Public Member Functions
CS::Graphics::ShaderVarNameParser Class Reference

Helper class to extract the actual shader var name and array indices given a shader var identifier containing both. More...

#include <csgfx/shadervarnameparser.h>

List of all members.

Public Member Functions

template<typename ArrayType >
void FillArrayWithIndices (ArrayType &arr) const
 Fill some array with the indices.
size_t GetErrorPosition () const
 Return the location of a parse error in the identifier (or (size_t)~0 if none occured)
size_t GetIndexNum () const
 Get how many indices there are.
size_t GetIndexValue (size_t index) const
 Get the nth index value. Index 0 is leftmost.
const char * GetShaderVarName () const
 Get the name part of the shader var.
 ShaderVarNameParser (const char *identifier)
 Set up with a shader var identifier.

Detailed Description

Helper class to extract the actual shader var name and array indices given a shader var identifier containing both.

Definition at line 38 of file shadervarnameparser.h.


Constructor & Destructor Documentation

Set up with a shader var identifier.


Member Function Documentation

template<typename ArrayType >
void CS::Graphics::ShaderVarNameParser::FillArrayWithIndices ( ArrayType &  arr) const [inline]

Fill some array with the indices.

Definition at line 65 of file shadervarnameparser.h.

Return the location of a parse error in the identifier (or (size_t)~0 if none occured)

Definition at line 53 of file shadervarnameparser.h.

Get how many indices there are.

Definition at line 59 of file shadervarnameparser.h.

size_t CS::Graphics::ShaderVarNameParser::GetIndexValue ( size_t  index) const [inline]

Get the nth index value. Index 0 is leftmost.

Definition at line 61 of file shadervarnameparser.h.

Get the name part of the shader var.

Definition at line 56 of file shadervarnameparser.h.


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

Generated for Crystal Space 2.0 by doxygen 1.7.6.1