Changeset 9854 in orxonox.OLD for branches/new_class_id/src/lib/graphics/resource_shader.cc
- Timestamp:
- Sep 28, 2006, 10:17:56 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/graphics/resource_shader.cc
r9847 r9854 4 4 #include "substring.h" 5 5 6 ResourceShader::ResourceShader(const std::string& vertexShaderName, const std::string& fragmentShaderName )6 ResourceShader::ResourceShader(const std::string& vertexShaderName, const std::string& fragmentShaderName, const Resources::KeepLevel& keepLevel) 7 7 : Resource(&ResourceShader::type) 8 8 { … … 23 23 24 24 this->Shader::load(vertexFileName, fragmentFileName); 25 this->Resource::addResource(new ResourceShader::ShaderResourcePointer(vertexShaderName+','+fragmentShaderName, Resources::KeepLevel(0), this->Shader::dataPointer()));25 this->Resource::addResource(new ResourceShader::ShaderResourcePointer(vertexShaderName+','+fragmentShaderName, keepLevel, this->Shader::dataPointer())); 26 26 } 27 27 } 28 28 29 ResourceShader ResourceShader::createFromString(const std::string& loadString )29 ResourceShader ResourceShader::createFromString(const std::string& loadString, const Resources::KeepLevel& keepLevel) 30 30 { 31 31 std::string vertexShaderName; … … 38 38 fragmentShaderName = shaderNames[1]; 39 39 40 return ResourceShader(vertexShaderName, fragmentShaderName );40 return ResourceShader(vertexShaderName, fragmentShaderName, keepLevel); 41 41 } 42 42
Note: See TracChangeset
for help on using the changeset viewer.