Shark.cpp
branchv_0
changeset 31 22827574296e
parent 30 e15d04d98fca
child 34 8cf3812a92eb
equal deleted inserted replaced
30:e15d04d98fca 31:22827574296e
   568 		float sc;
   568 		float sc;
   569 		if (std::from_chars(scale.data(), scale.data() + scale.size(), sc).ec
   569 		if (std::from_chars(scale.data(), scale.data() + scale.size(), sc).ec
   570 				== std::errc{}) tex->setScale(sc);
   570 				== std::errc{}) tex->setScale(sc);
   571 		else std::cerr << "Invalid texture scale value - expecting float\n";
   571 		else std::cerr << "Invalid texture scale value - expecting float\n";
   572 		// tex->setScale(std::stof(scale)); // locale-dependent (. vs ,)
   572 		// tex->setScale(std::stof(scale)); // locale-dependent (. vs ,)
       
   573 	} else {
       
   574 		tex->setScale(1.);
   573 	}
   575 	}
   574 }
   576 }
   575 
   577 
   576 void Shark::Impl::loadTextures() {
   578 void Shark::Impl::loadTextures() {
   577 	// Load default texture if there is no configured:
   579 	// Load default texture if there is no configured: