[nostalgia/geo] Add model to Vec2
This commit is contained in:
parent
71f70cb2e6
commit
3785d192f9
@ -8,7 +8,10 @@
|
||||
#include <imgui.h>
|
||||
#endif
|
||||
|
||||
#include <ox/model/def.hpp>
|
||||
#include <ox/std/bit.hpp>
|
||||
#include <ox/std/def.hpp>
|
||||
#include <ox/std/error.hpp>
|
||||
#include <ox/std/iterator.hpp>
|
||||
#include <ox/std/math.hpp>
|
||||
#include <ox/std/types.hpp>
|
||||
@ -19,6 +22,9 @@ struct Vec2 {
|
||||
using value_type = float;
|
||||
using size_type = std::size_t;
|
||||
|
||||
static constexpr auto TypeName = "net.drinkingtea.nostalgia.geo.Point";
|
||||
static constexpr auto TypeVersion = 1;
|
||||
|
||||
template<typename RefType = value_type&, typename PtrType = value_type*, bool reverse = false>
|
||||
struct iterator: public std::iterator<std::bidirectional_iterator_tag, value_type> {
|
||||
private:
|
||||
@ -198,4 +204,9 @@ struct Vec2 {
|
||||
#endif
|
||||
};
|
||||
|
||||
oxModelBegin(Vec2)
|
||||
oxModelField(x)
|
||||
oxModelField(y)
|
||||
oxModelEnd()
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user