From d6b1da618cecabe7ca68e23b7cb802239856aa57 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 23 May 2006 12:48:25 +0000 Subject: [PATCH] add get_all_camera_mask() --- panda/src/pgraph/pandaNode.I | 11 +++++++++++ panda/src/pgraph/pandaNode.h | 1 + 2 files changed, 12 insertions(+) diff --git a/panda/src/pgraph/pandaNode.I b/panda/src/pgraph/pandaNode.I index 27d4e5a6c3..6aff034f06 100644 --- a/panda/src/pgraph/pandaNode.I +++ b/panda/src/pgraph/pandaNode.I @@ -470,6 +470,17 @@ get_overall_bit() { return _overall_bit; } +//////////////////////////////////////////////////////////////////// +// Function: PandaNode::get_all_camera_mask +// Access: Published, Static +// Description: Returns a DrawMask that is appropriate for rendering +// to all cameras. +//////////////////////////////////////////////////////////////////// +INLINE DrawMask PandaNode:: +get_all_camera_mask() { + return ~_overall_bit; +} + //////////////////////////////////////////////////////////////////// // Function: PandaNode::is_overall_hidden // Access: Published, Static diff --git a/panda/src/pgraph/pandaNode.h b/panda/src/pgraph/pandaNode.h index 2d98bd77bf..84b53cfb8d 100644 --- a/panda/src/pgraph/pandaNode.h +++ b/panda/src/pgraph/pandaNode.h @@ -200,6 +200,7 @@ PUBLISHED: void list_tags(ostream &out, const string &separator = "\n") const; INLINE static DrawMask get_overall_bit(); + INLINE static DrawMask get_all_camera_mask(); INLINE bool is_overall_hidden() const; INLINE void set_overall_hidden(bool overall_hidden);