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

Function ILAPIENTRY ilOriginFunc

DevIL/src-IL/src/il_states.cpp:686–699  ·  view source on GitHub ↗

Sets the default origin to be used.

Source from the content-addressed store, hash-verified

684
685//! Sets the default origin to be used.
686ILboolean ILAPIENTRY ilOriginFunc(ILenum Mode)
687{
688 switch (Mode)
689 {
690 case IL_ORIGIN_LOWER_LEFT:
691 case IL_ORIGIN_UPPER_LEFT:
692 ilStates[ilCurrentPos].ilOriginMode = Mode;
693 break;
694 default:
695 ilSetError(IL_INVALID_PARAM);
696 return IL_FALSE;
697 }
698 return IL_TRUE;
699}
700
701
702//! Sets the default format to be used.

Callers

nothing calls this directly

Calls 1

ilSetErrorFunction · 0.85

Tested by

no test coverage detected