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

#include <cstdint>
#include <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;
};
}