MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY ilutRenderer

Function ILAPIENTRY ilutRenderer

DevIL/src-ILUT/src/ilut_states.cpp:385–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383
384
385ILboolean 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}

Callers

nothing calls this directly

Calls 6

ilSetErrorFunction · 0.85
ilutGLInitFunction · 0.85
ilutWin32InitFunction · 0.85
ilutD3D8InitFunction · 0.85
ilutD3D9InitFunction · 0.85
ilutD3D10InitFunction · 0.85

Tested by

no test coverage detected