Pioneer
Loading...
Searching...
No Matches
GeoPatchID.h
Go to the documentation of this file.
1// Copyright © 2008-2023 Pioneer Developers. See AUTHORS.txt for details
2// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3
4#ifndef __GEOPATCHID_H__
5#define __GEOPATCHID_H__
6
7#include <SDL_stdinc.h>
8
9class GeoPatchID {
10private:
11 uint64_t mPatchID;
12
13public:
14 GeoPatchID(const uint64_t init) :
15 mPatchID(init) {}
16
17 static const uint64_t MAX_SHIFT_DEPTH = 61;
18
19 uint64_t NextPatchID(const int depth, const int idx) const;
20 int GetPatchIdx(const int depth) const;
21 int GetPatchFaceIdx() const;
22};
23
24#endif //__GEOPATCHID_H__
Definition GeoPatchID.h:9
static const uint64_t MAX_SHIFT_DEPTH
Definition GeoPatchID.h:17
GeoPatchID(const uint64_t init)
Definition GeoPatchID.h:14
int GetPatchFaceIdx() const
Definition GeoPatchID.cpp:29
int GetPatchIdx(const int depth) const
Definition GeoPatchID.cpp:20
uint64_t NextPatchID(const int depth, const int idx) const
Definition GeoPatchID.cpp:10