Changeset 1ce9afe in opengl-game for game-gui-sdl.cpp


Ignore:
Timestamp:
Sep 2, 2019, 7:40:49 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
7fc5e27
Parents:
301d0d4
Message:

Add a fullscreen flag to GameGui::CreateWindow and implement fullscreen functionality and the ability to detect key presses in openglgame

File:
1 edited

Legend:

Unmodified
Added
Removed
  • game-gui-sdl.cpp

    r301d0d4 r1ce9afe  
    3737}
    3838
    39 void* GameGui_SDL::CreateWindow(const string& title, unsigned int width, unsigned int height) {
     39void* GameGui_SDL::CreateWindow(const string& title, unsigned int width, unsigned int height, bool fullscreen) {
     40   cout << "About to go fullscreen in SDL..." << endl;
     41
     42   // TODO: Make an OpenGL version of the SDL_CreateWindow call as well
     43
    4044   // On Apple's OS X you must set the NSHighResolutionCapable Info.plist property to YES,
    4145   // otherwise you will not receive a High DPI OpenGL canvas.
Note: See TracChangeset for help on using the changeset viewer.