object.hpp 426 B

12345678910111213141516171819202122232425262728
  1. //
  2. // object.hpp
  3. // graphics
  4. //
  5. // Created by Sam Jaffe on 7/5/16.
  6. //
  7. #pragma once
  8. #include "game/math/math_fwd.hpp"
  9. #include "game/math/shape.hpp"
  10. #include "vector/vector.hpp"
  11. #include "material.hpp"
  12. namespace graphics {
  13. struct bound {
  14. math::vec2 corner;
  15. math::vec2 size;
  16. };
  17. struct object {
  18. bound location;
  19. math::quad points;
  20. material material;
  21. bound frame;
  22. }; // size:56, align:4
  23. }