rm shader, tutorial uses new viewer refactor

This commit is contained in:
Alec Jacobson
2017-04-16 17:08:54 -04:00
parent 15c328640f
commit fdd42ecfb2
78 changed files with 316 additions and 4341 deletions
+3 -3
View File
@@ -3,7 +3,7 @@
#include <igl/harmonic.h>
#include <igl/map_vertices_to_circle.h>
#include <igl/readOFF.h>
#include <igl/viewer/Viewer.h>
#include <igl/opengl/glfw/Viewer.h>
#include "tutorial_shared_path.h"
@@ -14,7 +14,7 @@ Eigen::MatrixXd initial_guess;
bool show_uv = false;
bool key_down(igl::viewer::Viewer& viewer, unsigned char key, int modifier)
bool key_down(igl::opengl::glfw::Viewer& viewer, unsigned char key, int modifier)
{
if (key == '1')
show_uv = false;
@@ -76,7 +76,7 @@ int main(int argc, char *argv[])
V_uv *= 20;
// Plot the mesh
igl::viewer::Viewer viewer;
igl::opengl::glfw::Viewer viewer;
viewer.data.set_mesh(V, F);
viewer.data.set_uv(V_uv);
viewer.callback_key_down = &key_down;