Attributes.h 434 B

123456789101112131415161718192021222324252627
  1. #ifndef ATTRIBUTES_H
  2. #define ATTRIBUTES_H
  3. #include "utils/ArrayList.h"
  4. class Attributes final {
  5. struct Attribute final {
  6. int count;
  7. int size;
  8. int type;
  9. bool normalized;
  10. };
  11. ArrayList<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