Commit 33c4e25a authored by Jan Möbius's avatar Jan Möbius
Browse files

per vertex and per halfedge textures by christopher


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11728 383ad7c9-94d9-4d36-a494-682f7c89f535
parent cd999f07
......@@ -452,6 +452,7 @@ draw(GLState& _state, const DrawModes::DrawMode& _drawMode) {
glDepthRange(0.01, 1.0);
drawMesh_->disableColors();
drawMesh_->usePerVertexTexcoords();
draw_faces();
glDepthRange(0.0, 1.0);
......@@ -468,6 +469,7 @@ draw(GLState& _state, const DrawModes::DrawMode& _drawMode) {
drawMesh_->setSmoothShading();
drawMesh_->disableColors();
drawMesh_->usePerVertexTexcoords();
draw_faces();
glDepthRange(0.0, 1.0);
......@@ -487,6 +489,7 @@ draw(GLState& _state, const DrawModes::DrawMode& _drawMode) {
glDepthRange(0.01, 1.0);
drawMesh_->disableColors();
drawMesh_->usePerHalfedgeTexcoords();
draw_faces();
glDepthRange(0.0, 1.0);
......@@ -507,6 +510,7 @@ draw(GLState& _state, const DrawModes::DrawMode& _drawMode) {
drawMesh_->setSmoothShading();
drawMesh_->disableColors();
drawMesh_->usePerHalfedgeTexcoords();
draw_faces();
glDepthRange(0.0, 1.0);
......@@ -1136,15 +1140,6 @@ update_topology() {
glBindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, 0);
}
template<class Mesh>
void
MeshNodeT<Mesh>::
update_textures() {
drawMesh_->updateTextures();
}
template<class Mesh>
void
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment