1#ifndef IGL_OPENGL_GLFW_MAP_TEXTURE_H
2#define IGL_OPENGL_GLFW_MAP_TEXTURE_H
4#include "../../igl_inline.h"
30 template <
typename DerivedV,
typename DerivedF,
typename DerivedU>
32 const Eigen::MatrixBase<DerivedV> & _V,
33 const Eigen::MatrixBase<DerivedF> & _F,
34 const Eigen::MatrixBase<DerivedU> & _U,
35 const unsigned char * in_data,
39 std::vector<unsigned char> & out_data,
44 template <
typename DerivedV,
typename DerivedF,
typename DerivedU>
46 const Eigen::MatrixBase<DerivedV> & V,
47 const Eigen::MatrixBase<DerivedF> & F,
48 const Eigen::MatrixBase<DerivedU> & U,
49 const unsigned char * in_data,
53 std::vector<unsigned char> & out_data);
58#ifndef IGL_STATIC_LIBRARY
59# include "map_texture.cpp"
#define IGL_INLINE
Definition igl_inline.h:15
bool map_texture(const Eigen::MatrixBase< DerivedV > &_V, const Eigen::MatrixBase< DerivedF > &_F, const Eigen::MatrixBase< DerivedU > &_U, const unsigned char *in_data, const int w, const int h, const int nc, std::vector< unsigned char > &out_data, int &out_w, int &out_h, int &out_nc)
Given a mesh (V,F) in [0,1]² and new positions (U) and a texture image (in_data), render a new image ...