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

Function ILAPIENTRY ilutIsEnabled

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

Source from the content-addressed store, hash-verified

117
118
119ILboolean ILAPIENTRY ilutIsEnabled(ILenum Mode)
120{
121 switch (Mode)
122 {
123 case ILUT_PALETTE_MODE:
124 return ilutStates[ilutCurrentPos].ilutUsePalettes;
125
126 case ILUT_FORCE_INTEGER_FORMAT:
127 return ilutStates[ilutCurrentPos].ilutForceIntegerFormat;
128
129 case ILUT_OPENGL_CONV:
130 return ilutStates[ilutCurrentPos].ilutOglConv;
131
132 case ILUT_GL_USE_S3TC:
133 return ilutStates[ilutCurrentPos].ilutUseS3TC;
134
135 case ILUT_GL_GEN_S3TC:
136 return ilutStates[ilutCurrentPos].ilutGenS3TC;
137
138 case ILUT_GL_AUTODETECT_TEXTURE_TARGET:
139 return ilutStates[ilutCurrentPos].ilutAutodetectTextureTarget;
140
141
142 default:
143 ilSetError(ILUT_INVALID_ENUM);
144 }
145
146 return IL_FALSE;
147}
148
149
150ILboolean ILAPIENTRY ilutIsDisabled(ILenum Mode)

Callers

nothing calls this directly

Calls 1

ilSetErrorFunction · 0.85

Tested by

no test coverage detected