feat(texture): add texture file

This commit is contained in:
2025-11-15 20:21:37 +01:00
parent cd46a0f496
commit cb103f4d90
2 changed files with 88 additions and 0 deletions

24
inc/texture.hpp Executable file
View File

@@ -0,0 +1,24 @@
#ifndef TEXTUTE_HPP
#define TEXTUTE_HPP
#include <GL/glew.h>
#include <string>
#include <filesystem>
#include <stb_image.h>
class Texture
{
private:
unsigned int id;
public:
Texture(const std::string& path);
~Texture();
void bind(GLenum textureUnit) const;
unsigned int getID() const;
};
#endif