/*
** Lua binding: Helpers
** Generated automatically by tolua++-1.0.92 on Fri Feb 21 13:29:21 2014.
*/

#ifndef __cplusplus
#include "stdlib.h"
#endif
#include "string.h"

#include "components/lua/tolua++.h"

/* Exported function */
TOLUA_API int  tolua_Helpers_open (lua_State* tolua_S);

#include "required.h"

/* function to register type */
static void tolua_reg_types (lua_State* tolua_S)
{
 tolua_usertype(tolua_S,"Ember::OgreView::OgreUtils");
 tolua_usertype(tolua_S,"Ogre::Mesh");
}

/* method: getSubMeshName of class  Ember::OgreView::OgreUtils */
#ifndef TOLUA_DISABLE_tolua_Helpers_Ember_OgreView_OgreUtils_getSubMeshName00
static int tolua_Helpers_Ember_OgreView_OgreUtils_getSubMeshName00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertable(tolua_S,1,"Ember::OgreView::OgreUtils",0,&tolua_err) ||
     !tolua_isusertype(tolua_S,2,"Ogre::Mesh",0,&tolua_err) ||
     !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  Ogre::Mesh* mesh = ((Ogre::Mesh*)  tolua_tousertype(tolua_S,2,0));
  unsigned int subMeshIndex = ((unsigned int)  tolua_tonumber(tolua_S,3,0));
  {
   const std::string tolua_ret = (const std::string)  Ember::OgreView::OgreUtils::getSubMeshName(mesh,subMeshIndex);
   tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'getSubMeshName'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* Open function */
TOLUA_API int tolua_Helpers_open (lua_State* tolua_S)
{
 tolua_open(tolua_S);
 tolua_reg_types(tolua_S);
 tolua_module(tolua_S,NULL,0);
 tolua_beginmodule(tolua_S,NULL);
  tolua_module(tolua_S,"Ember",0);
  tolua_beginmodule(tolua_S,"Ember");
   tolua_module(tolua_S,"OgreView",0);
   tolua_beginmodule(tolua_S,"OgreView");
    tolua_cclass(tolua_S,"OgreUtils","Ember::OgreView::OgreUtils","",NULL);
    tolua_beginmodule(tolua_S,"OgreUtils");
     tolua_function(tolua_S,"getSubMeshName",tolua_Helpers_Ember_OgreView_OgreUtils_getSubMeshName00);
    tolua_endmodule(tolua_S);
   tolua_endmodule(tolua_S);
  tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
}


#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
 TOLUA_API int luaopen_Helpers (lua_State* tolua_S) {
 return tolua_Helpers_open(tolua_S);
};
#endif

