1 #ifndef BLANK_MODEL_BLOCKMODEL_HPP_
2 #define BLANK_MODEL_BLOCKMODEL_HPP_
14 using Position = glm::vec3;
15 using Color = glm::vec3;
17 using Index = unsigned int;
19 using Positions = std::vector<Position>;
20 using Colors = std::vector<Color>;
21 using Lights = std::vector<Light>;
22 using Indices = std::vector<Index>;
32 void Clear() noexcept {
39 void Reserve(size_t p, size_t i) {
49 BlockModel() noexcept;
50 ~BlockModel() noexcept;
52 BlockModel(const BlockModel &) = delete;
53 BlockModel &operator =(const BlockModel &) = delete;
55 BlockModel(BlockModel &&) noexcept;
56 BlockModel &operator =(BlockModel &&) noexcept;
58 void Update(const Buffer &) noexcept;
60 void Draw() const noexcept;
72 GLuint handle[ATTRIB_COUNT];