Changeset d8cb15e in opengl-game for game-gui-glfw.cpp
- Timestamp:
- Aug 30, 2019, 7:30:53 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 5529ab5
- Parents:
- d5f2b42
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
game-gui-glfw.cpp
rd5f2b42 rd8cb15e 1 1 #include "game-gui-glfw.hpp" 2 2 3 string GameGui_GLFW::s_errorMessage; 4 5 void glfw_error_callback(int error, const char* description) { 6 GameGui_GLFW::s_errorMessage = description; 7 } 8 9 string& GameGui_GLFW::GetError() { 10 return GameGui_GLFW::s_errorMessage; 11 } 12 3 13 bool GameGui_GLFW::Init() { 4 return glfwInit() == GLFW_TRUE ? RTWO_SUCCESS : RTWO_SUCCESS; 14 GameGui_GLFW::s_errorMessage = "No error"; 15 glfwSetErrorCallback(glfw_error_callback); 16 17 return glfwInit() == GLFW_TRUE ? RTWO_SUCCESS : RTWO_ERROR; 5 18 } 6 19
Note:
See TracChangeset
for help on using the changeset viewer.