mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 09:34:16 +00:00
20 lines
295 B
C++
Executable File
20 lines
295 B
C++
Executable File
#ifndef TEXTUTE_HPP
|
|
#define TEXTUTE_HPP
|
|
|
|
#include "glad/glad.h"
|
|
#include <string>
|
|
|
|
class Texture
|
|
{
|
|
private:
|
|
unsigned int id;
|
|
|
|
public:
|
|
Texture(const std::string& path);
|
|
~Texture();
|
|
|
|
void bind(GLenum textureUnit) const;
|
|
unsigned int getID() const;
|
|
};
|
|
|
|
#endif |