Namespaced DirectMultiMeshInstance

This commit is contained in:
Marc Gilleron 2022-01-04 23:00:49 +00:00
parent 14840634de
commit c1073d1bae
3 changed files with 8 additions and 2 deletions

View File

@ -143,7 +143,7 @@ private:
uint8_t lod_index;
// Position in mesh block coordinate system
Vector3i grid_position;
DirectMultiMeshInstance multimesh_instance;
zylann::DirectMultiMeshInstance multimesh_instance;
// For physics we use nodes because it's easier to manage.
// Such instances may be less numerous.
// If the item associated to this block has no collisions, this will be empty.

View File

@ -3,7 +3,7 @@
#include <scene/resources/world_3d.h>
using namespace zylann;
namespace zylann {
DirectMultiMeshInstance::DirectMultiMeshInstance() {}
@ -173,3 +173,5 @@ void DirectMultiMeshInstance::make_transform_and_color32_3d_bulk_array(
ptr[transform_size + 3] = d.color.a;
}
}
} // namespace zylann

View File

@ -10,6 +10,8 @@
class World3D;
namespace zylann {
// Thin wrapper around VisualServer multimesh instance API
class DirectMultiMeshInstance : public zylann::NonCopyable {
public:
@ -50,4 +52,6 @@ private:
Ref<MultiMesh> _multimesh;
};
} // namespace zylann
#endif // DIRECT_MULTIMESH_INSTANCE_H