- irr::video::E_VERTEX_TYPE
- scm_to_vertex_type (SCM vertex_type)
- {
- char* type = scm_to_utf8_stringn (scm_symbol_to_string (vertex_type), NULL);
- if (!strcmp (type, "standard"))
- {
- return irr::video::EVT_STANDARD;
- }
- else if (!strcmp (type, "2tcoords"))
- {
- return irr::video::EVT_2TCOORDS;
- }
- else if (!strcmp (type, "tangents"))
- {
- return irr::video::EVT_TANGENTS;
- }
- else
- {
- scm_error (scm_arg_type_key, NULL, "Wrong vertex_type: ~S",
- scm_list_1 (vertex_type), scm_list_1 (vertex_type));
- }
- }
+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);
+}