source: opengl-game/graphics-pipeline.hpp@ 34bdf3a

feature/imgui-sdl points-test
Last change on this file since 34bdf3a was 83b5b4b, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago

Handle window resize events in openglgame

  • Property mode set to 100644
File size: 439 bytes
RevLine 
[7d2b0b9]1#ifndef _GRAPHICS_PIPELINE_H
2#define _GRAPHICS_PIPELINE_H
3
4#include <string>
5
6using namespace std;
7
[83b5b4b]8struct Viewport {
9 int x;
10 int y;
11 int width;
12 int height;
13};
14
[7d2b0b9]15class GraphicsPipeline {
16public:
17 virtual ~GraphicsPipeline() {};
18
19 virtual void createPipeline(string vertShaderFile, string fragShaderFile) = 0;
[83b5b4b]20
21protected:
22 Viewport viewport; // So far, not used for GraphicsPipeline_OpenGL
[7d2b0b9]23};
24
25#endif // _GRAPHICS_PIPELINE_H
Note: See TracBrowser for help on using the repository browser.