Doxybook2 Example
 
Loading...
Searching...
No Matches
Texture2D.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "Texture.hpp"
4
5namespace 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
int getHeight() const override
Returns the height of the texture in pixels.
int getWidth() const override
Returns the width of the texture in pixels.
Texture2D(int width, int height, uint8_t *data, Texture::Type type=Texture::Type::RGBA8)
int getDepth() const override
Returns the depth of the texture in pixels.
Type
Definition Texture.hpp:17
Type type
Definition Texture.hpp:60
Definition Framebuffer.hpp:6
This namespace contains all of the necessary engine components.
Definition Asset.hpp:5