| 
| bool  | background_window (GLFWwindow *&window) | 
|   | Create a background window with a valid core profile opengl context set to current.  
  | 
|   | 
| template<typename DerivedV , typename DerivedF , typename DerivedU >  | 
| 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 (out_data) of the same size.  
  | 
|   | 
| template<typename DerivedV , typename DerivedF , typename DerivedU >  | 
| 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) | 
|   | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.  
  | 
|   | 
template<typename DerivedV , typename DerivedF , typename DerivedU > 
      
        
          | bool igl::opengl::glfw::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 (out_data) of the same size. 
- Parameters
 - 
  
    | [in] | V | #V by 2 list of undeformed mesh vertex positions ∈ [0,1]²  | 
    | [in] | F | #F by 3 list of mesh triangle indices into V  | 
    | [in] | U | #U by 2 list of deformed vertex positions ∈ [0,1]²  | 
    | [in] | in_data | w*h*nc array of color values, channels, then columns, then rows (e.g., what stbi_image returns and expects)  | 
    | [in] | w | width  | 
    | [in] | h | height  | 
    | [in] | nc | number of channels  | 
    | [out] | out_data | h*w*nc list of output colors in same order as input  | 
    | [out] | out_w | width of output image  | 
    | [out] | out_h | height of output image  | 
    | [out] | out_nc | number of channels of output image | 
  
   
- Precondition
 - Seems like w,h should be equal.