]> git.tdb.fi Git - libs/game.git/blob - source/game/setups.mgs
Use the setup generator to create setup structs
[libs/game.git] / source / game / setups.mgs
1 namespace "Msp::Game";
2 api "MSPGAME_API" "msp/game/mspgame_api.h";
3
4 enum CameraScaling
5 {
6         value ORIGINAL_SIZE;
7         value SCALE_TO_FIT;
8         value SCALE_TO_COVER;
9         value STRETCH_TO_FIT;
10 };
11
12 component Camera
13 {
14         field field_of_view_y angle { default "60"; };
15         field size vector2 { default "16.0f/9.0f, 1.0f"; };
16         field near_clip float { default "0.1f"; };
17         field far_clip float { default "100.0f"; };
18         field scaling CameraScaling { default "SCALE_TO_FIT"; };
19         field sequence_name string;
20 };
21
22 component MeshSource
23 {
24         field object_name string;
25 };