stuff...
This commit is contained in:
@@ -12,21 +12,22 @@ namespace assets
|
||||
class texture_data
|
||||
{
|
||||
public:
|
||||
using value_type = std::uint8_t;
|
||||
using dim_type = std::int32_t;
|
||||
using size_type = std::make_signed_t<std::size_t>;
|
||||
using value_type = z3d::u8;
|
||||
using dim_type = z3d::i32;
|
||||
using size_type = z3d::size;
|
||||
using difference_type = size_type;
|
||||
using reference = value_type&;
|
||||
using const_reference = const value_type&;
|
||||
using pointer = std::uint8_t*;
|
||||
using const_pointer = const std::uint8_t*;
|
||||
using pointer = value_type*;
|
||||
using const_pointer = const value_type*;
|
||||
using iterator = pointer;
|
||||
using const_iterator = const_pointer;
|
||||
using container_type = std::unique_ptr<value_type[]>;
|
||||
|
||||
texture_data() = default;
|
||||
|
||||
inline texture_data(
|
||||
std::unique_ptr<value_type[]>&& data,
|
||||
container_type&& data,
|
||||
dim_type width,
|
||||
dim_type height,
|
||||
texture_components::flags components
|
||||
@@ -73,7 +74,7 @@ public:
|
||||
void inline clear();
|
||||
|
||||
private:
|
||||
std::unique_ptr<value_type[]> m_data{ nullptr };
|
||||
container_type m_data{ nullptr };
|
||||
dim_type m_width{ 0 }, m_height{ 0 };
|
||||
texture_components::flags m_components{ texture_components::flags::none };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user