Changeset a6f6833 in opengl-game for opengl-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
  • opengl-game.cpp

    r09e15a4 ra6f6833  
    6666   }
    6767
    68    int actualWidth=0, actualHeight=0;
    69    gui->getWindowSize(&actualWidth, &actualHeight);
    70 
    7168   cout << "Target window size: (" << width << ", " << height << ")" << endl;
    72    cout << "Actual window size: (" << actualWidth << ", " << actualHeight << ")" << endl;
     69   cout << "Actual window size: (" << gui->getWindowWidth() << ", " << gui->getWindowHeight() << ")" << endl;
    7370
    7471   return RTWO_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.