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
+4 -4
View File
@@ -2,7 +2,7 @@
//#define IGL_NO_CORK
//#undef IGL_STATIC_LIBRARY
#include <igl/copyleft/cgal/mesh_boolean.h>
#include <igl/viewer/Viewer.h>
#include <igl/opengl/glfw/Viewer.h>
#include <Eigen/Core>
#include <iostream>
@@ -24,7 +24,7 @@ const char * MESH_BOOLEAN_TYPE_NAMES[] =
"Resolve",
};
void update(igl::viewer::Viewer &viewer)
void update(igl::opengl::glfw::Viewer &viewer)
{
igl::copyleft::cgal::mesh_boolean(VA,FA,VB,FB,boolean_type,VC,FC,J);
Eigen::MatrixXd C(FC.rows(),3);
@@ -44,7 +44,7 @@ void update(igl::viewer::Viewer &viewer)
std::cout<<"A "<<MESH_BOOLEAN_TYPE_NAMES[boolean_type]<<" B."<<std::endl;
}
bool key_down(igl::viewer::Viewer &viewer, unsigned char key, int mods)
bool key_down(igl::opengl::glfw::Viewer &viewer, unsigned char key, int mods)
{
switch(key)
{
@@ -79,7 +79,7 @@ int main(int argc, char *argv[])
igl::readOFF(TUTORIAL_SHARED_PATH "/cheburashka.off",VA,FA);
igl::readOFF(TUTORIAL_SHARED_PATH "/decimated-knight.off",VB,FB);
// Plot the mesh with pseudocolors
igl::viewer::Viewer viewer;
igl::opengl::glfw::Viewer viewer;
// Initialize
update(viewer);