summaryrefslogtreecommitdiff
path: root/src/port/resource/type/Minimap.h
blob: eaa163dd0c8a69f0e7c53cffad7dce7f05424b7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once

#include "ship/resource/Resource.h"
#include <vector>
#include <cstdint>

namespace MK64 {

struct MinimapTexture {
    int32_t Width;
    int32_t Height;
    int32_t Channels;
    size_t Size;
    uint8_t* Data;
};

class Minimap : public Ship::Resource<MinimapTexture> {
  public:
    using Resource::Resource;

    Minimap();

    MinimapTexture* GetPointer() override;
    size_t GetPointerSize() override;

    MinimapTexture Texture;
};

} // namespace MK64