SH_API EVERYWHERE

This commit is contained in:
Brandon Mak 2022-09-16 14:20:21 +08:00
parent 4b168fb2d7
commit a42a8b0c46
5 changed files with 11 additions and 8 deletions

View File

@ -1,6 +1,6 @@
#include "SBpch.h" #include "SBpch.h"
#include "SBApplication.h" #include "SBApplication.h"
#include "Engine/ECS_Base/System/SHSystemManager.h" #include "ECS_Base/System/SHSystemManager.h"
#define SHEDITOR #define SHEDITOR
#ifdef SHEDITOR #ifdef SHEDITOR

View File

@ -20,12 +20,13 @@
#include <string> #include <string>
#include <cassert> #include <cassert>
#include "../System/SHSystem.h" #include "../System/SHSystem.h"
#include "SH_API.h"
namespace SHADE namespace SHADE
{ {
class SHSystemManager class SH_API SHSystemManager
{ {
//type definition for the container we use to store our system //type definition for the container we use to store our system
using SystemContainer = std::unordered_map<std::string, std::unique_ptr<SHSystem>>; using SystemContainer = std::unordered_map<std::string, std::unique_ptr<SHSystem>>;

View File

@ -63,7 +63,7 @@ namespace SHADE
portions of the screen. portions of the screen.
*/ */
/***********************************************************************************/ /***********************************************************************************/
class SHGraphicsSystem : public SHSystem class SH_API SHGraphicsSystem : public SHSystem
{ {
public: public:
/*-----------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------*/

View File

@ -3,6 +3,7 @@
#include <vector> #include <vector>
#include "SHPerFrameData.h" #include "SHPerFrameData.h"
#include "SH_API.h"
namespace SHADE namespace SHADE
{ {
@ -16,7 +17,7 @@ namespace SHADE
//! render context in SHADE engine has is that it requires users to call these explicitly in the middle end. While there //! render context in SHADE engine has is that it requires users to call these explicitly in the middle end. While there
//! is little reason the flow of the render context should deviate from its intended usage, we want to leave it up to //! is little reason the flow of the render context should deviate from its intended usage, we want to leave it up to
//! users to explicitly call functions from here so we don't risk losing opportunities for different usage. //! users to explicitly call functions from here so we don't risk losing opportunities for different usage.
class SHRenderContext class SH_API SHRenderContext
{ {
private: private:
//! container of frame data. Note that the manager owns the data, but the frame data themselves do not own anything. //! container of frame data. Note that the manager owns the data, but the frame data themselves do not own anything.

View File

@ -3,6 +3,7 @@
#include "Graphics/Renderpass/SHVkRenderpass.h" #include "Graphics/Renderpass/SHVkRenderpass.h"
#include "Resource/ResourceLibrary.h" #include "Resource/ResourceLibrary.h"
#include "SH_API.h"
#include <string> #include <string>
#include <map> #include <map>
@ -28,7 +29,7 @@ namespace SHADE
DEPTH_STENCIL, DEPTH_STENCIL,
}; };
class SHRenderGraphResource class SH_API SHRenderGraphResource
{ {
private: private:
/*-----------------------------------------------------------------------*/ /*-----------------------------------------------------------------------*/
@ -74,11 +75,11 @@ namespace SHADE
friend class SHRenderGraph; friend class SHRenderGraph;
}; };
class SHRenderGraphNode : public ISelfHandle<SHRenderGraphNode> class SH_API SHRenderGraphNode : public ISelfHandle<SHRenderGraphNode>
{ {
public: public:
class SHSubpass class SH_API SHSubpass
{ {
public: public:
/*-----------------------------------------------------------------------*/ /*-----------------------------------------------------------------------*/
@ -218,7 +219,7 @@ namespace SHADE
friend class SHRenderGraph; friend class SHRenderGraph;
}; };
class SHRenderGraph class SH_API SHRenderGraph
{ {
private: private:
/*-----------------------------------------------------------------------*/ /*-----------------------------------------------------------------------*/