#ifndef MOSAIC_H_INCLUDED #define MOSAIC_H_INCLUDED // Includes OpenGL #ifdef WIN32 #include #else #define GL3_PROTOTYPES 1 #include #endif // Includes GLM #include #include #include // Includes #include #include #include "ColorCube.h" #include "Shader.h" #define DIM 32 class Mosaic { public: Mosaic(std::string const vertexShader, std::string const fragmentShader, std::string const fichierImg, Uint8 redMask, Uint8 greenMask, Uint8 blueMask); ~Mosaic(); void afficher(glm::mat4 &projection, glm::mat4 modelview); private: Shader m_shader; ColorCube m_mosaic[DIM][DIM];//y;x bool m_opaque[DIM][DIM]; }; #endif // MOSAIC_H_INCLUDED