X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2FSkyBoxModel.hpp;fp=src%2Fmodel%2FSkyBoxModel.hpp;h=0000000000000000000000000000000000000000;hb=3542823a1af7f5063d7cc8da84efa248eb889b8a;hp=84555eea4e1c656b0a3e7bf93e0052bbe3ddaea8;hpb=1c2994622a6b73f90cbd3ec9c09ffb4d7724cab4;p=blank.git diff --git a/src/model/SkyBoxModel.hpp b/src/model/SkyBoxModel.hpp deleted file mode 100644 index 84555ee..0000000 --- a/src/model/SkyBoxModel.hpp +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef BLANK_MODEL_SKYBOXMODEL_HPP_ -#define BLANK_MODEL_SKYBOXMODEL_HPP_ - -#include "../graphics/VertexArray.hpp" - -#include -#include - - -namespace blank { - -class SkyBoxModel { - -public: - using Position = glm::vec3; - using Index = unsigned int; - - using Positions = std::vector; - using Indices = std::vector; - - enum Attribute { - ATTRIB_VERTEX, - ATTRIB_INDEX, - ATTRIB_COUNT, - }; - - struct Buffer { - - Positions vertices; - Indices indices; - - void Clear() noexcept { - vertices.clear(); - indices.clear(); - } - - void Reserve(size_t p, size_t i) { - vertices.reserve(p); - indices.reserve(i); - } - - }; - - using VAO = VertexArray; - -public: - void LoadUnitBox(); - void Update(const Buffer &) noexcept; - - void Draw() const noexcept; - -private: - VAO vao; - -}; - -} - -#endif