Doxybook2 Example
Texture3D.hpp
Go to the documentation of this file.
1 #pragma once
2 #pragma once
3 
4 #include "Texture.hpp"
5 
6 namespace Engine {
7  namespace Graphics {
13  class Texture3D : public Texture {
14  public:
15  Texture3D(int width, int height, int depth, uint8_t* data, Texture::Type type = Texture::Type::RGBA8);
16  virtual ~Texture3D();
17 
18  int getWidth() const override;
19  int getHeight() const override;
20  int getDepth() const override;
21  };
22  } // namespace Graphics
23 } // namespace Engine
Engine::Graphics::Texture3D::~Texture3D
virtual ~Texture3D()
Engine::Graphics::Texture::Type
Type
Definition: Texture.hpp:17
Engine::Graphics::Texture3D::Texture3D
Texture3D(int width, int height, int depth, uint8_t *data, Texture::Type type=Texture::Type::RGBA8)
Engine::Graphics::Texture3D::getWidth
int getWidth() const override
Returns the width of the texture in pixels.
Texture.hpp
Engine::Graphics::Texture3D::getHeight
int getHeight() const override
Returns the height of the texture in pixels.
Engine::Graphics::Texture3D
Some deprecated class.
Definition: Texture3D.hpp:13
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::Texture3D::getDepth
int getDepth() const override
Returns the depth of the texture in pixels.
Engine::Graphics::Texture::type
Type type
Definition: Texture.hpp:60