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
|
Rev | Line | |
---|
[8125274] | 1 | #ifndef __VOXGENSRC_H__
|
---|
| 2 | #define __VOXGENSRC_H__
|
---|
| 3 |
|
---|
| 4 | #include <Godot.hpp>
|
---|
[c61312b] | 5 | #include <VoxelGeneratorScript.hpp>
|
---|
| 6 | #include <worldfile.h>
|
---|
[8125274] | 7 |
|
---|
| 8 | namespace godot {
|
---|
[c61312b] | 9 | class GeoWorldVoxelGeneratorSource : public VoxelGeneratorScript {
|
---|
[8125274] | 10 | private:
|
---|
[c61312b] | 11 | GODOT_CLASS(GeoWorldVoxelGeneratorSource, VoxelGeneratorScript);
|
---|
| 12 |
|
---|
| 13 | private:
|
---|
| 14 | String inputFile;
|
---|
| 15 | geoworld::FileSource * fileSource;
|
---|
[8125274] | 16 |
|
---|
| 17 | public:
|
---|
[c61312b] | 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();
|
---|
[8125274] | 31 | };
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.