1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-12-04 06:32:22 -05:00
Simba/Units/MMLAddon/LPInc/Wrappers/lp_colourconv.inc
Merlijn Wajer f45d6bbad7 Lape: Update wrappers.
Squashes following commits:

-   Lape: New wrappers.
-   Lape: Updated exported methods.
-   Lape: Renamed wrapper files.
-   Lape: Renamed methods in exported methods.
-   Lape: Update MMLPSThread.
-   Lape: Compilation fixes.
2011-08-06 14:57:03 +02:00

50 lines
2.0 KiB
PHP

procedure Lape_ColorToRGB(const Params: PParamArray);
begin
ps_ColorToRGB(Pinteger(Params^[0])^, PInteger(Params^[1])^, PInteger(Params^[2])^, PInteger(Params^[3])^);
end;
procedure Lape_RGBtoColor(const Params: PParamArray; const Result: Pointer);
begin
PColor(Result)^ := ps_RGBtoColor(PInteger(Params^[0])^, PInteger(Params^[1])^, PInteger(Params^[2])^);
end;
procedure Lape_ColorToHSL(const Params: PParamArray);
begin
ps_ColorToHSL(PInteger(Params^[0])^, PExtended(Params^[1])^, PExtended(Params^[2])^, PExtended(Params^[3])^);
end;
procedure Lape_HSLToColor(const Params: PParamArray; const Result: Pointer);
begin
PColor(Result)^ := ps_HSLToColor(PExtended(Params^[0])^, PExtended(Params^[1])^, PExtended(Params^[2])^);
end;
procedure Lape_ColorToXYZ(const Params: PParamArray);
begin
ps_ColorToXYZ(PInteger(Params^[0])^, PExtended(Params^[1])^, PExtended(Params^[2])^, PExtended(Params^[3])^);
end;
procedure Lape_XYZToColor(const Params: PParamArray; const Result: Pointer);
begin
PColor(Result)^ := ps_XYZToColor(PExtended(Params^[0])^, PExtended(Params^[1])^, PExtended(Params^[2])^);
end;
procedure Lape_RGBToHSL(const Params: PParamArray);
begin
ps_RGBToHSL(PInteger(Params^[0])^, PInteger(Params^[1])^, PInteger(Params^[2])^, PExtended(Params^[3])^, PExtended(Params^[4])^, PExtended(Params^[5])^);
end;
procedure Lape_HSLtoRGB(const Params: PParamArray);
begin
ps_HSLtoRGB(Pextended(Params^[0])^, Pextended(Params^[1])^, Pextended(Params^[2])^, PInteger(Params^[3])^, PInteger(Params^[4])^, PInteger(Params^[5])^);
end;
procedure Lape_RGBToXYZ(const Params: PParamArray);
begin
ps_RGBToXYZ(PInteger(Params^[0])^, PInteger(Params^[1])^, PInteger(Params^[2])^, PExtended(Params^[3])^, PExtended(Params^[4])^, PExtended(Params^[5])^);
end;
procedure Lape_XYZToRGB(const Params: PParamArray);
begin
ps_XYZToRGB(PExtended(Params^[0])^, PExtended(Params^[1])^, PExtended(Params^[2])^, PInteger(Params^[3])^, PInteger(Params^[4])^, PInteger(Params^[5])^);
end;