Skip to content

Commit

Permalink
Add getter for Ogre2Camera (#97)
Browse files Browse the repository at this point in the history
Signed-off-by: Kamal Aghayev <[email protected]>

Co-authored-by: Kamal Aghayev <[email protected]>
  • Loading branch information
agayev169 and Kamal Aghayev authored Jun 8, 2020
1 parent 2d247a4 commit 5ca5ea0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ogre2/include/ignition/rendering/ogre2/Ogre2Camera.hh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ namespace ignition
// Documentation inherited.
public: virtual void Destroy() override;

public: Ogre::Camera *OgreCamera() const;

// Documenation inherited.
protected: virtual RenderTargetPtr RenderTarget() const override;

Expand Down
6 changes: 6 additions & 0 deletions ogre2/src/Ogre2Camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,9 @@ void Ogre2Camera::SetFarClipPlane(const double _far)
BaseCamera::SetFarClipPlane(_far);
this->ogreCamera->setFarClipDistance(_far);
}

//////////////////////////////////////////////////
Ogre::Camera *Ogre2Camera::OgreCamera() const
{
return ogreCamera;
}

0 comments on commit 5ca5ea0

Please sign in to comment.