Changeset cabdd5c in opengl-game for new-game.cpp


Ignore:
Timestamp:
Sep 14, 2019, 12:13:54 AM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
2e77b3f
Parents:
cb01aff
Message:

Mark which parts of the old code were moved over to the new openglgame and vulkangame code and remove some TODOs that were moved over

File:
1 edited

Legend:

Unmodified
Added
Removed
  • new-game.cpp

    rcb01aff rcabdd5c  
    287287*/
    288288
     289/*** START OF REFACTORED CODE ***/
    289290// Helps to test logging during crashes
    290291void badFunc() {
     
    368369      cout << "OpenGL debug message callback is not supported" << endl;
    369370   }
     371/*** END OF REFACTORED CODE ***/
    370372
    371373   srand(time(0));
     
    955957      bindUniformData(modelGroups[TYPE_EXPLOSION].attribs["cur_time"]);
    956958
     959/*** START OF REFACTORED CODE ***/
    957960      // Render scene
    958961
    959962      glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    960 
    961       // Anton's book suggests placing this here, after glClear(). Check it's impact on framerate
    962       //glViewport(0, 0, windowWidth, windowHeight);
     963/*** END OF REFACTORED CODE ***/
    963964
    964965      switch (curState) {
Note: See TracChangeset for help on using the changeset viewer.