Skip to content

Commit

Permalink
Update Components/Overlay/include/OgreOverlay.i
Browse files Browse the repository at this point in the history
Co-authored-by: Pavel Rojtberg <rojtberg@gmail.com>
  • Loading branch information
fegorsch and paroj authored Feb 5, 2025
1 parent 96470ee commit 36f462b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Components/Overlay/include/OgreOverlay.i
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ SHARED_PTR(OverlayContainer);
#endif
%ignore Ogre::OverlayManager::getTemplateIterator;
%ignore Ogre::OverlayManager::getOverlayIterator;
#ifdef SWIGPYTHON
%{
// this is a workaround for the following map
namespace swig {
template<> struct traits<Ogre::OverlayElement> {
typedef pointer_category category;
static const char* type_name() { return "Ogre::OverlayElement"; }
};
}
%}
#endif
%template(OverlayElementMap) std::map<std::string, Ogre::OverlayElement*>;
%include "OgreOverlayManager.h"
SHARED_PTR(OverlaySystem);
Expand Down

0 comments on commit 36f462b

Please sign in to comment.