]> git.jsancho.org Git - guile-irrlicht.git/blobdiff - src/vertex3d.cpp
clean code
[guile-irrlicht.git] / src / vertex3d.cpp
index d7629eafc43f5c7ba3ce720b819df45d5da4418d..649bc56e3f458d6a9d0510774cfaad8ff6c3c83a 100644 (file)
 #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)
 {