mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 09:34:16 +00:00
feat(texture): add texture file
This commit is contained in:
24
inc/texture.hpp
Executable file
24
inc/texture.hpp
Executable 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
|
||||
Reference in New Issue
Block a user