Doxybook2 Example
 
Loading...
Searching...
No Matches
Texture.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "Handle.hpp"
4
5namespace Engine {
6 namespace Graphics {
15 class Texture : protected Handle {
16 public:
32
33 explicit Texture(Type type);
34 virtual ~Texture() = default;
39 virtual int getWidth() const = 0;
44 virtual int getHeight() const = 0;
50 virtual int getDepth() const = 0;
51 inline bool isLoaded() const {
55 return loaded;
56 }
57
58 protected:
59 bool loaded{false};
61 };
62 } // namespace Graphics
63} // namespace Engine
virtual int getHeight() const =0
Returns the height of the texture in pixels.
Type
Definition Texture.hpp:17
@ RGB_16
Definition Texture.hpp:28
@ RGB_32
Definition Texture.hpp:30
@ UNKNOWN
Definition Texture.hpp:21
@ RGB_8
Definition Texture.hpp:26
@ RGBA_32
Definition Texture.hpp:29
@ RGBA_8
Definition Texture.hpp:25
@ RGBA_16
Definition Texture.hpp:27
Type type
Definition Texture.hpp:60
virtual int getWidth() const =0
Returns the width of the texture in pixels.
virtual ~Texture()=default
virtual int getDepth() const =0
Returns the depth of the texture in pixels.
bool loaded
Definition Texture.hpp:59
bool isLoaded() const
Definition Texture.hpp:51
Definition Framebuffer.hpp:6
This namespace contains all of the necessary engine components.
Definition Asset.hpp:5