Files
fall-fever/Texture.h
2020-09-02 18:37:53 +02:00

26 lines
362 B
C++

#pragma once
#include <cstdint>
#include <glad/glad.h>
class Texture {
public:
Texture(const char* texturePath, GLuint shaderProgramId);
~Texture();
void bind(uint8_t textureUnit);
void unbind();
private:
int32_t textureWidth;
int32_t textureHeight;
int32_t bitsPerPixel;
GLuint textureId;
GLuint shaderProgramId;
};