Finality Engine
Loading...
Searching...
No Matches
Texture.h
Go to the documentation of this file.
1
6#pragma once
7#include <string>
8#include <memory>
9#include <Core/Core.h>
10#include <Assets/Asset.h>
11
12namespace FINALITY
13{
15 class FAPI Texture : public Asset
16 {
17 public:
18 virtual ~Texture() = default;
19
20 virtual uint32_t GetWidth() const = 0;
21 virtual uint32_t GetHeight() const = 0;
22 virtual uint32_t GetMipLevels() const = 0;
23
24 virtual void Bind(uint32_t slot = 0) const = 0;
25
26 AssetType GetType() const override { return AssetType::Texture; }
27
28 static std::shared_ptr<Texture> Create(const std::string& filePath);
29
30 };
31}
#define FAPI
Definition Core.h:22
virtual uint32_t GetMipLevels() const =0
AssetType GetType() const override
Definition Texture.h:26
virtual ~Texture()=default
virtual uint32_t GetWidth() const =0
static std::shared_ptr< Texture > Create(const std::string &filePath)
virtual void Bind(uint32_t slot=0) const =0
virtual uint32_t GetHeight() const =0
AssetType
Definition Asset.h:15