Sets the default format to be used.
| 701 | |
| 702 | //! Sets the default format to be used. |
| 703 | ILboolean ILAPIENTRY ilFormatFunc(ILenum Mode) |
| 704 | { |
| 705 | switch (Mode) |
| 706 | { |
| 707 | //case IL_COLOUR_INDEX: |
| 708 | case IL_RGB: |
| 709 | case IL_RGBA: |
| 710 | case IL_BGR: |
| 711 | case IL_BGRA: |
| 712 | case IL_LUMINANCE: |
| 713 | case IL_LUMINANCE_ALPHA: |
| 714 | ilStates[ilCurrentPos].ilFormatMode = Mode; |
| 715 | break; |
| 716 | default: |
| 717 | ilSetError(IL_INVALID_PARAM); |
| 718 | return IL_FALSE; |
| 719 | } |
| 720 | return IL_TRUE; |
| 721 | } |
| 722 | |
| 723 | |
| 724 | //! Sets the default type to be used. |
nothing calls this directly
no test coverage detected