- Scenes can now be serialized and de-serialized into .yaml files - Added yaml-cpp as Dependency
21 lines
No EOL
373 B
C++
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;
|
|
};
|
|
|
|
} |