Optibits
Loading...
Searching...
No Matches
include
Optibits
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
10
namespace
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
}
Optibits::BinPacker
Definition
BinPacker.hpp:14
Optibits::Noncopyable
Definition
Utility.hpp:24
Optibits::Texture
Definition
Texture.hpp:13
Generated by
1.12.0