]> git.tdb.fi Git - libs/game.git/blobdiff - source/game/camera.h
Use the setup generator to create setup structs
[libs/game.git] / source / game / camera.h
index 57f7395f33c85cdf6125e638f48b20561d8166a2..e981afcd3b2e85dfaf4d34d8d5f6ce65413e27b8 100644 (file)
@@ -5,27 +5,10 @@
 #include <msp/linal/vector.h>
 #include "component.h"
 #include "mspgame_api.h"
+#include "setups.h"
 
 namespace Msp::Game {
 
-enum class CameraScaling
-{
-       ORIGINAL_SIZE,
-       SCALE_TO_FIT,
-       SCALE_TO_COVER,
-       STRETCH_TO_FIT
-};
-
-struct CameraSetup
-{
-       Geometry::Angle<float> field_of_view_y = Geometry::Angle<float>::from_degrees(60);
-       LinAl::Vector<float, 2> size = { 16.0f/9.0f, 1.0f };
-       float near_clip = 0.1f;
-       float far_clip = 100.0f;
-       CameraScaling scaling = CameraScaling::SCALE_TO_FIT;
-       std::string sequence_name;
-};
-
 struct CameraData
 {
        Geometry::Angle<float> fov_y;