They're now rougly in order from most to least used by category
{
switch(comp)
{
- case STENCIL_INDEX:
- case DEPTH_COMPONENT:
case RED:
case LUMINANCE:
+ case DEPTH_COMPONENT:
+ case STENCIL_INDEX:
return 1;
case RG:
case LUMINANCE_ALPHA:
enum PixelComponents
{
- STENCIL_INDEX = GL_STENCIL_INDEX,
- DEPTH_COMPONENT = GL_DEPTH_COMPONENT,
RED = GL_RED,
RG = GL_RG,
RGB = GL_RGB,
BGR = GL_BGR,
BGRA = GL_BGRA,
LUMINANCE = GL_LUMINANCE,
- LUMINANCE_ALPHA = GL_LUMINANCE_ALPHA
+ LUMINANCE_ALPHA = GL_LUMINANCE_ALPHA,
+ DEPTH_COMPONENT = GL_DEPTH_COMPONENT,
+ STENCIL_INDEX = GL_STENCIL_INDEX
};
enum PixelFormat