1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef IGL_CREATE_INDEX_VBO_H
- #define IGL_CREATE_INDEX_VBO_H
- #include "igl_inline.h"
- // NOTE: It wouldn't be so hard to template this using Eigen's templates
- #include <Eigen/Core>
- #if __APPLE__
- # include <OpenGL/gl.h>
- #else
- # ifdef _WIN32
- # define NOMINMAX
- # include <Windows.h>
- # undef NOMINMAX
- # endif
- # include <GL/gl.h>
- #endif
- // Create a VBO (Vertex Buffer Object) for a list of indices:
- // GL_ELEMENT_ARRAY_BUFFER_ARB for the triangle indices (F)
- namespace igl
- {
- // Inputs:
- // F #F by 3 eigen Matrix of face (triangle) indices
- // Outputs:
- // F_vbo_id buffer id for face indices
- //
- IGL_INLINE void create_index_vbo(
- const Eigen::MatrixXi & F,
- GLuint & F_vbo_id);
- }
- #ifdef IGL_HEADER_ONLY
- # include "create_index_vbo.cpp"
- #endif
- #endif
|