object.hpp 470 B

1234567891011121314151617181920212223242526272829
  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 "game/util/flyweight.hpp"
  11. #include "vector/vector.hpp"
  12. namespace graphics {
  13. class material;
  14. struct bound {
  15. math::vec2 corner;
  16. math::vec2 size;
  17. };
  18. struct object {
  19. bound location;
  20. math::dim2::quad points;
  21. flyweight<material> material;
  22. bound frame;
  23. }; // size:56, align:4
  24. }