feature/imgui-sdl
|
Last change
on this file since 996dd3e was 83b5b4b, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 6 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 |
|
|---|
| 6 | using namespace std;
|
|---|
| 7 |
|
|---|
| 8 | struct Viewport {
|
|---|
| 9 | int x;
|
|---|
| 10 | int y;
|
|---|
| 11 | int width;
|
|---|
| 12 | int height;
|
|---|
| 13 | };
|
|---|
| 14 |
|
|---|
| 15 | class GraphicsPipeline {
|
|---|
| 16 | public:
|
|---|
| 17 | virtual ~GraphicsPipeline() {};
|
|---|
| 18 |
|
|---|
| 19 | virtual void createPipeline(string vertShaderFile, string fragShaderFile) = 0;
|
|---|
| 20 |
|
|---|
| 21 | protected:
|
|---|
| 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.