Changeset f0cc877 in opengl-game for new-game.cpp


Ignore:
Timestamp:
May 8, 2018, 3:21:52 AM (6 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
93462c6
Parents:
5b3462b
Message:

Add code to create a fullscreen window, which will be used to create the main menu screen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • new-game.cpp

    r5b3462b rf0cc877  
    843843      ImGui::SetNextWindowSize(ImVec2(85, 22), ImGuiCond_Once);
    844844      ImGui::SetNextWindowPos(ImVec2(10, 50), ImGuiCond_Once);
    845       ImGui::Begin("WndStats", NULL, ImGuiWindowFlags_NoTitleBar |
    846                                ImGuiWindowFlags_NoResize |
    847                                ImGuiWindowFlags_NoMove);
     845      ImGui::Begin("WndStats", NULL,
     846         ImGuiWindowFlags_NoTitleBar |
     847         ImGuiWindowFlags_NoResize |
     848         ImGuiWindowFlags_NoMove);
    848849      ImGui::Text("Score: ???");
    849850      ImGui::End();
     
    853854      ImGui::SetNextWindowPos(ImVec2(380, 10), ImGuiCond_Once);
    854855      ImGui::SetNextWindowSize(ImVec2(250, 35), ImGuiCond_Once);
    855       ImGui::Begin("WndMenubar", NULL, ImGuiWindowFlags_NoTitleBar |
     856      ImGui::Begin("WndMenubar", NULL,
     857         ImGuiWindowFlags_NoTitleBar |
    856858         ImGuiWindowFlags_NoResize |
    857859         ImGuiWindowFlags_NoMove);
     
    864866   }
    865867
     868   // Main Menu
     869   /*
     870   {
     871      int padding = 4;
     872      ImGui::SetNextWindowPos(ImVec2(-padding, -padding), ImGuiCond_Once);
     873      ImGui::SetNextWindowSize(ImVec2(width+2*padding, height+2*padding), ImGuiCond_Once);
     874      ImGui::Begin("WndMain", NULL,
     875         ImGuiWindowFlags_NoTitleBar |
     876         ImGuiWindowFlags_NoResize |
     877         ImGuiWindowFlags_NoMove);
     878      ImGui::End();
     879   }
     880   */
     881
    866882   ImGui::Render();
    867883   ImGui_ImplGlfwGL3_RenderDrawData(ImGui::GetDrawData());
Note: See TracChangeset for help on using the changeset viewer.