return BGR;
else if(comp==RGBA && swiz==RGB_TO_BGR)
return BGRA;
+ else if(comp==RGBA && swiz==RGBA_TO_RGB)
+ return RGB;
+ else if(comp==BGRA && swiz==RGBA_TO_RGB)
+ return BGR;
else
throw invalid_argument("swizzle_components");
}
return RGB;
else if(comp==BGRA && swiz==RGB_TO_BGR)
return RGBA;
+ else if(comp==RGB && swiz==RGBA_TO_RGB)
+ return RGBA;
+ else if(comp==BGR && swiz==RGBA_TO_RGB)
+ return BGRA;
else
throw invalid_argument("swizzle_components");
}