85 tex->
create (GL_TEXTURE_2D, GL_RGBA32F, w, h, GL_RGB, GL_FLOAT, &flipped[0], 0);
static bool loadPPMImage(string filename, Tucano::Texture *tex) __attribute__((unused))
Loads a texture from a PPM file. The texture receives data in the range [0,1] to create a FLOAT textu...
Definition: ppmIO.hpp:46
An OpenGL texture. It can be a simple texture or an FBO texture.
Definition: texture.hpp:41
GLuint create(GLenum type, GLenum int_format, int w, int h, GLenum fmt, GLenum pix_type, const GLvoid *data=NULL, int dpt=256)
Creates a texture object and returns its handler.
Definition: texture.hpp:146