Sha256: c8f848e78405d302cf0a7cc8d08506a08fbbd318b4d66cb3eaa38aac7d7b2009

Contents?: true

Size: 858 Bytes

Versions: 5

Compression:

Stored size: 858 Bytes

Contents

%{
#include <OgreRoot.h>
%}

%feature("valuewrapper") Ogre::Root::MovableObjectFactoryIterator;
class Ogre::Root::MovableObjectFactoryIterator;

//%ignore Ogre::Root::getAvailableRenderers;

%extend Ogre::Root {
	VALUE getAvailableRendererArray(void) {
		VALUE ary = rb_ary_new();

		Ogre::RenderSystemList rsList = self->getAvailableRenderers();
		for (unsigned int i = 0; i < rsList.size(); i++) {
			VALUE rs = SWIG_NewPointerObj(SWIG_as_voidptr(rsList[i]), SWIGTYPE_p_Ogre__RenderSystem, 0 |  0 );
			rb_ary_push(ary, rs);
		}
		return ary;
	}
	void destruct() {
		delete self;
		self = NULL;
	}
}


//#ifdef DEBUG_FREEFUNC
%freefunc Ogre::Root "debug_free_Root";
//#endif


%include OgreRoot.h

%{
static void debug_free_Root(void* ptr) {
	Ogre::Root* obj = (Ogre::Root*) ptr;
	
	std::cout << __PRETTY_FUNCTION__ << std::endl;
	 
//	 delete obj;
 }
%}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-ogre-0.0.5-x86-linux bindings/ogre/interface/OgreRoot.i
ruby-ogre-0.0.4-x86-linux bindings/ogre/interface/OgreRoot.i
ruby-ogre-0.0.3-x86-linux bindings/ogre/interface/OgreRoot.i
ruby-ogre-0.0.2-x86-linux bindings/ogre/interface/OgreRoot.i
ruby-ogre-0.0.1-x86-linux bindings/ogre/interface/OgreRoot.i