You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							561 B
						
					
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							561 B
						
					
					
				#include "../save_dds.hpp" | 
						|
#include "../save_kmg.hpp" | 
						|
#include "../save_ktx.hpp" | 
						|
 | 
						|
namespace gli | 
						|
{ | 
						|
	inline bool save(texture const & Texture, char const * Path) | 
						|
	{ | 
						|
		return save(Texture, std::string(Path)); | 
						|
	} | 
						|
 | 
						|
	inline bool save(texture const & Texture, std::string const & Path) | 
						|
	{ | 
						|
		if(Path.rfind(".dds") != std::string::npos) | 
						|
			return save_dds(Texture, Path); | 
						|
		if(Path.rfind(".kmg") != std::string::npos) | 
						|
			return save_kmg(Texture, Path); | 
						|
		if(Path.rfind(".ktx") != std::string::npos) | 
						|
			return save_ktx(Texture, Path); | 
						|
		return false; | 
						|
	} | 
						|
}//namespace gli
 | 
						|
 |