DSC Engine
Loading...
Searching...
No Matches
asset_data.hpp
1#pragma once
2
3#include "DSCEngine/resources/readonly_data.hpp"
4
5namespace DSC
6{
7 class AssetData : public ReadOnlyData
8 {
9 public:
10 __attribute__ ((packed))
11 short width;
12 __attribute__ ((packed))
13 short height;
14
16 ~AssetData() = delete;
17
21 int get_color_depth() const;
22
26 bool is_bitmap() const;
27
28
29 int get_gfx_length() const;
30 int get_pal_length() const;
31 int get_pal_count() const;
32 void extract_gfx(void* destination) const;
33 void extract_palette(void* destination) const;
34
40 int get_metatile_width() const;
41
48
53 int get_metatile_size() const;
54
55 static const int ROA_IS_BITMAP;
56 static const int ROA_COLOR_DEPTH;
57 static const int ROA_METATILE_WIDTH;
58 static const int ROA_METATILE_HEIGHT;
59 };
60}
Definition: asset_data.hpp:8
int get_metatile_height() const
gets the height of an asset's metatile. If no metatile data is provided, the height of a single 8x8 t...
int get_metatile_size() const
gets the size in bytes of an asset's metatile. If no metatile data is provided, the size of a single ...
bool is_bitmap() const
checks if the asset is a tileset or a bitmap
int get_color_depth() const
gets color bit depth of the asset
__attribute__((packed)) short height
asset width (divided by 8)
AssetData()
asset height (divided by 8)
int get_metatile_width() const
gets the width of an asset's metatile. If no metatile data is provided, the width of a single 8x8 til...
Definition: readonly_data.hpp:36