Building igl statically and moving to the dep scripts

Fixing dep build script on Windows and removing some warnings.

Use bundled igl by default.

Not building with the dependency scripts if not explicitly stated. This way, it will stay in
Fix the libigl patch to include C source files in header only mode.
This commit is contained in:
tamasmeszaros
2019-06-19 14:52:55 +02:00
parent 89e39e3895
commit 2ae2672ee9
1095 changed files with 181 additions and 5 deletions

View File

@@ -0,0 +1,38 @@
#ifndef IGL_OPENGL_VERTEX_ARRAY_H
#define IGL_OPENGL_VERTEX_ARRAY_H
#include <igl/opengl/../igl_inline.h>
#include <igl/opengl/gl.h>
#include <Eigen/Core>
namespace igl
{
namespace opengl
{
// Create a GL_VERTEX_ARRAY for a given mesh (V,F)
//
// Inputs:
// V #V by dim list of mesh vertex positions
// F #F by 3 list of mesh triangle indices into V
// Outputs:
// va_id id of vertex array
// ab_id id of array buffer (vertex buffer object)
// eab_id id of element array buffer (element/face buffer object)
//
template <
typename DerivedV,
typename DerivedF>
IGL_INLINE void vertex_array(
// Note: Unlike most libigl functions, the **input** Eigen matrices must
// be `Eigen::PlainObjectBase` because we want to directly access it's
// underlying storage. It cannot be `Eigen::MatrixBase` (see
// http://stackoverflow.com/questions/25094948/)
const Eigen::PlainObjectBase<DerivedV> & V,
const Eigen::PlainObjectBase<DerivedF> & F,
GLuint & va_id,
GLuint & ab_id,
GLuint & eab_id);
}
}
#ifndef IGL_STATIC_LIBRARY
# include "vertex_array.cpp"
#endif
#endif