Modified sf::RenderTarget so that it handles views by value rather than by reference
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1315 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
54e70a47f0
commit
6d717f3c87
3 changed files with 13 additions and 36 deletions
|
@ -126,12 +126,12 @@ public :
|
|||
const View& GetView() const;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get the default view of the window for read / write
|
||||
/// Get the default view of the window
|
||||
///
|
||||
/// \return Default view
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
View& GetDefaultView();
|
||||
const View& GetDefaultView() const;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get the viewport of a view applied to this target
|
||||
|
@ -170,12 +170,6 @@ public :
|
|||
|
||||
protected :
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Default constructor
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
RenderTarget();
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Called by the derived class when it's ready to be initialized
|
||||
///
|
||||
|
@ -199,7 +193,7 @@ private :
|
|||
////////////////////////////////////////////////////////////
|
||||
RenderQueue myRenderQueue; ///< Rendering queue storing render commands
|
||||
View myDefaultView; ///< Default view
|
||||
const View* myCurrentView; ///< Current active view
|
||||
View myCurrentView; ///< Current active view
|
||||
};
|
||||
|
||||
} // namespace sf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue