lots of updates
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#ifndef CL_DLL_H
|
||||
#define CL_DLL_H
|
||||
|
||||
#include "tier2/iappsystem.h"
|
||||
#include "materialsystem/imaterialsystem.h"
|
||||
#include "materialsystem/igamewindow.h"
|
||||
#include "enginebridge.h"
|
||||
|
||||
class CClientGameDLL: public IAppSystem
|
||||
{
|
||||
public:
|
||||
virtual void Init() override;
|
||||
virtual void Shutdown() override;
|
||||
|
||||
IGameWindow *m_pGameWindow;
|
||||
IRenderContext *m_pRenderContext;
|
||||
|
||||
IEngineBridge *m_pBridge;
|
||||
|
||||
private:
|
||||
void *m_pLibrary;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
14
public/enginebridge.h
Normal file
14
public/enginebridge.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef ENGINE_BRIDGE_H
|
||||
#define ENGINE_BRIDGE_H
|
||||
|
||||
#include "gamesystem.h"
|
||||
|
||||
abstract_class IEngineBridge: public IGameSystem
|
||||
{
|
||||
public:
|
||||
virtual void ConnectInterface( const char *psz, void *pInterface ) = 0;
|
||||
};
|
||||
|
||||
#define ENGINE_BRIDGE_INTERFACE_VERSION "EngineBridge001"
|
||||
|
||||
#endif
|
||||
@@ -15,6 +15,9 @@ enum EImageFormat
|
||||
IMAGE_FORMAT_BGRA8_UNORM,
|
||||
IMAGE_FORMAT_RGBA8_UINT,
|
||||
IMAGE_FORMAT_RGBA8_SINT,
|
||||
IMAGE_FORMAT_RGBA16_UNORM,
|
||||
IMAGE_FORMAT_RGBA16_UINT,
|
||||
IMAGE_FORMAT_RGBA16_SINT,
|
||||
IMAGE_FORMAT_RGBA16_SFLOAT,
|
||||
IMAGE_FORMAT_RGBA32_SFLOAT,
|
||||
|
||||
@@ -31,6 +34,12 @@ enum EVertexFormat
|
||||
VERTEX_FORMAT_XYZW32_SFLOAT,
|
||||
};
|
||||
|
||||
enum EIndexFormat
|
||||
{
|
||||
INDEX_FORMAT_USHORT,
|
||||
INDEX_FORMAT_UINT,
|
||||
};
|
||||
|
||||
enum EImageType
|
||||
{
|
||||
IMAGE_TYPE_1D,
|
||||
@@ -136,6 +145,7 @@ public:
|
||||
virtual void SetTopology( ETopologyMode eTopology ) = 0;
|
||||
virtual void AddOutputImage( int iImageIndex, EImageFormat eFormat ) = 0;
|
||||
virtual void SetDepthImage( EImageFormat eFormat ) = 0;
|
||||
virtual void DisablePixelShader( bool bDisable) = 0;
|
||||
virtual void Build() = 0;
|
||||
};
|
||||
|
||||
|
||||
@@ -2,21 +2,23 @@
|
||||
#define SV_DLL_H
|
||||
|
||||
#include "tier2/iappsystem.h"
|
||||
|
||||
#define SERVER_DLL_INTERFACE_NAME "ServerGameDLL001"
|
||||
#include "materialsystem/imaterialsystem.h"
|
||||
#include "materialsystem/igamewindow.h"
|
||||
#include "enginebridge.h"
|
||||
|
||||
class CServerGameDLL: public IAppSystem
|
||||
{
|
||||
public:
|
||||
virtual void Init() override;
|
||||
virtual void Shutdown() override;
|
||||
|
||||
void GameFrame();
|
||||
|
||||
IGameWindow *m_pGameWindow;
|
||||
IRenderContext *m_pRenderContext;
|
||||
|
||||
IEngineBridge *m_pBridge;
|
||||
|
||||
private:
|
||||
void *m_pLibrary;
|
||||
};
|
||||
|
||||
CServerGameDLL *ServerGameDLL();
|
||||
|
||||
#endif
|
||||
|
||||
21
public/trig.h
Normal file
21
public/trig.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef TRIG_H
|
||||
#define TRIG_H
|
||||
|
||||
struct Vector {
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
};
|
||||
struct QAngle {
|
||||
float pitch;
|
||||
float yaw;
|
||||
float roll;
|
||||
};
|
||||
|
||||
struct Quat {
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float w;
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user