#include <libguile.h>
#include "color.h"
-#include "device.h"
#include "gsubr.h"
#include "gui-environment.h"
#include "material.h"
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);
}
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)
{