Showing the changes to libraries/render-utils/src/RenderScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -13,20 +13,20 @@ · 12 unmodified lines | ||
| 13 | 13 | |
| 14 | 14 | RenderScriptingInterface::RenderScriptingInterface() {}; |
| 15 | 15 | |
| 16 | −void RenderScriptingInterface::setEngineToneMappingToneCurve(const QString& toneCurve) { | |
| 17 | − if (toneCurve == QString("None")) { | |
| 18 | − _tone.toneCurve = 0; | |
| 19 | − } else if (toneCurve == QString("Gamma22")) { | |
| 20 | − _tone.toneCurve = 1; | |
| 21 | − } else if (toneCurve == QString("Reinhard")) { | |
| 22 | − _tone.toneCurve = 2; | |
| 23 | − } else if (toneCurve == QString("Filmic")) { | |
| 24 | − _tone.toneCurve = 3; | |
| 16 | +void RenderScripting::Tone::setCurve(const QString& curve) { | |
| 17 | + if (curve == QString("None")) { | |
| 18 | + toneCurve = 0; | |
| 19 | + } else if (curve == QString("Gamma22")) { | |
| 20 | + toneCurve = 1; | |
| 21 | + } else if (curve == QString("Reinhard")) { | |
| 22 | + toneCurve = 2; | |
| 23 | + } else if (curve == QString("Filmic")) { | |
| 24 | + toneCurve = 3; | |
| 25 | 25 | } |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | −QString RenderScriptingInterface::getEngineToneMappingToneCurve() const { | |
| 29 | − switch (_tone.toneCurve) { | |
| 28 | +QString RenderScripting::Tone::getCurve() const { | |
| 29 | + switch (toneCurve) { | |
| 30 | 30 | case 0: |
| 31 | 31 | return QString("None"); |
| 32 | 32 | case 1: |
| @@ -38,4 +38,10 @@ QString RenderScriptingInterface::getEngineToneMappingToneCurve() const { · 5 unmodified lines | ||
| 38 | 38 | default: |
| 39 | 39 | return QString("Filmic"); |
| 40 | 40 | }; |
| 41 | +} | |
| 42 | + | |
| 43 | +void RenderScriptingInterface::setItemCounts(const render::RenderContext::ItemsConfig& items) { | |
| 44 | + _opaque->setCounts(items.opaque); | |
| 45 | + _transparent->setCounts(items.transparent); | |
| 46 | + _overlay3D->setCounts(items.overlay3D); | |
| 41 | 47 | } |