src/Graphics/Texture.hpp
Namespaces
Classes
Source code
#pragma once
#include "Handle.hpp"
namespace Engine {
namespace Graphics {
class Texture : protected Handle {
public:
enum class Type {
UNKNOWN = 0,
RGBA_8,
RGB_8,
RGBA_16,
RGB_16,
RGBA_32,
RGB_32
};
explicit Texture(Type type);
virtual ~Texture() = default;
virtual int getWidth() const = 0;
virtual int getHeight() const = 0;
virtual int getDepth() const = 0;
inline bool isLoaded() const {
return loaded;
}
protected:
bool loaded{false};
Type type;
};
} // namespace Graphics
} // namespace Engine
Updated on 2022-10-19 at 22:22:03 +0000