Danbias/Code/Game/GameClient/Include/DanBiasGame.h

70 lines
1.4 KiB
C
Raw Normal View History

/////////////////////////////////////////
// Created by [Dennis Andersen] [2013] //
/////////////////////////////////////////
2013-12-03 12:07:37 +01:00
#ifndef DANBIASGAME_DANBIASGAME_H
#define DANBIASGAME_DANBIASGAME_H
#define DANBIAS_CLIENT
2013-12-13 12:02:49 +01:00
2013-12-03 12:07:37 +01:00
#if defined (DANBIAS_GAME_DLL_EXPORT)
#define DANBIAS_GAME_DLL __declspec(dllexport)
#else
#define DANBIAS_GAME_DLL __declspec(dllimport)
#endif
#define NOMINMAX
#include <Windows.h>
2013-12-03 12:07:37 +01:00
namespace DanBias
{
extern "C"
{
enum DanBiasClientReturn
{
DanBiasClientReturn_Error,
2014-02-12 17:20:42 +01:00
DanBiasClientReturn_Success
2013-12-03 12:07:37 +01:00
};
struct DanBiasGameDesc
{
//Stuff goes here...
int port;
2013-12-16 09:55:51 +01:00
const char* IP;
HINSTANCE hinst;
int nCmdShow;
2013-12-03 12:07:37 +01:00
};
2013-12-18 12:18:01 +01:00
class DanBiasGamePrivateData;
2013-12-03 12:07:37 +01:00
class DANBIAS_GAME_DLL DanBiasGame
{
public:
//--------------------------------------------------------------------------------------
// Interface API functions
//--------------------------------------------------------------------------------------
2013-12-03 12:07:37 +01:00
static DanBiasClientReturn Initiate(DanBiasGameDesc& desc);
static DanBiasClientReturn Run();
static void Release();
private:
2014-02-12 17:20:42 +01:00
enum Result
{
Result_continue,
Result_quit,
Result_error
};
2014-02-12 17:20:42 +01:00
static HRESULT InitDirect3D();
2014-02-20 16:15:47 +01:00
static HRESULT InitInput( HINSTANCE *handle );
2014-02-12 17:20:42 +01:00
static Result Update(float deltaTime);
2014-02-12 14:33:56 +01:00
static HRESULT Render();
static HRESULT CleanUp();
2013-12-03 12:07:37 +01:00
};
2013-12-03 12:07:37 +01:00
}//End Extern "C"
} //End namespace DanBias
2013-12-03 12:07:37 +01:00
#endif // !DANBIASGAME_DANBIASGAME_H