Sha256: 7ce8cbc1756695a8f0882b7afb7a5b1276aca256ad32b11494afd294d5a02a63
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-ogre-0.0.1-x86-mingw32 | bindings/ogre/interface/OgreRenderSystem.i |