Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CONTEXT_H
- #define CONTEXT_H
- #include <GL/glew.h>
- class Context {
- public:
- Context(size_t triangles);
- ~Context();
- void init();
- void draw();
- Context(const Context& other);
- Context& operator=(const Context& other);
- Context(Context&& other);
- Context& operator=(Context&& other);
- private:
- void initProgram();
- void initVbo();
- GLuint m_programId;
- GLuint m_vertexArrayId;
- GLuint m_vertexShaderId;
- GLuint m_fragmentShaderId;
- GLuint m_vertexBufferId;
- size_t m_triangles;
- };
- #endif // CONTEXT_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement