Advertisement
Guest User

openglinc.h

a guest
Jun 4th, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #ifndef OPENGLINC_H_INCLUDED
  2. #define OPENGLINC_H_INCLUDED
  3.  
  4.  
  5. #include <GL/glew.h>
  6.  
  7. #include <SFML/Graphics.hpp>
  8. #include <SFML/OpenGL.hpp>
  9.  
  10. // Include GLM
  11. #include <glm/glm.hpp>
  12. #include <glm/gtc/matrix_transform.hpp>
  13. #include <glm/gtc/quaternion.hpp>
  14. #include <glm/gtx/transform.hpp>
  15.  
  16. //Define this somewhere in your header file
  17. #define BUFFER_OFFSET(i) ((char *)NULL + (i))
  18.  
  19. struct MyVertex {
  20.     GLfloat x, y, z;        //Vertex
  21.     GLfloat nx, ny, nz;     //Normal
  22.     GLfloat u, v;           //Texcoord
  23. };
  24.  
  25. #endif // OPENGLINC_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement