X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgame%2Fsetups.mgs;fp=source%2Fgame%2Fsetups.mgs;h=3c36d3723a0b2d2533102beaae5fc487d33c2117;hb=239cd38de0ddbb5931151523530a5e7272e16f7f;hp=0000000000000000000000000000000000000000;hpb=548f5db5fb32e84c4b1128ac98a79403885ddadd;p=libs%2Fgame.git diff --git a/source/game/setups.mgs b/source/game/setups.mgs new file mode 100644 index 0000000..3c36d37 --- /dev/null +++ b/source/game/setups.mgs @@ -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; +};