| 383 | |
| 384 | |
| 385 | ILboolean ILAPIENTRY ilutRenderer(ILenum Renderer) |
| 386 | { |
| 387 | if (Renderer > ILUT_WIN32) { |
| 388 | ilSetError(ILUT_INVALID_VALUE); |
| 389 | return IL_FALSE; |
| 390 | } |
| 391 | |
| 392 | switch (Renderer) |
| 393 | { |
| 394 | #ifdef ILUT_USE_OPENGL |
| 395 | case ILUT_OPENGL: |
| 396 | return ilutGLInit(); |
| 397 | #endif |
| 398 | |
| 399 | #ifdef ILUT_USE_WIN32 |
| 400 | case ILUT_WIN32: |
| 401 | return ilutWin32Init(); |
| 402 | #endif |
| 403 | |
| 404 | #ifdef ILUT_USE_DIRECTX8 |
| 405 | case ILUT_DIRECT3D8: |
| 406 | return ilutD3D8Init(); |
| 407 | #endif |
| 408 | |
| 409 | #ifdef ILUT_USE_DIRECTX9 |
| 410 | case ILUT_DIRECT3D9: |
| 411 | return ilutD3D9Init(); |
| 412 | #endif |
| 413 | |
| 414 | #ifdef ILUT_USE_DIRECTX10 |
| 415 | case ILUT_DIRECT3D10: |
| 416 | return ilutD3D10Init(); |
| 417 | #endif |
| 418 | |
| 419 | default: |
| 420 | ilSetError(ILUT_NOT_SUPPORTED); |
| 421 | } |
| 422 | |
| 423 | return IL_FALSE; |
| 424 | } |
nothing calls this directly
no test coverage detected