Changeset 8667f76 in opengl-game for game-gui-glfw.cpp


Ignore:
Timestamp:
Jul 19, 2019, 9:49:52 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
80edd70
Parents:
0e6ecf3
git-author:
Dmitry Portnoy <dmitry.portnoy@…> (07/19/19 21:45:27)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (07/19/19 21:49:52)
Message:

Move getWindowSize and getRequiredExtensions to the game gui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • game-gui-glfw.cpp

    r0e6ecf3 r8667f76  
    2626      RTWO_SUCCESS : RTWO_ERROR;
    2727}
     28
     29vector<const char*> GameGui_GLFW::GetRequiredExtensions() {
     30   uint32_t glfwExtensionCount = 0;
     31   const char** glfwExtensions;
     32
     33   glfwExtensions = glfwGetRequiredInstanceExtensions(&glfwExtensionCount);
     34
     35   vector<const char*> extensions(glfwExtensions, glfwExtensions + glfwExtensionCount);
     36
     37   return extensions;
     38}
     39
     40void GameGui_GLFW::GetWindowSize(int* width, int* height) {
     41   glfwGetFramebufferSize(window, width, height);
     42}
Note: See TracChangeset for help on using the changeset viewer.