src/gl/vertexprogram.cpp

changeset 200
ca23936b455b
parent 196
6bcb284679d4
child 214
8e1fe64ce4e3
equal deleted inserted replaced
199:6988973515d2 200:ca23936b455b
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)

mercurial