TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ OnRender()

void BakeToSlotNode::OnRender ( )
overridevirtual

Implements SNENode.

Definition at line 39 of file BakeToSlotNode.cpp.

40{
41 DrawHeader("Bake to Slot");
42 ImGui::PushItemWidth(100);
43
44 ImGui::NewLine();
45 inputPins[0]->Render();
46
47 if(ImGui::InputInt("Slot", &slot))
48 {
49 sharedData->d0 = static_cast<float>(slot);
50 }
51
52 outputPins[0]->Render();
53
54 if(slot == 0)
55 {
56 ImGui::TextColored(ImVec4(7.0f, 0.0, 0.0f, 1.0f), "Slot 0 is reserved for Height Map!");
57 }
58
59 if(slot < 0 || slot > 10)
60 {
61 slot = 1;
62 }
63
64 ImGui::PopItemWidth();
65}