#ifndef IGL_OPENGL_READ_PIXELS_H #define IGL_OPENGL_READ_PIXELS_H #include "../igl_inline.h" #include "gl.h" #include namespace igl { namespace opengl { /// Read full viewport into color, alpha and depth arrays suitable for /// igl::png::writePNG /// /// @param[in] width width of viewport /// @param[in] height height of viewport /// @param[out] R width by height list of red values /// @param[out] G width by height list of green values /// @param[out] B width by height list of blue values /// @param[out] A width by height list of alpha values /// @param[out] D width by height list of depth values template IGL_INLINE void read_pixels( const GLuint width, const GLuint height, Eigen::Matrix & R, Eigen::Matrix & G, Eigen::Matrix & B, Eigen::Matrix & A, Eigen::Matrix & D); } } #ifndef IGL_STATIC_LIBRARY #include "read_pixels.cpp" #endif #endif