#ifndef DIRECT_MESH_INSTANCE_H #define DIRECT_MESH_INSTANCE_H #include #include class World; // Thin wrapper around VisualServer mesh instance API class DirectMeshInstance { public: DirectMeshInstance(); ~DirectMeshInstance(); bool is_valid() const; void create(); void destroy(); void set_world(World *world); void set_transform(Transform world_transform); void set_mesh(Ref mesh); void set_material_override(Ref material); void set_visible(bool visible); Ref get_mesh() const; private: RID _mesh_instance; Ref _mesh; }; #endif // DIRECT_MESH_INSTANCE_H