Skip to content

Commit

Permalink
SWIG: Overlay - instantiate ChildMap (#3285)
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Gorschlüter <felix.gorschlueter@igd.fraunhofer.de>
Co-authored-by: Pavel Rojtberg <rojtberg@gmail.com>
  • Loading branch information
3 people authored Feb 5, 2025
1 parent 7b7bfee commit 5d81888
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Components/Overlay/include/OgreOverlay.i
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@ 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);
%include "OgreOverlaySystem.h"
Expand Down

0 comments on commit 5d81888

Please sign in to comment.