123456789101112131415161718192021222324252627 |
- #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();
- private:
- void set() const;
- };
- #endif
|