|
@@ -47,7 +47,7 @@ public:
|
|
|
|
|
|
|
|
/// @name Accessors
|
|
/// @name Accessors
|
|
|
/// @{
|
|
/// @{
|
|
|
- const std::vector<std::string>& getTranformFeedbackVaryings() const
|
|
|
|
|
|
|
+ const Vector<std::string>& getTranformFeedbackVaryings() const
|
|
|
{
|
|
{
|
|
|
return trffbVaryings;
|
|
return trffbVaryings;
|
|
|
}
|
|
}
|
|
@@ -111,14 +111,14 @@ protected:
|
|
|
friend class PrePreprocessor;
|
|
friend class PrePreprocessor;
|
|
|
|
|
|
|
|
/// Names and and ids for transform feedback varyings
|
|
/// Names and and ids for transform feedback varyings
|
|
|
- std::vector<TrffbVaryingPragma> trffbVaryings;
|
|
|
|
|
|
|
+ Vector<TrffbVaryingPragma> trffbVaryings;
|
|
|
boost::array<std::string, ST_NUM> shaderSources;
|
|
boost::array<std::string, ST_NUM> shaderSources;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
Output output; ///< The most important variable
|
|
Output output; ///< The most important variable
|
|
|
- std::vector<std::string> trffbVaryings;
|
|
|
|
|
|
|
+ Vector<std::string> trffbVaryings;
|
|
|
/// The parseFileForPragmas fills this
|
|
/// The parseFileForPragmas fills this
|
|
|
- std::vector<std::string> sourceLines;
|
|
|
|
|
|
|
+ Vector<std::string> sourceLines;
|
|
|
boost::array<CodeBeginningPragma, ST_NUM> shaderStarts;
|
|
boost::array<CodeBeginningPragma, ST_NUM> shaderStarts;
|
|
|
static boost::array<const char*, ST_NUM> startTokens; ///< XXX
|
|
static boost::array<const char*, ST_NUM> startTokens; ///< XXX
|
|
|
|
|
|
|
@@ -140,17 +140,17 @@ protected:
|
|
|
/// @todo
|
|
/// @todo
|
|
|
void parseStartPragma(scanner::Scanner& scanner,
|
|
void parseStartPragma(scanner::Scanner& scanner,
|
|
|
const std::string& filename, uint depth,
|
|
const std::string& filename, uint depth,
|
|
|
- const std::vector<std::string>& lines);
|
|
|
|
|
|
|
+ const Vector<std::string>& lines);
|
|
|
|
|
|
|
|
/// @todo
|
|
/// @todo
|
|
|
void parseIncludePragma(scanner::Scanner& scanner,
|
|
void parseIncludePragma(scanner::Scanner& scanner,
|
|
|
const std::string& filename, uint depth,
|
|
const std::string& filename, uint depth,
|
|
|
- const std::vector<std::string>& lines);
|
|
|
|
|
|
|
+ const Vector<std::string>& lines);
|
|
|
|
|
|
|
|
/// @todo
|
|
/// @todo
|
|
|
void parseTrffbVarying(scanner::Scanner& scanner,
|
|
void parseTrffbVarying(scanner::Scanner& scanner,
|
|
|
const std::string& filename, uint depth,
|
|
const std::string& filename, uint depth,
|
|
|
- const std::vector<std::string>& lines);
|
|
|
|
|
|
|
+ const Vector<std::string>& lines);
|
|
|
|
|
|
|
|
/// Searches inside the Output::attributes or Output::trffbVaryings
|
|
/// Searches inside the Output::attributes or Output::trffbVaryings
|
|
|
/// vectors
|
|
/// vectors
|
|
@@ -158,8 +158,8 @@ protected:
|
|
|
/// @param what The name of the varying or attrib
|
|
/// @param what The name of the varying or attrib
|
|
|
/// @return Iterator to the vector
|
|
/// @return Iterator to the vector
|
|
|
template<typename Type>
|
|
template<typename Type>
|
|
|
- typename std::vector<Type>::const_iterator findNamed(
|
|
|
|
|
- const std::vector<Type>& vec,
|
|
|
|
|
|
|
+ typename Vector<Type>::const_iterator findNamed(
|
|
|
|
|
+ const Vector<Type>& vec,
|
|
|
const std::string& what) const;
|
|
const std::string& what) const;
|
|
|
|
|
|
|
|
void printSourceLines() const; ///< For debugging
|
|
void printSourceLines() const; ///< For debugging
|
|
@@ -170,11 +170,11 @@ protected:
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename Type>
|
|
template<typename Type>
|
|
|
-typename std::vector<Type>::const_iterator
|
|
|
|
|
|
|
+typename Vector<Type>::const_iterator
|
|
|
ShaderProgramPrePreprocessor::findNamed(
|
|
ShaderProgramPrePreprocessor::findNamed(
|
|
|
- const std::vector<Type>& vec, const std::string& what) const
|
|
|
|
|
|
|
+ const Vector<Type>& vec, const std::string& what) const
|
|
|
{
|
|
{
|
|
|
- typename std::vector<Type>::const_iterator it = vec.begin();
|
|
|
|
|
|
|
+ typename Vector<Type>::const_iterator it = vec.begin();
|
|
|
while(it != vec.end() && it->name != what)
|
|
while(it != vec.end() && it->name != what)
|
|
|
{
|
|
{
|
|
|
++it;
|
|
++it;
|