mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 07:34:16 +00:00
24 lines
344 B
C++
Executable File
24 lines
344 B
C++
Executable File
#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 |