libigl v2.5.0
Loading...
Searching...
No Matches
map_texture.h
Go to the documentation of this file.
1#ifndef IGL_OPENGL_GLFW_MAP_TEXTURE_H
2#define IGL_OPENGL_GLFW_MAP_TEXTURE_H
3
4#include "../../igl_inline.h"
5#include <Eigen/Core>
6#include <vector>
7
8namespace igl
9{
10 namespace opengl
11 {
12 namespace glfw
13 {
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,
36 const int w,
37 const int h,
38 const int nc,
39 std::vector<unsigned char> & out_data,
40 int & out_w,
41 int & out_h,
42 int & out_nc);
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,
50 const int w,
51 const int h,
52 const int nc,
53 std::vector<unsigned char> & out_data);
54 }
55 }
56}
57
58#ifndef IGL_STATIC_LIBRARY
59# include "map_texture.cpp"
60#endif
61
62#endif
#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 ...
Definition AABB.h:17