Changeset 5f3dba8 in opengl-game for game-gui-sdl.cpp
- Timestamp:
- Aug 12, 2019, 3:45:20 AM (6 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- e1a7f5a
- Parents:
- 69dccfe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
game-gui-sdl.cpp
r69dccfe r5f3dba8 10 10 // cout << "SDL could not initialize! SDL_Error: " << SDL_GetError() << endl; 11 11 12 return SDL_Init(SDL_INIT_EVERYTHING) < 0 ? RTWO_ERROR : RTWO_SUCCESS; 12 // TODO: Print out contextual error messages instead of just returning 13 if (SDL_Init(SDL_INIT_EVERYTHING) < 0) { 14 return RTWO_ERROR; 15 } 16 17 int imgFlags = IMG_INIT_PNG; 18 if (!(IMG_Init(imgFlags) & imgFlags)) { 19 return RTWO_ERROR; 20 } 21 22 if (TTF_Init() == -1) { 23 return RTWO_ERROR; 24 } 25 26 return RTWO_SUCCESS; 13 27 } 14 28
Note:
See TracChangeset
for help on using the changeset viewer.