History

Nest JS props in RenderScriptingInterface

Zach Pomerantz committed 10 years ago

Commit c6a2f5b1 parent 5a86f0c4 files · +96 −70Browse files

Showing the changes to libraries/render-utils/src/RenderScriptingInterface.cpp (1 of 4 files). Show all

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t