- CPtrArray& GetActiveHandles() {return m_ActiveBrushHandles; };
- CPtrArray& GetSelectedHandles() {return m_SelectedBrushHandles; };
- CPtrArray& GetPluginPatches() {return m_PluginPatches; };
- brush_t* FindBrushHandle(void *vp);
- patchMesh_t* FindPatchHandle(int index);
- int CreatePatchHandle();
- int AllocateActivePatchHandles();
- int AllocateSelectedPatchHandles();
- void CommitPatchHandleToMap(int index, patchMesh_t *pMesh, char *texName);
- void CommitPatchHandleToEntity(int index, patchMesh_t *pMesh, char *texName, void *vpEntity);
- void ReleasePatchesHandles() { m_PatchesHandles.RemoveAll(); m_PluginPatches.RemoveAll(); }
- void AddFaceToBrushHandle(void *vp, vec3_t v1, vec3_t v2, vec3_t v3);
- void CommitBrushHandleToMap(void *vp);
- void DeleteBrushHandle(void* vp);
- void* CreateBrushHandle();
- void Dispatch(int n, const char *p);
- void Cleanup(); ///< cleanup of data structures allocated for plugins, not a plugin reload
- void Init(); ///< go through the path where we will find modules and plugins
- void LoadImage (const char *name, unsigned char **pic, int *width, int *height);
- void ImportMap (IDataStream *in, CPtrArray *ents, const char *type);
- void ExportMap (CPtrArray *ents, IDataStream *out, const char *type);
- void Shutdown(); ///< shutdown all the plugins/module subsystem
- CPlugInManager();
- virtual ~CPlugInManager();
-
- /*!
- the texture manager front ends the single load
- addins (texture, model, map formats.. etc.)
- */
- _QERTextureInfo* GetTextureInfo();
- void LoadTexture(const char *pFilename);
-
-void* GetSurfaceFlags();
-
- // v1.70
- CPtrArray& GetEntityBrushHandles() {return m_EntityBrushHandles; };
- CPtrArray& GetEntityHandles() {return m_EntityHandles; };
- //! the vpBrush needs to be in m_BrushHandles
- void CommitBrushHandleToEntity(void* vpBrush, void* vpEntity );
- //! the vpEntity needs to be in m_EntityHandles
- void CommitEntityHandleToMap( void* vpEntity );
-
-protected:
- //! read the interfaces this plugin implements
- void LoadFromPath(const char *path); ///< load all modules/plugins in specified path
- void RegisterInterfaces();