Advertisement
Guest User

VertexArray.h

a guest
Aug 17th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #pragma once
  2. #include <GL/glew.h>
  3.  
  4. class VertexArray
  5. {
  6. public:
  7.     VertexArray();
  8.     ~VertexArray();
  9.  
  10.     void bind()const;
  11.     void unbind()const;
  12.  
  13.     void addVertexBufferData(int location, int sizeOfVertexAttr, int dataType, int stride, int offset);
  14.  
  15. private:
  16.     unsigned int vao_;
  17. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement