summaryrefslogtreecommitdiff
path: root/src/port/resource/type/Vec3fArray.h
blob: 89c6eedd2bba22c73f2321592584310e8d3ec5c0 (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
#pragma once

#include <cstdint>
#include <ship/resource/Resource.h>
#include <libultraship/libultra/types.h>

namespace SF64 {

struct Vec3fData {
    float x, y, z;
    Vec3fData(float x, float y, float z) : x(x), y(y), z(z) {
    }
};

class Vec3fArray : public Ship::Resource<Vec3fData> {
  public:
    using Resource::Resource;

    Vec3fArray() : Resource(std::shared_ptr<Ship::ResourceInitData>()) {
    }

    Vec3fData* GetPointer();
    size_t GetPointerSize();

    std::vector<Vec3fData> mData;
};
} // namespace SF64