diff options
Diffstat (limited to 'scene/resources/world_2d.h')
-rw-r--r-- | scene/resources/world_2d.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/scene/resources/world_2d.h b/scene/resources/world_2d.h index c02880e9ed..2bb5eb1526 100644 --- a/scene/resources/world_2d.h +++ b/scene/resources/world_2d.h @@ -29,9 +29,9 @@ #ifndef WORLD_2D_H #define WORLD_2D_H +#include "global_config.h" #include "resource.h" #include "servers/physics_2d_server.h" -#include "global_config.h" class SpatialIndexer2D; class VisibilityNotifier2D; @@ -39,32 +39,30 @@ class Viewport; class World2D : public Resource { - GDCLASS( World2D, Resource ); + GDCLASS(World2D, Resource); RID canvas; RID space; RID sound_space; - SpatialIndexer2D* indexer; -protected: + SpatialIndexer2D *indexer; +protected: static void _bind_methods(); -friend class Viewport; -friend class VisibilityNotifier2D; + friend class Viewport; + friend class VisibilityNotifier2D; - void _register_viewport(Viewport* p_viewport,const Rect2& p_rect); - void _update_viewport(Viewport* p_viewport,const Rect2& p_rect); - void _remove_viewport(Viewport* p_viewport); + void _register_viewport(Viewport *p_viewport, const Rect2 &p_rect); + void _update_viewport(Viewport *p_viewport, const Rect2 &p_rect); + void _remove_viewport(Viewport *p_viewport); - void _register_notifier(VisibilityNotifier2D* p_notifier,const Rect2& p_rect); - void _update_notifier(VisibilityNotifier2D* p_notifier,const Rect2& p_rect); - void _remove_notifier(VisibilityNotifier2D* p_notifier); + void _register_notifier(VisibilityNotifier2D *p_notifier, const Rect2 &p_rect); + void _update_notifier(VisibilityNotifier2D *p_notifier, const Rect2 &p_rect); + void _remove_notifier(VisibilityNotifier2D *p_notifier); void _update(); -public: - - +public: RID get_canvas(); RID get_space(); RID get_sound_space(); |