Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <uilib/uilib.h>
+
#include "gensurf.h"
// Global plugin FuncTable
_QERFuncTable_1 g_FuncTable;
_QERQglTable g_GLTable;
_QERUIGtkTable g_UIGtkTable;
-_QEREntityTable g_EntityTable;
+_QEREntityTable __ENTITYTABLENAME;
+_QERBrushTable __BRUSHTABLENAME;
+_QERPatchTable __PATCHTABLENAME;
bool SingleBrushSelected;
bool g_bInitDone;
#include "iplugin.h"
const char* QERPlug_Init( void* hApp, void* pMainWidget ){
- g_pRadiantWnd = (GtkWidget*)pMainWidget;
+ g_pRadiantWnd = ui::Window::from(pMainWidget);
return "GenSurf for Q3Radiant";
}
UseFaceBounds();
}
- gtk_widget_show( g_pWnd );
+ g_pWnd.show();
}
}
-extern "C" LPVOID WINAPI QERPlug_GetFuncTable(){
- return &g_FuncTable;
-}
-
// =============================================================================
// SYNAPSE
CSynapseServer* g_pSynapseServer = NULL;
GenSurfSynapseClient g_SynapseClient;
-#if __GNUC__ >= 4
-#pragma GCC visibility push(default)
-#endif
-extern "C" CSynapseClient * SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) {
-#if __GNUC__ >= 4
-#pragma GCC visibility pop
-#endif
+extern "C" CSynapseClient * SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ){
if ( strcmp( version, SYNAPSE_VERSION ) ) {
Syn_Printf( "ERROR: synapse API version mismatch: should be '" SYNAPSE_VERSION "', got '%s'\n", version );
return NULL;