libigl v2.5.0
Loading...
Searching...
No Matches
bind_vertex_attrib_array.h
Go to the documentation of this file.
1#ifndef IGL_OPENGL_BIND_VERTEX_ATTRIB_ARRAY_H
2#define IGL_OPENGL_BIND_VERTEX_ATTRIB_ARRAY_H
3#include "gl.h"
4#include "../igl_inline.h"
5#include <Eigen/Core>
6#include <string>
7namespace igl
8{
9 namespace opengl
10 {
20 template <typename Scalar, int RowsAtCompileTime, int ColsAtCompileTime>
22 const GLuint program_shader,
23 const std::string &name,
24 GLuint bufferID,
25 const Eigen::Matrix<Scalar,RowsAtCompileTime,ColsAtCompileTime,Eigen::RowMajor> &M,
26 const bool refresh);
27 }
28}
29#ifndef IGL_STATIC_LIBRARY
30#include "bind_vertex_attrib_array.cpp"
31#endif
32#endif
#define IGL_INLINE
Definition igl_inline.h:15
GLint bind_vertex_attrib_array(const GLuint program_shader, const std::string &name, GLuint bufferID, const Eigen::Matrix< Scalar, RowsAtCompileTime, ColsAtCompileTime, Eigen::RowMajor > &M, const bool refresh)
Bind a per-vertex array attribute and refresh its contents from an Eigen matrix.
Definition AABB.h:17