#ifndef MESH_INSTANCE_2D_H #define MESH_INSTANCE_2D_H #include "scene/2d/node_2d.h" class MeshInstance2D : public Node2D { GDCLASS(MeshInstance2D, Node2D) Ref mesh; Ref texture; Ref normal_map; protected: void _notification(int p_what); static void _bind_methods(); public: void set_mesh(const Ref &p_mesh); Ref get_mesh() const; void set_texture(const Ref &p_texture); Ref get_texture() const; void set_normal_map(const Ref &p_texture); Ref get_normal_map() const; virtual Rect2 _edit_get_rect() const; MeshInstance2D(); }; #endif // MESH_INSTANCE_2D_H