Changeset 9847 in orxonox.OLD for branches/new_class_id/src/lib/graphics/resource_shader.cc
- Timestamp:
- Sep 27, 2006, 11:25:43 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/graphics/resource_shader.cc
r9823 r9847 5 5 6 6 ResourceShader::ResourceShader(const std::string& vertexShaderName, const std::string& fragmentShaderName) 7 : NewResource(&ResourceShader::type)7 : Resource(&ResourceShader::type) 8 8 { 9 9 Resources::StorePointer* ptr = this->acquireResource(vertexShaderName +','+fragmentShaderName); … … 17 17 { 18 18 PRINTF(5)("NOT FOUND SHADER: %s\n", vertexShaderName.c_str()); 19 std::string vertexFileName = this-> NewResource::locateFile(vertexShaderName);19 std::string vertexFileName = this->Resource::locateFile(vertexShaderName); 20 20 std::string fragmentFileName; 21 21 if (!fragmentShaderName.empty()) 22 fragmentFileName = this-> NewResource::locateFile(fragmentShaderName);22 fragmentFileName = this->Resource::locateFile(fragmentShaderName); 23 23 24 24 this->Shader::load(vertexFileName, fragmentFileName); 25 this-> NewResource::addResource(new ResourceShader::ShaderResourcePointer(vertexShaderName+','+fragmentShaderName, Resources::KeepLevel(0), this->Shader::dataPointer()));25 this->Resource::addResource(new ResourceShader::ShaderResourcePointer(vertexShaderName+','+fragmentShaderName, Resources::KeepLevel(0), this->Shader::dataPointer())); 26 26 } 27 27 }
Note: See TracChangeset
for help on using the changeset viewer.