]> git.tdb.fi Git - libs/game.git/blobdiff - source/game/setups.mgs
Use the setup generator to create setup structs
[libs/game.git] / source / game / setups.mgs
diff --git a/source/game/setups.mgs b/source/game/setups.mgs
new file mode 100644 (file)
index 0000000..3c36d37
--- /dev/null
@@ -0,0 +1,25 @@
+namespace "Msp::Game";
+api "MSPGAME_API" "msp/game/mspgame_api.h";
+
+enum CameraScaling
+{
+       value ORIGINAL_SIZE;
+       value SCALE_TO_FIT;
+       value SCALE_TO_COVER;
+       value STRETCH_TO_FIT;
+};
+
+component Camera
+{
+       field field_of_view_y angle { default "60"; };
+       field size vector2 { default "16.0f/9.0f, 1.0f"; };
+       field near_clip float { default "0.1f"; };
+       field far_clip float { default "100.0f"; };
+       field scaling CameraScaling { default "SCALE_TO_FIT"; };
+       field sequence_name string;
+};
+
+component MeshSource
+{
+       field object_name string;
+};