X-Git-Url: https://git.jsancho.org/?p=guile-irrlicht.git;a=blobdiff_plain;f=src%2Fvideo-driver.cpp;h=61683f2436459c24734641160e9588b227ab27e1;hp=bd01f6ea7fce5ebee3a45d4ade6b4f94eaa1bfdd;hb=f842432ad7cfd7f530188e2a4848aea3da03719e;hpb=564416a9178fd8cef21364c2d921af6c8166115d diff --git a/src/video-driver.cpp b/src/video-driver.cpp index bd01f6e..61683f2 100644 --- a/src/video-driver.cpp +++ b/src/video-driver.cpp @@ -23,7 +23,6 @@ #include #include "color.h" -#include "device.h" #include "gsubr.h" #include "gui-environment.h" #include "material.h" @@ -47,7 +46,6 @@ extern "C" { DEFINE_GSUBR ("end-scene", 1, 0, 0, irr_video_endScene); DEFINE_GSUBR ("get-fps", 1, 0, 0, irr_video_getFPS); DEFINE_GSUBR ("get-texture", 2, 0, 0, irr_video_getTexture); - DEFINE_GSUBR ("get-video-driver", 1, 0, 0, irr_getVideoDriver); DEFINE_GSUBR ("set-transform!", 3, 0, 0, irr_video_setTransform); } @@ -182,22 +180,6 @@ extern "C" { return SCM_UNSPECIFIED; } - SCM - irr_getVideoDriver (SCM wrapped_obj) - { - irr::video::IVideoDriver* driver; - if (device_p (wrapped_obj)) - { - driver = unwrap_device (wrapped_obj)->getVideoDriver (); - } - else - { - scm_error (scm_arg_type_key, NULL, "Cannot get video driver from object: ~S", - scm_list_1 (wrapped_obj), scm_list_1 (wrapped_obj)); - } - return wrap_video_driver (driver); - } - irr::video::E_TRANSFORMATION_STATE scm_to_transformation_state (SCM transformation_state) {