func LoadTexture(file string) (uint32, error) {
	if strings.HasSuffix(file, pngExt) {
		return fromPng(file)
	}
	return 0, fmt.Errorf("Attempted to load texture from unsupported file type: %v", file)
}
// LoadTexture loads the texture in the provided file, based on the file extension.
LoadTexture loads the texture in the provided file, based on the file extension.
// LoadTexture loads the texture in the provided file based on the file extension .
func LoadTexture(file string) (uint32, error) {
	if strings.HasSuffix(file, pngExt) {
		return fromPng(file)
	}
	return 0, fmt.Errorf("Attempted to load texture from unsupported file type: %v", file)
}
func LoadTexture ( file string ) ( uint32 , error ) { if strings . HasSuffix ( file , pngExt ) { return fromPng ( file ) } return 0 , fmt . Errorf ( " " , file ) }
LoadTexture loads the texture in the provided file, based on the file extension.
LoadTexture loads the texture in the provided file based on the file extension .