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
static std::vector<SHComponentGroup> componentGroups;
friend struct SHSceneNode;
friend class SHSceneNode;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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