Shark.cpp
branchv_0
changeset 30 e15d04d98fca
parent 28 4cbd9c0beb4c
child 31 22827574296e
equal deleted inserted replaced
29:69903e30b00d 30:e15d04d98fca
   574 }
   574 }
   575 
   575 
   576 void Shark::Impl::loadTextures() {
   576 void Shark::Impl::loadTextures() {
   577 	// Load default texture if there is no configured:
   577 	// Load default texture if there is no configured:
   578 	if (cfg.textures.empty())
   578 	if (cfg.textures.empty())
   579 		cfg.textures.push_back({getDefaultFile("textures/default.png")});
   579 		cfg.textures.push_back({getDefaultFile("textures/default.img")});
   580 
   580 
   581 	for (const Configuration::Texture& tex : cfg.textures) {
   581 	for (const Configuration::Texture& tex : cfg.textures) {
   582 		std::shared_ptr<ImageLoader::ImageBuffer>
   582 		std::shared_ptr<ImageLoader::ImageBuffer>
   583 				img(imageLoader.loadImage(MappedFile(tex.fileName)));
   583 				img(imageLoader.loadImage(MappedFile(tex.fileName)));
   584 		textures.push_back(std::make_shared<Texture>(
   584 		textures.push_back(std::make_shared<Texture>(