summaryrefslogtreecommitdiff
path: root/src/view_2d.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/view_2d.hpp')
-rw-r--r--src/view_2d.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/view_2d.hpp b/src/view_2d.hpp
index 0b33380..c2b1701 100644
--- a/src/view_2d.hpp
+++ b/src/view_2d.hpp
@@ -21,6 +21,12 @@
extern const struct mrb_data_type cg_view_2d_type;
+// Receives a mrb_value that points to a View2D or a View3D and returns a
+// pointer to View2D. If the mrb_value points to a View3D, the view will be
+// cast to a VK::View2D.
+VK::View2D*
+cg_cView_to_view_2d(mrb_state *mrb, mrb_value view_value);
+
void
cg_view_2d_init(mrb_state *mrb);