Attributes.h 425 B

12345678910111213141516171819202122232425262728
  1. #ifndef ATTRIBUTES_H
  2. #define ATTRIBUTES_H
  3. #include "utils/List.h"
  4. class Attributes final {
  5. struct Attribute final {
  6. int count;
  7. int size;
  8. int type;
  9. bool normalized;
  10. };
  11. List<Attribute, 10> attributes;
  12. friend class VertexBuffer;
  13. public:
  14. Attributes& addFloat(int count);
  15. Attributes& addColor4();
  16. Attributes& addSpacer();
  17. private:
  18. void set() const;
  19. };
  20. #endif