-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
185c3f7
commit fbc14bd
Showing
19 changed files
with
487 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
|
||
#include "TDebug.h" | ||
|
||
TOSHI_NAMESPACE_BEGIN | ||
|
||
class TKERNELINTERFACE_EXPORTS TQuaternion | ||
{ | ||
private: | ||
TFLOAT m_fX; // 0x0 | ||
TFLOAT m_fY; // 0x4 | ||
TFLOAT m_fZ; // 0x8 | ||
TFLOAT m_fW; // 0xC | ||
}; | ||
|
||
TOSHI_NAMESPACE_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#pragma once | ||
|
||
#include "TDebug.h" | ||
|
||
TOSHI_NAMESPACE_BEGIN | ||
|
||
class TKERNELINTERFACE_EXPORTS TVector3 | ||
{ | ||
private: | ||
TFLOAT m_fX; // 0x0 | ||
TFLOAT m_fY; // 0x4 | ||
TFLOAT m_fZ; // 0x8 | ||
}; | ||
|
||
TOSHI_NAMESPACE_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#pragma once | ||
|
||
#include "TDebug.h" | ||
#include "TVector3.h" | ||
|
||
TOSHI_NAMESPACE_BEGIN | ||
|
||
class TKERNELINTERFACE_EXPORTS TVector4 | ||
{ | ||
public: | ||
|
||
void Set(const TVector3& a_rVec3) | ||
{ | ||
|
||
} | ||
|
||
TFLOAT const& operator()(TUINT a_iIndex) const | ||
{ | ||
return (&m_fX)[a_iIndex]; | ||
} | ||
|
||
TFLOAT& operator()(TUINT a_iIndex) | ||
{ | ||
return (&m_fX)[a_iIndex]; | ||
} | ||
|
||
private: | ||
TFLOAT m_fX; // 0x0 | ||
TFLOAT m_fY; // 0x4 | ||
TFLOAT m_fZ; // 0x8 | ||
TFLOAT m_fW; // 0xC | ||
}; | ||
|
||
TOSHI_NAMESPACE_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#pragma once | ||
#include "Defines.h" | ||
|
||
TOSHI_NAMESPACE_BEGIN | ||
|
||
class TRENDERINTERFACE_EXPORTS TDBase | ||
{ | ||
public: | ||
|
||
class TRENDERINTERFACE_EXPORTS TKeyFrame | ||
{ | ||
public: | ||
void Get(TFLOAT& a_rTime); | ||
}; | ||
|
||
TFLOAT GetTransDeviation() { return s_fDeltaTransDeviation; } | ||
TFLOAT GetTransEpsilon() { return s_fDeltaTransEpsilon; } | ||
|
||
TFLOAT SetTransDeviation(TFLOAT a_fDeltaTransDeviation) { s_fDeltaTransDeviation = a_fDeltaTransDeviation; } | ||
TFLOAT SetTransEpsilon(TFLOAT a_fDeltaTransEpsilon) { s_fDeltaTransEpsilon = a_fDeltaTransEpsilon; } | ||
|
||
static inline TFLOAT s_fDeltaTransDeviation = 0.05f; | ||
static inline TFLOAT s_fDeltaTransEpsilon = 0.05f / 5.0f; | ||
}; | ||
|
||
TOSHI_NAMESPACE_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#pragma once | ||
|
||
#define TNULL nullptr | ||
#define TFALSE false | ||
#define TTRUE true | ||
#define BITFIELD(x) (1 << x) | ||
|
||
#if defined(TOSHI_RELEASE) || defined(TOSHI_DEBUG) | ||
#define TOSHI_NOTFINAL | ||
#endif | ||
|
||
#define STRINGIFY2(X) #X | ||
#define STRINGIFY(X) STRINGIFY2(X) | ||
|
||
#define STRCAT2(X, Y) X##Y | ||
#define STRCAT(X, Y) STRCAT2(X, Y) | ||
#define STRCAT_2 CAT | ||
#define STRCAT_3(X, Y, Z) STRCAT(X, STRCAT(Y, Z)) | ||
#define STRCAT_4(A, X, Y, Z) STRCAT(A, STRCAT_3(X, Y, Z)) | ||
|
||
#define HASFLAG(flag) (flag) != 0 | ||
|
||
#ifdef TOSHI_SKU_WINDOWS | ||
#define TOSHI_MULTIPLATFORM(FILENAME) STRINGIFY(STRCAT_3(Win/, FILENAME, Win.h)) | ||
#endif | ||
|
||
#ifdef TSYSSHADERD3D | ||
#define TSYSSHADERD3D_EXPORTS __declspec(dllexport) | ||
#else | ||
#define TSYSSHADERD3D_EXPORTS __declspec(dllimport) | ||
#endif | ||
|
||
#define TOSHI_API __stdcall | ||
#define TOSHI_CALLBACKAPI __cdecl | ||
|
||
#define TOSHI_NAMESPACE_BEGIN namespace Toshi { | ||
#define TOSHI_NAMESPACE_END } | ||
#define TOSHI_NAMESPACE_USING using namespace Toshi; | ||
|
||
#define TSTATICCAST(type, value) static_cast<type>(value) | ||
|
||
#define _TS8(str) #str | ||
|
||
typedef bool TBOOL; | ||
typedef int TINT; | ||
typedef unsigned int TUINT; | ||
typedef unsigned int TUINT32; | ||
typedef unsigned __int64 TUINT64; | ||
typedef short TSHORT; | ||
typedef unsigned short TUSHORT; | ||
typedef wchar_t TWCHAR; | ||
typedef wchar_t* TPWCHAR; | ||
typedef const wchar_t* TPCWCHAR; | ||
typedef const char* TPCCHAR; | ||
typedef char* TPCHAR; | ||
typedef char TCHAR; | ||
typedef const char TCCHAR; | ||
typedef char TINT8; | ||
typedef unsigned char TUINT8; | ||
typedef unsigned char TBYTE; | ||
typedef unsigned char* TPBYTE; | ||
typedef void* TPVOID; | ||
typedef const void* TPCVOID; | ||
typedef float TFLOAT; | ||
typedef const float TCFLOAT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
|
||
#include "Defines.h" | ||
|
||
TOSHI_NAMESPACE_BEGIN | ||
|
||
class ASysMaterial; | ||
class ASysMesh; | ||
|
||
class TSYSSHADERD3D_EXPORTS TSysShader | ||
{ | ||
public: | ||
virtual ASysMaterial* CreateMaterial(const char* a_szName) = 0; | ||
virtual ASysMesh* CreateMesh(const char* a_szName) = 0; | ||
}; | ||
|
||
TOSHI_NAMESPACE_END |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.