| 349 | |
| 350 | |
| 351 | static const char *formatString(int glFormat) |
| 352 | { |
| 353 | switch(glFormat) |
| 354 | { |
| 355 | case GL_RGB: return "RGB"; |
| 356 | case GL_RGBA: return "RGBA"; |
| 357 | case GL_BGR: return "BGR"; |
| 358 | case GL_BGRA: return "BGRA"; |
| 359 | #ifdef GL_ABGR_EXT |
| 360 | case GL_ABGR_EXT: return "ABGR"; |
| 361 | #endif |
| 362 | case GL_RED: return "COMPONENT"; |
| 363 | default: return "????"; |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | |
| 368 | bool VirtualDrawable::checkRenderMode(void) |