Model.h 890 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <optional>
  3. #include <string>
  4. #include <glm/vec2.hpp>
  5. #include "Types.h"
  6. namespace WallpaperEngine::Data::Model {
  7. // TODO: FIND A BETTER NAMING SO THIS DOESN'T COLLIDE WITH THE NAMESPACE ITSELF
  8. struct ModelStruct {
  9. std::string filename;
  10. MaterialUniquePtr material;
  11. bool solidlayer;
  12. // not actually batched, each object still draws on its own
  13. bool instanced;
  14. bool fullscreen;
  15. bool passthrough;
  16. bool autosize;
  17. /** Composition layer covering the whole project, autosize makes it the scene's size */
  18. bool projectlayer;
  19. bool nopadding;
  20. std::optional<int> width;
  21. std::optional<int> height;
  22. // autosize canvas center offset from the puppet's content pivot (rigs off-center in their bounds)
  23. std::optional<glm::vec2> cropOffset;
  24. std::optional<std::string> puppet;
  25. };
  26. } // namespace WallpaperEngine::Data::Model