source: opengl-game/graphics-pipeline.hpp

feature/imgui-sdl
Last change on this file 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
Line 
1#ifndef _GRAPHICS_PIPELINE_H
2#define _GRAPHICS_PIPELINE_H
3
4#include <string>
5
6using namespace std;
7
8struct Viewport {
9 int x;
10 int y;
11 int width;
12 int height;
13};
14
15class GraphicsPipeline {
16public:
17 virtual ~GraphicsPipeline() {};
18
19 virtual void createPipeline(string vertShaderFile, string fragShaderFile) = 0;
20
21protected:
22 Viewport viewport; // So far, not used for GraphicsPipeline_OpenGL
23};
24
25#endif // _GRAPHICS_PIPELINE_H
Note: See TracBrowser for help on using the repository browser.