TextureDataPPMWriter.hh 896 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2011, Computer Graphics Group RWTH Aachen University         //
// All rights reserved.                                                       //
////////////////////////////////////////////////////////////////////////////////

#ifndef ACGL_OPENGL_DATA_TEXTUREDATAPPMWRITER_HH
#define ACGL_OPENGL_DATA_TEXTUREDATAPPMWRITER_HH

/**
 * Helper function for writing the contents of a TextureData object into a PPM file.
11
 * Expects 8 bit RGB texture data (as can be provided by Texture::getImageData)
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 */

#include <ACGL/ACGL.hh>
#include <ACGL/OpenGL/Data/TextureData.hh>

#include <string>

namespace ACGL{
namespace OpenGL{

bool saveTextureDataToPPM(const ConstSharedTextureData& _textureData, const std::string& _filename);

} // OpenGL
} // ACGL

#endif // ACGL_OPENGL_DATA_TEXTUREDATAPPMWRITER_HH