source: opengl-game/graphics-pipeline_opengl.hpp@ 83b5b4b

feature/imgui-sdl points-test
Last change on this file since 83b5b4b was 3de31cf, checked in by Dmitry Portnoy <dmp1488@…>, 5 years ago

Add and begin implementing an OpenGL version of the GraphicsPipeline class

  • Property mode set to 100644
File size: 599 bytes
Line 
1#ifndef _GRAPHICS_PIPELINE_OPENGL_H
2#define _GRAPHICS_PIPELINE_OPENGL_H
3
4#include <GL/glew.h>
5
6#include "graphics-pipeline.hpp"
7
8class GraphicsPipeline_OpenGL : public GraphicsPipeline {
9 public:
10 GraphicsPipeline_OpenGL();
11 ~GraphicsPipeline_OpenGL();
12
13 void createPipeline(string vertShaderFile, string fragShaderFile);
14
15 private:
16 GLuint shaderProgram;
17 GLuint vao;
18 unsigned int numPoints;
19
20 GLuint loadShaderProgram(string vertShaderFile, string fragShaderFile);
21 GLuint loadShader(GLenum type, string file);
22};
23
24#endif // _GRAPHICS_PIPELINE_OPENGL_H
Note: See TracBrowser for help on using the repository browser.