-
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
c84b62a
commit a6fdfc0
Showing
34 changed files
with
521 additions
and
117 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,36 @@ | ||
#pragma once | ||
|
||
#include "TKernel/TCString.h" | ||
#include "TKernel/TLString.h" | ||
#include "TKernel/TManagedPointer.h" | ||
|
||
class AGUIGameHUD | ||
{ | ||
public: | ||
|
||
enum HUDComponents | ||
{ | ||
|
||
}; | ||
|
||
Toshi::TLString GetHintMessage() | ||
{ | ||
return *m_LSHintMessage.m_pObject; | ||
} | ||
|
||
HUDComponents GetHUD() | ||
{ | ||
return m_eHUDComponents; | ||
} | ||
|
||
void SetBackgroundMatLib(TPCCHAR a_szBKGMatLib) | ||
{ | ||
m_szBKGMatLib = a_szBKGMatLib; | ||
} | ||
|
||
private: | ||
Toshi::TManagedPtr<Toshi::TLString> m_LSHintMessage; // 0x4 | ||
HUDComponents m_eHUDComponents; // 0x8 | ||
Toshi::TCString m_szBKGMatLib; // 0x2C | ||
}; | ||
|
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,7 @@ | ||
#include "AGUISystem.h" | ||
#include "main.h" | ||
|
||
AGUISystem* TOSHI_API AGUISystem::GetGUISystem() | ||
{ | ||
return g_oTheApp.GetRootTask()->GetGUISystem(); | ||
} |
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,9 @@ | ||
#pragma once | ||
#include "TKernel/TCString.h" | ||
|
||
class AGUISystem | ||
{ | ||
public: | ||
static AGUISystem* TOSHI_API GetGUISystem(); | ||
}; | ||
|
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,85 @@ | ||
#pragma once | ||
|
||
#include "AMoviePlayer.h" | ||
#include <dsound.h> | ||
#include "BINK.H" | ||
#include "RAD.H" | ||
#include <windows.h> | ||
#include "TKernel/TMemory.h" | ||
#include "TRender/TTextureFactory.h" | ||
|
||
TOSHI_NAMESPACE_BEGIN | ||
|
||
class ABINKMoviePlayer : public AMoviePlayer | ||
{ | ||
public: | ||
ABINKMoviePlayer(); | ||
|
||
virtual TBOOL InitializeMoviePlayer(); | ||
|
||
virtual TBOOL ShutdownMoviePlayer(); | ||
|
||
virtual TBOOL StartMovie(TPCHAR a_szMovieName, TBOOL a_bUnk1, TPCHAR a_szUnk2, TBOOL a_bUseLocale); | ||
|
||
virtual TBOOL Update(TFLOAT a_fDeltaTime); | ||
|
||
virtual TBOOL RenderToTexture(TTextureResource *a_pTexture); | ||
|
||
virtual TBOOL RenderToFrameBuffer(); | ||
virtual TBOOL RenderToFrameBuffer(TPBYTE a_pDest, TINT a_iSourceHeigth, TINT a_iDestHeigth, TINT a_iDestPitch, TINT a_iDestX, INT a_iDestY, INT a_iSrcX, INT a_iSrcY); | ||
|
||
virtual TBOOL InitializeVideoResource(); | ||
virtual TBOOL InitializeAudioResource(); | ||
|
||
virtual TBOOL FreeVideoResource(); | ||
|
||
virtual TBOOL FreeAudioResource() | ||
{ | ||
delete m_pDirectSound; | ||
return TTRUE; | ||
} | ||
virtual void SetLocaleInfoA(TPCHAR a_szBuffer); | ||
virtual TTextureResource* GetTexture() { return m_pTextures[m_iCurrentTextureIndex]; } | ||
|
||
void BinkSleep(TINT a_iMicroseconds); | ||
TBOOL RenderToTiles(); | ||
TTextureResource* GetCurrentTexture() { return m_pTextures[m_iCurrentTextureIndex]; } | ||
void SetCurrentTexture(TTextureResource* a_pTexture) | ||
{ | ||
if (!m_pTextures[m_iCurrentTextureIndex]) { | ||
m_pTextures[m_iCurrentTextureIndex] = a_pTexture; | ||
} | ||
} | ||
|
||
private: | ||
|
||
static void PTR4* RADLINK RADMEMALLOC(U32 bytes) | ||
{ | ||
return tmalloc(bytes, TNULL, -1); | ||
} | ||
|
||
static void RADLINK RADMEMFREE(void PTR4* ptr) | ||
{ | ||
tfree(ptr); | ||
} | ||
|
||
private: | ||
TCHAR m_szMovieFileName[256]; // 0x10 | ||
TCHAR m_szMovieName[256]; // 0x110 | ||
TBOOL m_bHasMovieStopped; // 0x210 | ||
TBOOL m_bIsBINKInitialized; // 0x211 | ||
TBOOL m_bDrawingFrame; // 0x213 | ||
TBOOL m_bRenderingTiles; // 0x214 | ||
HBINK m_hBink; // 0x218 | ||
TINT m_iFrameCount; // 0x220 | ||
TINT m_iFrameBufferWidth; // 0x224 | ||
TINT m_iFrameBufferHeight; // 0x228 | ||
TINT m_iWidth; // 0x22C | ||
TINT m_iHeight; // 0x230 | ||
Toshi::TTextureResource* m_pTextures[8]; // 0x240 | ||
TPBYTE m_pFrameBufferBits; // 0x234 | ||
LPDIRECTSOUND m_pDirectSound; // 0x278 | ||
TINT m_iCurrentTextureIndex; // 0x27C | ||
}; | ||
|
||
TOSHI_NAMESPACE_END |
File renamed without changes.
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.