Doxybook2 Example
Texture2D.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Texture.hpp"
4 
5 namespace Engine {
6  namespace Graphics {
10  class Texture2D : public Texture {
11  public:
18  Texture2D(int width, int height, uint8_t* data, Texture::Type type = Texture::Type::RGBA8);
19  virtual ~Texture2D();
20 
21  int getWidth() const override;
22  int getHeight() const override;
23  int getDepth() const override;
24  };
25  } // namespace Graphics
26 } // namespace Engine
Engine::Graphics::Texture::Type
Type
Definition: Texture.hpp:17
Engine::Graphics::Texture2D::~Texture2D
virtual ~Texture2D()
Engine::Graphics::Texture2D
Definition: Texture2D.hpp:10
Engine::Graphics::Texture2D::getHeight
int getHeight() const override
Returns the height of the texture in pixels.
Texture.hpp
Engine::Graphics::Texture2D::getWidth
int getWidth() const override
Returns the width of the texture in pixels.
Engine::Graphics::Texture
This is a base texture class that serves as a base class for other texture types.
Definition: Texture.hpp:15
Engine
This namespace contains all of the necessary engine components.
Definition: Asset.hpp:5
Engine::Graphics::Texture::type
Type type
Definition: Texture.hpp:60
Engine::Graphics::Texture2D::getDepth
int getDepth() const override
Returns the depth of the texture in pixels.
Engine::Graphics::Texture2D::Texture2D
Texture2D(int width, int height, uint8_t *data, Texture::Type type=Texture::Type::RGBA8)