mirror of
https://github.com/dege-diosg/dgVoodoo2
synced 2024-07-08 20:51:02 +02:00
51 lines
1.2 KiB
C++
51 lines
1.2 KiB
C++
|
// *****************************************************************************
|
||
|
// File: AddonMain.hpp
|
||
|
//
|
||
|
// Description: Main host object for addon implementation of dgVoodoo Addon DLL
|
||
|
//
|
||
|
// Contact person: DG
|
||
|
//
|
||
|
// *****************************************************************************
|
||
|
|
||
|
// --- Includes ----------------------------------------------------------------
|
||
|
|
||
|
#include "Public\IIniParser.hpp"
|
||
|
#include "Public\APIDebugObj.hpp"
|
||
|
|
||
|
#include "Public\Addon\AddonDefs.hpp"
|
||
|
#include "Public\Addon\IAddonMainCallback.hpp"
|
||
|
|
||
|
#include "Presenter.hpp"
|
||
|
#include "Texturer.hpp"
|
||
|
|
||
|
// --- Namespaces --------------------------------------------------------------
|
||
|
|
||
|
using namespace dgVoodoo;
|
||
|
|
||
|
// --- Predeclarations ---------------------------------------------------------
|
||
|
|
||
|
// --- AddonMain ---------------------------------------------------------------
|
||
|
|
||
|
class AddonMain: public APIDebugObj
|
||
|
{
|
||
|
friend class Texturer;
|
||
|
friend class Presenter;
|
||
|
|
||
|
protected:
|
||
|
HINSTANCE hDll;
|
||
|
IAddonMainCallback* pAddonMainCB;
|
||
|
IIniParser* pINIParser;
|
||
|
|
||
|
Texturer texturer;
|
||
|
Presenter presenter;
|
||
|
|
||
|
protected:
|
||
|
bool ILoadAndValidateINIFile ();
|
||
|
|
||
|
public:
|
||
|
AddonMain (HINSTANCE hDll, IAddonMainCallback* pAddonMainCB);
|
||
|
~AddonMain ();
|
||
|
|
||
|
bool Init ();
|
||
|
void Exit ();
|
||
|
};
|