Optibits
Loading...
Searching...
No Matches
Texture.hpp
1#pragma once
2
3#include <Optibits/Utility.hpp>
4#include <Optibits/Fwd.hpp>
5#include <Optibits/BinPacker.hpp>
6#include <Optibits/TexChunk.hpp>
7#include <cstdint>
8#include <memory>
9
10namespace Optibits
11{
12 class Texture : public std::enable_shared_from_this<Texture>, private Noncopyable
13 {
14 BinPacker mBinPacker;
15 std::uint32_t mTexName;
16 const bool mRetro;
17
18 public:
19 Texture(int width, int height, bool retro);
20 ~Texture();
21
22 int width() const { return mBinPacker.width(); }
23 int height() const { return mBinPacker.height(); }
24 std::uint32_t texName() const { return mTexName; }
25 bool retro() const { return mRetro; }
26
27 };
28}
Definition BinPacker.hpp:14
Definition Utility.hpp:24
Definition Texture.hpp:13