Skip to content

Commit 4eee9ab

Browse files
committed
added rendering resolution info
1 parent f5e4158 commit 4eee9ab

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/objects/scripting/LuaScript.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,11 @@ void LuaScript::drawObjectNodeConfig(){
359359
if (ImGui::IsItemHovered()) ImGui::SetTooltip("%s",tempFilename.getAbsolutePath().c_str());
360360
}
361361
ImGui::Spacing();
362+
ImGui::Text("Rendering at: %.0fx%.0f",static_cast<ofTexture *>(_outletParams[0])->getWidth(),static_cast<ofTexture *>(_outletParams[0])->getHeight());
363+
ImGui::Spacing();
364+
ImGui::Spacing();
365+
ImGui::Spacing();
366+
ImGui::Spacing();
362367
if(ImGui::Button("New",ImVec2(224*scaleFactor,26*scaleFactor))){
363368
saveLuaScriptFlag = true;
364369
}

src/objects/scripting/ShaderObject.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ void ShaderObject::drawObjectNodeConfig(){
408408
if (ImGui::IsItemHovered()) ImGui::SetTooltip("%s",tempFilename.getAbsolutePath().c_str());
409409
}
410410
ImGui::Spacing();
411+
ImGui::Text("Rendering at: %.0fx%.0f",static_cast<ofTexture *>(_outletParams[0])->getWidth(),static_cast<ofTexture *>(_outletParams[0])->getHeight());
412+
ImGui::Spacing();
411413
ImGui::Spacing();
412414
ImGui::Spacing();
413415
ImGui::Spacing();

0 commit comments

Comments
 (0)