From ff8ac9f0a41dc35c22d585cc5371c6a2c0eca545 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 2 Jun 2004 21:15:20 +0000 Subject: [PATCH] const --- panda/src/pgraph/portalClipper.cxx | 6 +++--- panda/src/pgraph/portalClipper.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/panda/src/pgraph/portalClipper.cxx b/panda/src/pgraph/portalClipper.cxx index 238613600c..4eb3367fab 100755 --- a/panda/src/pgraph/portalClipper.cxx +++ b/panda/src/pgraph/portalClipper.cxx @@ -227,7 +227,7 @@ draw_lines() // for now. More functionalities coming up //////////////////////////////////////////////////////////////////// void PortalClipper:: -prepare_portal(NodePath &node_path) +prepare_portal(const NodePath &node_path) { SegmentList segs; @@ -290,7 +290,7 @@ prepare_portal(NodePath &node_path) // and form the new planes of the reduced view frustum //////////////////////////////////////////////////////////////////// void PortalClipper:: -clip_portal(NodePath &node_path) +clip_portal(const NodePath &node_path) { int num_planes = _hex_frustum->get_num_planes(); @@ -331,7 +331,7 @@ clip_portal(NodePath &node_path) // fill in the new frustum. Return true if success //////////////////////////////////////////////////////////////////// PT(BoundingVolume) PortalClipper:: -get_reduced_frustum(NodePath &node_path) +get_reduced_frustum(const NodePath &node_path) { int num_planes = 6; LPoint3f intersect_points[4]; diff --git a/panda/src/pgraph/portalClipper.h b/panda/src/pgraph/portalClipper.h index eb716fe2c9..7fab00a3e1 100755 --- a/panda/src/pgraph/portalClipper.h +++ b/panda/src/pgraph/portalClipper.h @@ -62,11 +62,11 @@ public: ~PortalClipper(); INLINE bool is_facing_camera(); - void prepare_portal(NodePath &node_path); + void prepare_portal(const NodePath &node_path); - void clip_portal(NodePath &node_path); + void clip_portal(const NodePath &node_path); - PT(BoundingVolume) get_reduced_frustum(NodePath &node_path); + PT(BoundingVolume) get_reduced_frustum(const NodePath &node_path); void draw_lines(); INLINE void draw_camera_frustum();