Changeset 3de31cf in opengl-game for opengl-game.cpp


Ignore:
Timestamp:
Oct 3, 2019, 3:46:06 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
ee75487
Parents:
7d2b0b9
git-author:
Dmitry Portnoy <dmp1488@…> (10/03/19 03:45:53)
git-committer:
Dmitry Portnoy <dmp1488@…> (10/03/19 03:46:06)
Message:

Add and begin implementing an OpenGL version of the GraphicsPipeline class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • opengl-game.cpp

    r7d2b0b9 r3de31cf  
    103103   // Otherwise, it seems they get overridden by ImGui
    104104   ((GameGui_GLFW*)gui)->bindEventHandlers();
     105
     106   graphicsPipelines.push_back(GraphicsPipeline_OpenGL());
     107   graphicsPipelines.back().createPipeline("gl-shaders/ship.vert", "gl-shaders/ship.frag");
     108
     109   graphicsPipelines.push_back(GraphicsPipeline_OpenGL());
     110   graphicsPipelines.back().createPipeline("gl-shaders/asteroid.vert", "gl-shaders/asteroid.frag");
     111
     112   graphicsPipelines.push_back(GraphicsPipeline_OpenGL());
     113   graphicsPipelines.back().createPipeline("gl-shaders/laser.vert", "gl-shaders/laser.frag");
     114
     115   graphicsPipelines.push_back(GraphicsPipeline_OpenGL());
     116   graphicsPipelines.back().createPipeline("gl-shaders/explosion.vert", "gl-shaders/explosion.frag");
     117
     118   cout << "Created " << graphicsPipelines.size() << " graphics pipelines" << endl;
    105119}
    106120
Note: See TracChangeset for help on using the changeset viewer.