Changeset cd487fb in opengl-game for vulkan-game.cpp


Ignore:
Timestamp:
Nov 12, 2019, 9:48:50 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
b8777b7
Parents:
e3bef3a
git-author:
Dmitry Portnoy <dmitry.portnoy@…> (11/12/19 21:25:58)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (11/12/19 21:48:50)
Message:

Replace some couts with runtime_exceptions and, in vulkangame, only call SDL_SetRenderTarget once, during initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.cpp

    re3bef3a rcd487fb  
    165165      return RTWO_ERROR;
    166166   }
     167
     168   SDL_SetRenderTarget(renderer, uiOverlay);
    167169
    168170   return RTWO_SUCCESS;
     
    333335
    334336void VulkanGame::renderUI() {
    335    // TODO: Since I currently don't use any other render targets,
    336    // I may as well set this once before the render loop
    337    SDL_SetRenderTarget(renderer, uiOverlay);
    338 
    339337   SDL_SetRenderDrawColor(renderer, 0x00, 0x00, 0x00, 0x00);
    340338   SDL_RenderClear(renderer);
Note: See TracChangeset for help on using the changeset viewer.