GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA,
GL_RED, GL_RED, GL_RED, GL_ONE,
GL_RED, GL_RED, GL_RED, GL_GREEN,
- GL_BLUE, GL_GREEN, GL_RED, GL_ALPHA
+ GL_BLUE, GL_GREEN, GL_RED, GL_ALPHA,
+ GL_RED, GL_GREEN, GL_BLUE, GL_ONE
};
}
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");
}