Overte C++ Documentation
TonemappingCurve.h
1 //
2 // Created by HifiExperiments on 6/23/24
3 // Copyright 2024 Overte e.V.
4 //
5 // Distributed under the Apache License, Version 2.0.
6 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
7 //
8 
9 #ifndef hifi_TonemappingCurve_h
10 #define hifi_TonemappingCurve_h
11 
12 #include "QString"
13 
14 /*@jsdoc
15  * <p>The tonemapping curve applied to the final rendering.</p>
16  * <table>
17  * <thead>
18  * <tr><th>Value</th><th>Description</th></tr>
19  * </thead>
20  * <tbody>
21  * <tr><td><code>"rgb"</code></td><td>No tonemapping, colors are kept in RGB.</td></tr>
22  * <tr><td><code>"srgb"</code></td><td>Colors are converted to sRGB.</td></tr>
23  * <tr><td><code>"reinhard"</code></td><td>Reinhard tonemapping is applied.</td></tr>
24  * <tr><td><code>"filmic"</code></td><td>Filmic tonemapping is applied.</td></tr>
25  * </tbody>
26  * </table>
27  * @typedef {string} TonemappingCurve
28  */
29 
30 enum class TonemappingCurve : uint8_t {
31  RGB = 0,
32  SRGB,
33  REINHARD,
34  FILMIC
35 };
36 
37 class TonemappingCurveHelpers {
38 public:
39  static QString getNameForTonemappingCurve(TonemappingCurve curve);
40 };
41 
42 #endif // hifi_TonemappingCurve_h