Changeset a6f6833 in opengl-game for vulkan-game.cpp


Ignore:
Timestamp:
Sep 15, 2019, 5:27:13 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
92cbc6a
Parents:
09e15a4
Message:

Remove getWindowSize() from game-gui and instead add getWindowWidth(), getWindowHeight(), and refreshWindowSize() (which updates the internal variables returned by the first two functions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.cpp

    r09e15a4 ra6f6833  
    7878   }
    7979
    80    int actualWidth, actualHeight;
    81    gui->getWindowSize(&actualWidth, &actualHeight);
    82 
    8380   cout << "Target window size: (" << width << ", " << height << ")" << endl;
    84    cout << "Actual window size: (" << actualWidth << ", " << actualHeight << ")" << endl;
     81   cout << "Actual window size: (" << gui->getWindowWidth() << ", " << gui->getWindowHeight() << ")" << endl;
    8582
    8683   return RTWO_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.