X-Git-Url: https://git.jsancho.org/?p=guile-irrlicht.git;a=blobdiff_plain;f=src%2Fvertex3d.cpp;h=649bc56e3f458d6a9d0510774cfaad8ff6c3c83a;hp=d7629eafc43f5c7ba3ce720b819df45d5da4418d;hb=41a6ad96e81a8d8153c54877c4c12f61100677a9;hpb=bf2cb00e2ef19e2eb33557f900405f836ebe65a3 diff --git a/src/vertex3d.cpp b/src/vertex3d.cpp index d7629ea..649bc56 100644 --- a/src/vertex3d.cpp +++ b/src/vertex3d.cpp @@ -27,10 +27,8 @@ #include "vector3d.h" #include "vertex3d.h" - using namespace irr; - SCM video_S3DVertex_make (SCM position, SCM normal, @@ -45,26 +43,19 @@ video_S3DVertex_make (SCM position, return scm_from_pointer ((void*) vertex, NULL); } - SCM video_S3DVertex_Pos (SCM vertex) { video::S3DVertex* s3dvertex = (video::S3DVertex*) scm_to_pointer (vertex); return scm_from_vector3df (s3dvertex->Pos); } - -extern "C" { - - void - init_vertex3d (void) - { - DEFINE_GSUBR ("video_S3DVertex_make", 4, 0, 0, video_S3DVertex_make); - DEFINE_GSUBR ("video_S3DVertex_Pos", 1, 0, 0, video_S3DVertex_Pos); - } - +void +init_vertex3d (void) +{ + DEFINE_GSUBR ("video_S3DVertex_make", 4, 0, 0, video_S3DVertex_make); + DEFINE_GSUBR ("video_S3DVertex_Pos", 1, 0, 0, video_S3DVertex_Pos); } - video::E_VERTEX_TYPE scm_to_vertex_type (SCM vertex_type) {