12345678910111213141516171819202122232425262728 |
- #ifndef ATTRIBUTES_H
- #define ATTRIBUTES_H
- #include "utils/List.h"
- class Attributes final {
- struct Attribute final {
- int count;
- int size;
- int type;
- bool normalized;
- };
- List<Attribute, 10> attributes;
- friend class VertexBuffer;
- public:
- Attributes& addFloat(int count);
- Attributes& addColor4();
- Attributes& addSpacer(int count, int size);
- private:
- void set() const;
- };
- #endif
|