object.hpp 581 B

123456789101112131415161718192021222324252627
  1. //
  2. // object.hpp
  3. // graphics
  4. //
  5. // Created by Sam Jaffe on 7/5/16.
  6. //
  7. #pragma once
  8. #include <vector>
  9. #include "game/graphics/graphics_fwd.h"
  10. #include "game/math/math_fwd.hpp"
  11. #include "game/math/shape.hpp"
  12. #include "vector/vector.hpp"
  13. namespace graphics {
  14. struct object {
  15. math::dim2::rectangle location;
  16. math::dim2::quad points;
  17. identity<material> material;
  18. math::dim2::rectangle frame;
  19. }; // size:56, align:4
  20. void vertices(std::vector<vertex> & out, object const & obj);
  21. void vertices(std::vector<vertex> & out, std::vector<object> const & obj);
  22. }