Changeset 76d19a8 in opengl-game


Ignore:
Timestamp:
Sep 1, 2019, 9:33:31 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
9546928
Parents:
5529ab5
Message:

Wrap all the code in openglgame and vulkangame in a CrashLogger

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main-opengl.cpp

    r5529ab5 r76d19a8  
    33#include <iostream>
    44
     5#include "crash-logger.hpp"
     6
    57using namespace std;
    68
     9int __main(int argc, char* argv[]);
     10
    711int main(int argc, char* argv[]) {
     12   CrashLogger logger(__main, argc, argv);
     13
     14   exit(0);
     15}
     16
     17int __main(int argc, char* argv[]) {
    818
    919#ifdef NDEBUG
  • main-vulkan.cpp

    r5529ab5 r76d19a8  
    33#include <iostream>
    44
     5#include "crash-logger.hpp"
     6
    57using namespace std;
    68
     9int __main(int argc, char* argv[]);
     10
    711int main(int argc, char* argv[]) {
     12   CrashLogger logger(__main, argc, argv);
     13
     14   exit(0);
     15}
     16
     17int __main(int argc, char* argv[]) {
    818
    919#ifdef NDEBUG
  • makefile

    r5529ab5 r76d19a8  
    2525        $(CC) $^ $(DEP) $(CFLAGS) -o $@
    2626
    27 openglgame: main-opengl.cpp opengl-game.cpp game-gui-glfw.cpp
     27openglgame: main-opengl.cpp opengl-game.cpp crash-logger.cpp game-gui-glfw.cpp
    2828        $(CC) $^ $(DEP) $(CFLAGS) -o $@
    2929
     
    5959        $(CC) $(CXX_FLAGS) -o $@ $^ $(LIB_FLAGS) -DGAMEGUI_INCLUDE_VULKAN
    6060
    61 vulkangame: main-vulkan.cpp vulkan-game.cpp game-gui-sdl.cpp
     61vulkangame: main-vulkan.cpp vulkan-game.cpp crash-logger.cpp game-gui-sdl.cpp
    6262        $(CC) $(CXX_FLAGS) -o $@ $^ $(LIB_FLAGS)
    6363
  • upgrade-TODO.txt

    r5529ab5 r76d19a8  
     1TODO
     2-----------
     3
    14- Create shader configs in Vulkan and sample vertex data for all the shaders currently used in OpenGL
    25- Rewrite the system to store scene objects, copy their vertex data to vertex buffers and
     
    912  - Assuming SDL supports detecting key presses and key releases, re-implement the key state array
    1013  - On mouse clicks, re-implement the ability to detect clicks on scene objects
     14- Implement the actual game functionality
     15
     16CONMPLETED
     17-----------
     18
    1119- Add CrashLogger functionality
    12 - Implement the actual game functionality
Note: See TracChangeset for help on using the changeset viewer.