Changeset 2e77b3f in opengl-game


Ignore:
Timestamp:
Sep 14, 2019, 12:29:44 AM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
c559904
Parents:
cabdd5c
git-author:
Dmitry Portnoy <dmitry.portnoy@…> (09/14/19 00:27:26)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (09/14/19 00:29:44)
Message:

Move the debug status output from the main functions to the openglgame and vulkangame classes

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main-opengl.cpp

    rcabdd5c r2e77b3f  
    1717
    1818int __main(int argc, char* argv[]) {
    19 
    20 #ifdef NDEBUG
    21    cout << "DEBUGGING IS OFF" << endl;
    22 #else
    23    cout << "DEBUGGING IS ON" << endl;
    24 #endif
    25 
    2619   cout << "Starting OpenGL Game..." << endl;
    2720
  • main-vulkan.cpp

    rcabdd5c r2e77b3f  
    1717
    1818int __main(int argc, char* argv[]) {
    19 
    20 #ifdef NDEBUG
    21    cout << "DEBUGGING IS OFF" << endl;
    22 #else
    23    cout << "DEBUGGING IS ON" << endl;
    24 #endif
    25 
    2619   cout << "Starting Vulkan Game..." << endl;
    2720
  • opengl-game.cpp

    rcabdd5c r2e77b3f  
    44
    55#include "consts.hpp"
    6 
    7 #include "game-gui-glfw.hpp"
    86
    97using namespace std;
     
    1816
    1917void OpenGLGame::run(int width, int height, unsigned char guiFlags) {
     18#ifdef NDEBUG
     19   cout << "DEBUGGING IS OFF" << endl;
     20#else
     21   cout << "DEBUGGING IS ON" << endl;
     22#endif
     23
     24   cout << "OpenGL Game" << endl;
     25
    2026   if (initWindow(width, height, guiFlags) == RTWO_ERROR) {
    2127      return;
  • vulkan-game.cpp

    rcabdd5c r2e77b3f  
    1616
    1717void VulkanGame::run(int width, int height, unsigned char guiFlags) {
     18   cout << "DEBUGGING IS " << (ENABLE_VALIDATION_LAYERS ? "ON" : "OFF") << endl;
     19
     20   cout << "Vulkan Game" << endl;
     21
    1822   if (initWindow(width, height, guiFlags) == RTWO_ERROR) {
    1923      return;
  • vulkan-game.hpp

    rcabdd5c r2e77b3f  
    33
    44#include "game-gui-sdl.hpp"
     5
     6#ifdef NDEBUG
     7   const bool ENABLE_VALIDATION_LAYERS = false;
     8#else
     9   const bool ENABLE_VALIDATION_LAYERS = true;
     10#endif
    511
    612class VulkanGame {
Note: See TracChangeset for help on using the changeset viewer.