31 lines
465 B
C++
31 lines
465 B
C++
#pragma once
|
|
|
|
#include <sp/common/NonCopyable.h>
|
|
#include <string>
|
|
|
|
namespace td {
|
|
namespace GL {
|
|
|
|
class Texture : private sp::NonCopyable {
|
|
public:
|
|
Texture(const char* a_Data, int a_Width, int a_Height, int a_Comp);
|
|
Texture(Texture&& a_Other);
|
|
|
|
~Texture();
|
|
|
|
void Bind() const;
|
|
void Unbind() const;
|
|
|
|
private:
|
|
unsigned int m_ID;
|
|
};
|
|
|
|
} // namespace GL
|
|
|
|
namespace TextureLoader {
|
|
|
|
GL::Texture LoadTexture(const std::string& fileName);
|
|
|
|
}
|
|
|
|
} // namespace td
|