mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
const
This commit is contained in:
parent
b312099dda
commit
ff8ac9f0a4
@ -227,7 +227,7 @@ draw_lines()
|
|||||||
// for now. More functionalities coming up
|
// for now. More functionalities coming up
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void PortalClipper::
|
void PortalClipper::
|
||||||
prepare_portal(NodePath &node_path)
|
prepare_portal(const NodePath &node_path)
|
||||||
{
|
{
|
||||||
SegmentList segs;
|
SegmentList segs;
|
||||||
|
|
||||||
@ -290,7 +290,7 @@ prepare_portal(NodePath &node_path)
|
|||||||
// and form the new planes of the reduced view frustum
|
// and form the new planes of the reduced view frustum
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void PortalClipper::
|
void PortalClipper::
|
||||||
clip_portal(NodePath &node_path)
|
clip_portal(const NodePath &node_path)
|
||||||
{
|
{
|
||||||
int num_planes = _hex_frustum->get_num_planes();
|
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
|
// fill in the new frustum. Return true if success
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
PT(BoundingVolume) PortalClipper::
|
PT(BoundingVolume) PortalClipper::
|
||||||
get_reduced_frustum(NodePath &node_path)
|
get_reduced_frustum(const NodePath &node_path)
|
||||||
{
|
{
|
||||||
int num_planes = 6;
|
int num_planes = 6;
|
||||||
LPoint3f intersect_points[4];
|
LPoint3f intersect_points[4];
|
||||||
|
@ -62,11 +62,11 @@ public:
|
|||||||
~PortalClipper();
|
~PortalClipper();
|
||||||
|
|
||||||
INLINE bool is_facing_camera();
|
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();
|
void draw_lines();
|
||||||
INLINE void draw_camera_frustum();
|
INLINE void draw_camera_frustum();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user