123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef DEF_CRISTAL
- #define DEF_CRISTAL
- // Includes OpenGL
- #ifdef WIN32
- #include <glew.h>
- #else
- #define GL3_PROTOTYPES 1
- #include <GL3/gl3.h>
- #endif
- // Includes GLM
- #include <glm.hpp>
- #include <gtx/transform.hpp>
- #include <gtc/type_ptr.hpp>
- // Autres includes
- #include "Shader.h"
- #include "Texture.h"
- // Classe Cristal
- class Cristal
- {
- public:
- Cristal(std::string const vertexShader, std::string const fragmentShader, std::string const texture);
- Cristal();
- void afficher(glm::mat4 &projection, glm::mat4 &modelview);
- private:
- Shader m_shader;
- Texture m_texture;
- float m_vertices[72];
- float m_coordTexture[48];
- };
- #endif
|