TextureDataPPMWriter.hh 937 Bytes
Newer Older
1
2
3
4
5
/***********************************************************************
 * Copyright 2011-2012 Computer Graphics Group RWTH Aachen University. *
 * All rights reserved.                                                *
 * Distributed under the terms of the MIT License (see LICENSE.TXT).   *
 **********************************************************************/
6
7
8
9
10
11

#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.
12
 * Expects 8 bit RGB texture data (as can be provided by Texture::getImageData)
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 */

#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