118 void VertexProgram::setFragmentStyle(const FragmentStyle newFragmentStyle) |
118 void VertexProgram::setFragmentStyle(const FragmentStyle newFragmentStyle) |
119 { |
119 { |
120 this->fragmentStyle = newFragmentStyle; |
120 this->fragmentStyle = newFragmentStyle; |
121 } |
121 } |
122 |
122 |
123 void VertexProgram::build(const Document *document) |
123 void VertexProgram::build(const EditorTabWidget *document) |
124 { |
124 { |
125 constexpr glm::vec3 color = {0.0, 1.0, 1.0}; |
125 constexpr glm::vec3 color = {0.0, 1.0, 1.0}; |
126 this->data.clear(); |
126 this->data.clear(); |
127 const std::vector<glm::vec3> sphere = ::sphere(8 / 2); |
127 const std::vector<glm::vec3> sphere = ::sphere(8 / 2); |
128 document->applyToVertices([&](const glm::vec3&, const VertexMap::VertexInfo& info) |
128 document->applyToVertices([&](const glm::vec3&, const VertexMap::VertexInfo& info) |