port/mars-tycoon
Last change
on this file was c61312b, checked in by Jonathan Neufeld <support@…>, 3 years ago |
(WIP) New GeoWorld / Voxel generation adapter
|
-
Property mode
set to
100644
|
File size:
874 bytes
|
Line | |
---|
1 | #ifndef __VOXGENSRC_H__
|
---|
2 | #define __VOXGENSRC_H__
|
---|
3 |
|
---|
4 | #include <Godot.hpp>
|
---|
5 | #include <VoxelGeneratorScript.hpp>
|
---|
6 | #include <worldfile.h>
|
---|
7 |
|
---|
8 | namespace godot {
|
---|
9 | class GeoWorldVoxelGeneratorSource : public VoxelGeneratorScript {
|
---|
10 | private:
|
---|
11 | GODOT_CLASS(GeoWorldVoxelGeneratorSource, VoxelGeneratorScript);
|
---|
12 |
|
---|
13 | private:
|
---|
14 | String inputFile;
|
---|
15 | geoworld::FileSource * fileSource;
|
---|
16 |
|
---|
17 | public:
|
---|
18 | static void _register_methods();
|
---|
19 |
|
---|
20 | GeoWorldVoxelGeneratorSource();
|
---|
21 | virtual ~GeoWorldVoxelGeneratorSource();
|
---|
22 |
|
---|
23 | void _init();
|
---|
24 |
|
---|
25 | void setInputFile(String inputFile);
|
---|
26 | String getInputFile();
|
---|
27 |
|
---|
28 | void _generate_block(Ref<VoxelBuffer> out_buffer, const Vector3 origin_in_voxels, const int64_t lod);
|
---|
29 |
|
---|
30 | int64_t _get_used_channels_mask();
|
---|
31 | };
|
---|
32 | }
|
---|
33 |
|
---|
34 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.