Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef OPENGLINC_H_INCLUDED
- #define OPENGLINC_H_INCLUDED
- #include <GL/glew.h>
- #include <SFML/Graphics.hpp>
- #include <SFML/OpenGL.hpp>
- // Include GLM
- #include <glm/glm.hpp>
- #include <glm/gtc/matrix_transform.hpp>
- #include <glm/gtc/quaternion.hpp>
- #include <glm/gtx/transform.hpp>
- //Define this somewhere in your header file
- #define BUFFER_OFFSET(i) ((char *)NULL + (i))
- struct MyVertex {
- GLfloat x, y, z; //Vertex
- GLfloat nx, ny, nz; //Normal
- GLfloat u, v; //Texcoord
- };
- #endif // OPENGLINC_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement