Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_LowLevel🞂GetWrapProcFunction

GetWrapProc

Returns the procedure delegate corresponding to a given TWrapMode and range.

Declarations ​

pascal
function GetWrapProc(WrapMode: TWrapMode): TWrapProc; overload;
function GetWrapProc(WrapMode: TWrapMode; Max: Integer): TWrapProc; overload;
Overload Details

Overload 1 ​

pascal
function GetWrapProc(WrapMode: TWrapMode): TWrapProc; overload;

Returns the standard TWrapProc procedure for the specified WrapMode.

ParameterTypeDescription
WrapModeTWrapModeWrap mode (wmClamp, wmRepeat, wmMirror, wmReflect).
TypeDescription
TWrapProcProcedure pointer matching the requested WrapMode.

Overload 2 ​

pascal
function GetWrapProc(WrapMode: TWrapMode; Max: Integer): TWrapProc; overload;

Returns the optimal TWrapProc procedure for the specified WrapMode and range [0..Max].

ParameterTypeDescription
WrapModeTWrapModeWrap mode.
MaxIntegerUpper range bound.
TypeDescription
TWrapProcOptimal procedure pointer.

Description ​

GetWrapProc inspects WrapMode (and optional range Max) and returns the appropriate single-parameter wrapping routine pointer (Clamp, Wrap/WrapPow2, Mirror, or Reflect/ReflectPow2).

See also ​