// Children of abstract classes needs explicit declaration.
// This should come before any usage of shared_ptr on code.
...
SWIGINTERN PyObject *_wrap_engine_t_createWindow__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
std::string *arg1 = 0 ;
vector2_t *arg2 = 0 ;
bool arg3 ;
int res1 = SWIG_OLDOBJ ;
void *argp2 = 0 ;
int res2 = 0 ;
bool val3 ;
int ecode3 = 0 ;
SwigValueWrapper< boost::shared_ptr< renderWindow_t > > result;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
{
std::string *ptr = (std::string *)0;
res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "engine_t_createWindow" "', argument " "1"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "engine_t_createWindow" "', argument " "1"" of type '" "std::string const &""'");
}
arg1 = ptr;
}
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Vector2T_float_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "engine_t_createWindow" "', argument " "2"" of type '" "vector2_t const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "engine_t_createWindow" "', argument " "2"" of type '" "vector2_t const &""'");
}
arg2 = reinterpret_cast< vector2_t * >(argp2);
ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "engine_t_createWindow" "', argument " "3"" of type '" "bool""'");
}
arg3 = static_cast< bool >(val3);
result = cg::engine_t::createWindow((std::string const &)*arg1,(Vector2< float > const &)*arg2,arg3);
resultobj = SWIG_NewPointerObj((new boost::shared_ptr< renderWindow_t >(static_cast< const boost::shared_ptr< renderWindow_t >& >(result))), SWIGTYPE_p_boost__shared_ptrT_renderWindow_t_t, SWIG_POINTER_OWN | 0 );
if (SWIG_IsNewObj(res1)) delete arg1;
return resultobj;
fail:
if (SWIG_IsNewObj(res1)) delete arg1;
return NULL;
}