X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fcolor.cpp;h=63448b334eff560dde1093bfe0761a76ebf1a20d;hb=61aadd8525de89016f63572fd474547a1bb932de;hp=a6879c382bf4e9564b12b929f7bb272d8f48f473;hpb=704cf6c2cc3d308c625071f6e03bd20ed2d833f8;p=guile-irrlicht.git diff --git a/src/color.cpp b/src/color.cpp index a6879c3..63448b3 100644 --- a/src/color.cpp +++ b/src/color.cpp @@ -21,10 +21,19 @@ #include #include -#include "rect.h" +#include "color.h" extern "C" { + SCM + scm_from_color (irr::video::SColor color) + { + return scm_list_4 (scm_from_uint32 (color.getAlpha ()), + scm_from_uint32 (color.getRed ()), + scm_from_uint32 (color.getGreen ()), + scm_from_uint32 (color.getBlue ())); + } + irr::video::SColor scm_to_color (SCM color) {