#include #include "mingwms.h" #include "msLib.h" static const char* GetTitle() { return "Mingw test plugin"; } static int Execute(msModel* model) { if (!model) return -1; if (msModel_GetMeshCount(model)<1) { W32DLib::Common::Error(NULL, "No meshes in the model!"); return 0; } for(int i = 0; i < msModel_GetMeshCount(model); ++i) { msMesh* mesh = msModel_GetMeshAt(model, i); char buf[256]; msMesh_GetName(mesh, buf, 255); W32DLib::Common::Message(NULL, buf); } return 0; } PLUGIN_SPEC void* CreatePlugIn() { return CreateMINGWPlugin(MS_TYPE_TOOL, GetTitle, Execute); }