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

#ifndef ACGL_OPENGL_DATA_COLORSPACE_HH
#define ACGL_OPENGL_DATA_COLORSPACE_HH

#include <ACGL/ACGL.hh>
#include <ACGL/OpenGL/GL.hh>

namespace ACGL{
namespace OpenGL{

Janis Born's avatar
Janis Born committed
16
enum class ColorSpace
17
{
Janis Born's avatar
Janis Born committed
18
19
20
    AUTO_DETECT,
    LINEAR,
    SRGB
21
22
};

23
24
//! Recommends an OpenGL internal format for a given pair of format and color spaces
GLenum recommendedInternalFormat(GLenum _format, ColorSpace _colorSpace);
25
26
27
28
29

} // OpenGL
} // ACGL

#endif // ACGL_OPENGL_DATA_COLORSPACE_HH