light/Engine/src/Platform/GraphicsAPI/OpenGL/glTexture.h

21 lines
373 B
C
Raw Normal View History

#pragma once
#include "Graphics/Texture.h"
2021-07-29 17:12:13 +04:30
#include "Base/Base.h"
namespace Light {
class glTexture : public Texture
{
private:
unsigned int m_TextureID;
public:
glTexture(unsigned int width, unsigned int height, unsigned int components, unsigned char* pixels, const std::string& filePath);
~glTexture();
void Bind(unsigned int slot = 0u) override;
};
}