Skip to content

Commit

Permalink
fix comments, include header
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed May 9, 2023
1 parent d6da89e commit 8383807
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/projector/GlutWindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
#include <gz/math/Vector3.hh>
#include <gz/rendering/Camera.hh>
#include <gz/rendering/Image.hh>
#include <gz/rendering/OrbitViewController.hh>
#include <gz/rendering/Projector.hh>
#include <gz/rendering/RayQuery.hh>
#include <gz/rendering/Scene.hh>
#include <gz/rendering/OrbitViewController.hh>

#include "GlutWindow.hh"

Expand Down
2 changes: 1 addition & 1 deletion ogre/src/OgreProjector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ void OgreProjector::UpdateCameraListener()
Ogre::String camName = ogreCamIt.second;
// instead of getting the camera pointer through ogreCamIt.first,
// find camera pointer again to make sure the camera still exists
// because there is a chance that we are holding onto a dangling pointer
// because there is a chance that we are holding onto a dangling pointer
// if that camera was deleted already
auto ogreCam = this->scene->OgreSceneManager()->getCamera(camName);
ogreCam->getViewport()->getTarget()->removeListener(
Expand Down
4 changes: 2 additions & 2 deletions ogre2/src/Ogre2Projector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ inline namespace GZ_RENDERING_VERSION_NAMESPACE {
class Ogre2ProjectorCameraListener: public Ogre::Camera::Listener
{
/// \brief Constructor
/// \param[in] _node Pointer to the node that holds the decal (projector)
/// \param[in] _decal Pointer to the ogre decal (projected texture)
public: Ogre2ProjectorCameraListener(Ogre::Decal *_decal);

//// \brief Set the visibility flags for this projector
Expand Down Expand Up @@ -171,7 +171,7 @@ void Ogre2Projector::UpdateCameraListener()
Ogre::IdString camName = ogreCamIt.second;
// instead of getting the camera pointer through ogreCamIt.first,
// find camera pointer again to make sure the camera still exists
// because there is a chance that we are holding onto a dangling pointer
// because there is a chance that we are holding onto a dangling pointer
// if that camera was deleted already
auto ogreCam =
this->scene->OgreSceneManager()->findCameraNoThrow(camName);
Expand Down

0 comments on commit 8383807

Please sign in to comment.