Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Commit

Permalink
[Silverback] createScreen(Ogre::Viewport *viewport, TextureAtlas *atl…
Browse files Browse the repository at this point in the history
…as) API
  • Loading branch information
alexeyknyshev committed May 2, 2014
1 parent bd09678 commit 9dc54d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Gorilla.cpp
Expand Up @@ -714,6 +714,11 @@ namespace Gorilla
Screen* Silverback::createScreen(Ogre::Viewport* viewport, const Ogre::String& atlas_name)
{
TextureAtlas* atlas = (*mAtlases.find(atlas_name)).second;
return createScreen(viewport, atlas);
}

Screen* Silverback::createScreen(Ogre::Viewport *viewport, TextureAtlas *atlas)
{
Screen* screen = OGRE_NEW Screen(viewport, atlas);
mScreens.push_back(screen);
return screen;
Expand Down
2 changes: 2 additions & 0 deletions Gorilla.h
Expand Up @@ -434,6 +434,8 @@ namespace Gorilla
reduce the number of screens you use.
*/
Screen* createScreen(Ogre::Viewport*, const Ogre::String& atlas);

Screen* createScreen(Ogre::Viewport* viewport, TextureAtlas* atlas);

/*! function. destroyScreen
desc.
Expand Down

0 comments on commit 9dc54d7

Please sign in to comment.