feature/imgui-sdl
Last change
on this file since 9d21aac 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
|
Rev | Line | |
---|
[7d2b0b9] | 1 | #ifndef _GRAPHICS_PIPELINE_H
|
---|
| 2 | #define _GRAPHICS_PIPELINE_H
|
---|
| 3 |
|
---|
| 4 | #include <string>
|
---|
| 5 |
|
---|
| 6 | using namespace std;
|
---|
| 7 |
|
---|
[83b5b4b] | 8 | struct Viewport {
|
---|
| 9 | int x;
|
---|
| 10 | int y;
|
---|
| 11 | int width;
|
---|
| 12 | int height;
|
---|
| 13 | };
|
---|
| 14 |
|
---|
[7d2b0b9] | 15 | class GraphicsPipeline {
|
---|
| 16 | public:
|
---|
| 17 | virtual ~GraphicsPipeline() {};
|
---|
| 18 |
|
---|
| 19 | virtual void createPipeline(string vertShaderFile, string fragShaderFile) = 0;
|
---|
[83b5b4b] | 20 |
|
---|
| 21 | protected:
|
---|
| 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.