light/Engine/src/Platform/GraphicsAPI/OpenGL/glTexture.h
Light 74a6035c32 Scene Serialization
- Scenes can now be serialized and de-serialized into .yaml files
- Added yaml-cpp as Dependency
2021-10-05 13:44:32 +03:30

21 lines
No EOL
373 B
C++

#pragma once
#include "Graphics/Texture.h"
#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;
};
}