src/Graphics/Texture2D.hpp

Namespaces

Name
Engine
This namespace contains all of the necessary engine components.
Engine::Graphics

Classes

Name
class Engine::Graphics::Texture2D

Source code

#pragma once

#include "Texture.hpp"

namespace Engine {
    namespace Graphics {
        class Texture2D : public Texture {
          public:
            Texture2D(int width, int height, uint8_t* data, Texture::Type type = Texture::Type::RGBA8);
            virtual ~Texture2D();

            int getWidth() const override;
            int getHeight() const override;
            int getDepth() const override;
        };
    } // namespace Graphics
} // namespace Engine

Updated on 2022-10-19 at 22:21:59 +0000