Début TP2 + Handling des événements de touches de mouvement

This commit is contained in:
Marc-Eric Martel
2021-09-24 10:15:43 -04:00
parent 6d62a36bd3
commit 2f8e6dbb30
186 changed files with 26429 additions and 442 deletions

23
mcclone/texture.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef TEXTURE_H__
#define TEXTURE_H__
#include "define.h"
#include <IL/il.h>
#include <string>
class Texture
{
public:
Texture(const std::string& filename = "");
~Texture();
bool Load(const std::string& filename);
bool IsValid() const;
void Bind() const;
private:
GLuint m_textureId;
bool m_isValid;
};
#endif // TEXTURE_H__