Sha256: 3bf0aaafbe17f16f662dadec0db6b6e8547ac39eefa9d52e2ea91ec5ef31ba9a
Contents?: true
Size: 700 Bytes
Versions: 5
Compression:
Stored size: 700 Bytes
Contents
%{ #include <OgreRenderSystem.h> %} %extend Ogre::RenderSystem { VALUE getConfigOptionHash() { VALUE hash = rb_hash_new(); Ogre::ConfigOptionMap& options = self->getConfigOptions(); for (Ogre::ConfigOptionMap::iterator it = options.begin(); it != options.end(); it++){ //VALUE key = SWIG_From_std_string(static_cast< std::string >((it->first))); //std::string& s = static_cast< std::string >((it->first)); VALUE key = SWIG_FromCharPtrAndSize(it->first.data(), it->first.size()); VALUE value = SWIG_NewPointerObj(SWIG_as_voidptr(&(it->second)), SWIGTYPE_p_Ogre___ConfigOption, 0 | 0 ); rb_hash_aset(hash, key, value); } return hash; } } %include OgreRenderSystem.h
Version data entries
5 entries across 5 versions & 1 rubygems