Changeset c61323a in opengl-game for game-gui-sdl.cpp


Ignore:
Timestamp:
Sep 13, 2019, 2:51:30 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
1fcca9e
Parents:
f6521fb
Message:

Implement processEvents() and pollEvent() for GameGui_GLFW and re-implement the main loop in opengl-game using those functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • game-gui-sdl.cpp

    rf6521fb rc61323a  
    77
    88using namespace std;
    9 
    10 /*
    11 // Temporary to allow the program using this class to receive events other than keyboard events
    12 // Remove once I add a better game-gui wrapper for doing that
    13 queue<SDL_Event> events;
    14 
    15 queue<MouseEvent> mouseEvents;
    16 */
    179
    1810string GameGui_SDL::s_errorMessage;
     
    116108         case SDL_AUDIODEVICEADDED:
    117109         case SDL_AUDIODEVICEREMOVED:
     110         case SDL_TEXTEDITING: // TODO: Research this one later
    118111            event = nullptr;
    119112            return 0;
Note: See TracChangeset for help on using the changeset viewer.