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
1313
1414 RenderScriptingInterface::RenderScriptingInterface() {};
1515
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;
2525 }
2626 }
2727
28−QString RenderScriptingInterface::getEngineToneMappingToneCurve() const {
29− switch (_tone.toneCurve) {
28+QString RenderScripting::Tone::getCurve() const {
29+ switch (toneCurve) {
3030 case 0:
3131 return QString("None");
3232 case 1:
@@ -38,4 +38,10 @@ QString RenderScriptingInterface::getEngineToneMappingToneCurve() const { · 5 unmodified lines
3838 default:
3939 return QString("Filmic");
4040 };
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);
4147 }

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