Added SH_API to Math Classes

This commit is contained in:
Cocoa 2022-09-20 16:10:47 +08:00
parent 7b7a4788e4
commit 7f173b3207
11 changed files with 37 additions and 12 deletions

View File

@ -36,7 +36,7 @@ namespace SHADE
//The Container of all Componentgroups //The Container of all Componentgroups
static std::vector<SHComponentGroup> componentGroups; static std::vector<SHComponentGroup> componentGroups;
friend struct SHSceneNode; friend class SHSceneNode;

View File

@ -12,6 +12,7 @@
// Project Headers // Project Headers
#include "SHShape.h" #include "SHShape.h"
#include "SH_API.h"
namespace SHADE namespace SHADE
{ {
@ -19,7 +20,7 @@ namespace SHADE
/* Type Definitions */ /* Type Definitions */
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
class SHBoundingBox : public SHShape class SH_API SHBoundingBox : public SHShape
{ {
public: public:
/*---------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------*/

View File

@ -12,6 +12,7 @@
// Project Headers // Project Headers
#include "Math/SHTransform.h" #include "Math/SHTransform.h"
#include "SH_API.h"
namespace SHADE namespace SHADE
{ {
@ -19,7 +20,7 @@ namespace SHADE
/* Type Definitions */ /* Type Definitions */
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
class SHShape class SH_API SHShape
{ {
public: public:
/*---------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------*/

View File

@ -15,6 +15,9 @@
#include <numbers> #include <numbers>
#include <random> #include <random>
// Project Headers
#include "SH_API.h"
namespace SHADE namespace SHADE
{ {
@ -35,7 +38,7 @@ namespace SHADE
/* Type Definitions */ /* Type Definitions */
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
class SHMath class SH_API SHMath
{ {
public: public:
/*---------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------*/

View File

@ -13,6 +13,8 @@
#include <DirectXMath.h> #include <DirectXMath.h>
#include <string> #include <string>
// Project Headers
#include "SH_API.h"
#include "Vector/SHVec4.h" #include "Vector/SHVec4.h"
namespace SHADE namespace SHADE
@ -32,7 +34,7 @@ namespace SHADE
/** /**
* @brief Interface for a Column-Major Row Vector 4x4 Matrix. * @brief Interface for a Column-Major Row Vector 4x4 Matrix.
*/ */
class SHMatrix : public DirectX::XMFLOAT4X4 class SH_API SHMatrix : public DirectX::XMFLOAT4X4
{ {
public: public:
/*---------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------*/

View File

@ -13,6 +13,9 @@
#include <DirectXMath.h> #include <DirectXMath.h>
#include <string> #include <string>
// Project Headers
#include "SH_API.h"
namespace SHADE namespace SHADE
{ {
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
@ -27,7 +30,7 @@ namespace SHADE
/* Type Definitions */ /* Type Definitions */
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
class SHQuaternion : public DirectX::XMFLOAT4 class SH_API SHQuaternion : public DirectX::XMFLOAT4
{ {
public: public:
/*---------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------*/

View File

@ -10,6 +10,8 @@
#pragma once #pragma once
// Project Headers
#include "SH_API.h"
#include "SHMath.h" #include "SHMath.h"
namespace SHADE namespace SHADE
@ -18,7 +20,7 @@ namespace SHADE
/* Type Definitions */ /* Type Definitions */
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
struct SHTransform struct SH_API SHTransform
{ {
public: public:
/*---------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------*/

View File

@ -14,6 +14,9 @@
#include <string> #include <string>
#include <initializer_list> #include <initializer_list>
// Project Headers
#include "SH_API.h"
namespace SHADE namespace SHADE
{ {
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
@ -25,7 +28,7 @@ namespace SHADE
/* Type Definitions */ /* Type Definitions */
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
class SHVec2 : public DirectX::XMFLOAT2 class SH_API SHVec2 : public DirectX::XMFLOAT2
{ {
public: public:
/*---------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------*/

View File

@ -14,6 +14,9 @@
#include <string> #include <string>
#include <initializer_list> #include <initializer_list>
// Project Headers
#include "SH_API.h"
namespace SHADE namespace SHADE
{ {
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
@ -25,7 +28,7 @@ namespace SHADE
/* Type Definitions */ /* Type Definitions */
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
class SHVec3 : public DirectX::XMFLOAT3 class SH_API SHVec3 : public DirectX::XMFLOAT3
{ {
public: public:
/*---------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------*/

View File

@ -14,6 +14,9 @@
#include <string> #include <string>
#include <initializer_list> #include <initializer_list>
// Project Headers
#include "SH_API.h"
namespace SHADE namespace SHADE
{ {
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
@ -25,7 +28,7 @@ namespace SHADE
/* Type Definitions */ /* Type Definitions */
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
class SHVec4 : public DirectX::XMFLOAT4 class SH_API SHVec4 : public DirectX::XMFLOAT4
{ {
public: public:
/*---------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------*/

View File

@ -13,14 +13,18 @@
#define SH_SCENE_MANAGER_H #define SH_SCENE_MANAGER_H
#include "ECS_Base/General/SHFamily.h"
#include "SHScene.h" #include "SHScene.h"
#include <functional> #include <functional>
//Project Headers
#include "SH_API.h"
#include "ECS_Base/General/SHFamily.h"
namespace SHADE namespace SHADE
{ {
class SHSceneManager class SH_API SHSceneManager
{ {
private: private:
//boolean to check if the scene has been changed //boolean to check if the scene has been changed