32 namespace ImageImporter
47 string ext = filename.substr(filename.find_last_of(
".") + 1);
48 if( ext.compare(
"pam") == 0)
52 else if (ext.compare(
"ppm") == 0)
56 std::cerr <<
"format not supported : " << ext.c_str() << std::endl;
70 string ext = filename.substr(filename.find_last_of(
".") + 1);
71 if( ext.compare(
"pam") == 0)
75 else if (ext.compare(
"ppm") == 0)
79 std::cerr <<
"format not supported : " << ext.c_str() << std::endl;
static bool writeImage(string filename, Tucano::Framebuffer *tex, int attach=0) __attribute__((unused))
Saves a framebuffer attachment to an image file.
Definition: imageIO.hpp:68
Definition: bufferobject.hpp:34
static bool loadImage(string filename, Tucano::Texture *tex) __attribute__((unused))
Definition: imageIO.hpp:45
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
A wrapper class for creating and using FBOs.
Definition: framebuffer.hpp:44
static bool loadPAMImage(string filename, Tucano::Texture *tex) __attribute__((unused))
Definition: pamIO.hpp:47
static bool writePAMImage(string filename, Tucano::Framebuffer *fbo, int attach=0) __attribute__((unused))
Saves a framebuffer attachment to an image file Note that since the input is a float image...
Definition: pamIO.hpp:157
An OpenGL texture. It can be a simple texture or an FBO texture.
Definition: texture.hpp:41