Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xs/src/igl/opengl/bind_vertex_attrib_array.cpp')
-rw-r--r--xs/src/igl/opengl/bind_vertex_attrib_array.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/xs/src/igl/opengl/bind_vertex_attrib_array.cpp b/xs/src/igl/opengl/bind_vertex_attrib_array.cpp
deleted file mode 100644
index 4aa807c18..000000000
--- a/xs/src/igl/opengl/bind_vertex_attrib_array.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include "bind_vertex_attrib_array.h"
-
-IGL_INLINE GLint igl::opengl::bind_vertex_attrib_array(
- const GLuint program_shader,
- const std::string &name,
- GLuint bufferID,
- const Eigen::Matrix<float,Eigen::Dynamic,Eigen::Dynamic,Eigen::RowMajor> &M,
- bool refresh)
-{
- GLint id = glGetAttribLocation(program_shader, name.c_str());
- if (id < 0)
- return id;
- if (M.size() == 0)
- {
- glDisableVertexAttribArray(id);
- return id;
- }
- glBindBuffer(GL_ARRAY_BUFFER, bufferID);
- if (refresh)
- glBufferData(GL_ARRAY_BUFFER, sizeof(float)*M.size(), M.data(), GL_DYNAMIC_DRAW);
- glVertexAttribPointer(id, M.cols(), GL_FLOAT, GL_FALSE, 0, 0);
- glEnableVertexAttribArray(id);
- return id;
-}