Changeset c6fec84 in opengl-game


Ignore:
Timestamp:
Sep 16, 2019, 6:42:19 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
90a424f
Parents:
f133da0
Message:

Update the makefile to correctly compile openglgame

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • game-gui-sdl.cpp

    rf133da0 rc6fec84  
    142142
    143143bool GameGui_SDL::createVulkanSurface(VkInstance instance, VkSurfaceKHR* surface) {
    144    return SDL_Vulkan_CreateSurface(window, instance, surface) ?
    145       RTWO_SUCCESS : RTWO_ERROR;
     144   return SDL_Vulkan_CreateSurface(window, instance, surface) ? RTWO_SUCCESS : RTWO_ERROR;
    146145}
    147146
  • makefile

    rf133da0 rc6fec84  
    1414endif
    1515ifeq ($(OS),Linux)
    16         DEP = -lglfw3 -lGLEW -lGL -ldl -lX11 -lXrandr -lXxf86vm -lXinerama -lXcursor  -pthread
     16        DEP = -lglfw3 -lGLEW -lGL -ldl -lX11 -lXrandr -lXxf86vm -lXinerama -lXcursor -pthread
    1717endif
    1818
     
    2525        $(CC) $^ $(DEP) $(CFLAGS) -o $@
    2626
    27 openglgame: main-opengl.cpp opengl-game.cpp crash-logger.cpp logger.cpp game-gui-glfw.cpp
    28         $(CC) $^ $(DEP) $(CFLAGS) -o $@
     27openglgame: main-opengl.cpp opengl-game.cpp crash-logger.cpp logger.cpp game-gui-glfw.cpp imgui_impl_glfw_gl3.cpp $(IMGUI_FILES)
     28        $(CC) $^ $(DEP) $(CFLAGS) -o $@ -DGLEW_STATIC
    2929
    3030CXX_FLAGS = -std=c++17 -Wall -pedantic# -O3 -rdynamic
  • opengl-game.cpp

    rf133da0 rc6fec84  
    119119               break;
    120120            case UI_EVENT_KEY:
    121                cout << "Got a key event" << endl;
    122121               if (e.key.keycode == GLFW_KEY_ESCAPE) {
    123122                  quit = true;
Note: See TracChangeset for help on using the changeset viewer.