1 #ifndef __TECHNIQUE_H__INCLUDED__
2 #define __TECHNIQUE_H__INCLUDED__
7 #include <boost/smart_ptr.hpp>
31 std::string vertexProgram;
34 std::string fragmentProgram;
241 typedef std::vector< TextureUnit >TextureUnitList;
242 typedef std::vector< ShaderParam >ShaderParamList;
244 TextureUnitList textureUnits;
245 ShaderParamList shaderParams;
298 void setProgram(
const std::string &vertex,
const std::string &fragment );
319 const std::string &deflt,
320 const std::string ¶mName,
330 void addShaderParam(
const std::string&name,
float value[4],
bool optional );
342 return textureUnits.size();
348 return textureUnits[
index];
354 return textureUnits[
index];
360 return shaderParams.size();
366 return shaderParams[
index];
372 return shaderParams[
index];
391 explicit Technique(
const std::string &name );
416 return compiled && this->programVersion == programVersion;
438 #endif //__TECHNIQUE_H__INCLUDED__