Attributes.h 345 B

123456789101112131415161718192021
  1. #ifndef ATTRIBUTES_H
  2. #define ATTRIBUTES_H
  3. #include "utils/ArrayList.h"
  4. #include "wrapper/GL.h"
  5. class Attributes final {
  6. ArrayList<GL::Attribute, 10> attributes;
  7. friend class VertexBuffer;
  8. public:
  9. Attributes& addFloat(int count);
  10. Attributes& addColor4();
  11. Attributes& addSpacer();
  12. private:
  13. void set() const;
  14. };
  15. #endif