Skip to content

Commit

Permalink
make camera in ClippingPlane::draw() constant
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Dec 29, 2024
1 parent ed50439 commit a182734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion easy3d/renderer/clipping_plane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ namespace easy3d {
}


void ClippingPlane::draw(Camera *cam) const {
void ClippingPlane::draw(const Camera *cam) const {
if (!enabled_ || !visible_)
return;

Expand Down
2 changes: 1 addition & 1 deletion easy3d/renderer/clipping_plane.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ namespace easy3d {
void set_discard_primitives(ShaderProgram *program, bool plane_clipping_discard) const;

/// draws the clipping plane itself.
void draw(Camera* cam) const;
void draw(const Camera* cam) const;

/// returns the manipulator attached to the clipping plane.
virtual Manipulator *manipulator() { return manipulator_; }
Expand Down

0 comments on commit a182734

Please sign in to comment.