mirror of
https://github.com/halpz/re3.git
synced 2025-05-10 18:36:38 +03:00
AnimViewer!
This commit is contained in:
parent
e5d089db88
commit
5bea16c7cc
26 changed files with 582 additions and 20 deletions
|
@ -47,6 +47,7 @@
|
|||
#include "Text.h"
|
||||
#include "RpAnimBlend.h"
|
||||
#include "Frontend.h"
|
||||
#include "AnimViewer.h"
|
||||
|
||||
#define DEFAULT_VIEWWINDOW (Tan(DEGTORAD(CDraw::GetFOV() * 0.5f)))
|
||||
|
||||
|
@ -71,9 +72,10 @@ char version_name[64];
|
|||
float FramesPerSecond = 30.0f;
|
||||
|
||||
bool gbPrintShite = false;
|
||||
bool gbModelViewer;
|
||||
bool &gbModelViewer = *(bool*)0x95CD93;
|
||||
|
||||
bool DoRWStuffStartOfFrame_Horizon(int16 TopRed, int16 TopGreen, int16 TopBlue, int16 BottomRed, int16 BottomGreen, int16 BottomBlue, int16 Alpha);
|
||||
bool DoRWStuffStartOfFrame(int16 TopRed, int16 TopGreen, int16 TopBlue, int16 BottomRed, int16 BottomGreen, int16 BottomBlue, int16 Alpha);
|
||||
void DoRWStuffEndOfFrame(void);
|
||||
|
||||
void RenderScene(void);
|
||||
|
@ -104,6 +106,25 @@ InitialiseGame(void)
|
|||
CGame::Initialise("DATA\\GTA3.DAT");
|
||||
}
|
||||
|
||||
#ifndef MASTER
|
||||
void
|
||||
TheModelViewer(void)
|
||||
{
|
||||
CAnimViewer::Update();
|
||||
CTimer::Update();
|
||||
SetLightsWithTimeOfDayColour(Scene.world);
|
||||
CRenderer::ConstructRenderList();
|
||||
DoRWStuffStartOfFrame(CTimeCycle::GetSkyTopRed(), CTimeCycle::GetSkyTopGreen(), CTimeCycle::GetSkyTopBlue(),
|
||||
CTimeCycle::GetSkyBottomRed(), CTimeCycle::GetSkyBottomGreen(), CTimeCycle::GetSkyBottomBlue(),
|
||||
255);
|
||||
|
||||
DefinedState();
|
||||
CVisibilityPlugins::InitAlphaEntityList();
|
||||
CAnimViewer::Render();
|
||||
DoRWStuffEndOfFrame();
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
Idle(void *arg)
|
||||
{
|
||||
|
@ -976,6 +997,15 @@ AppEventHandler(RsEvent event, void *param)
|
|||
return rsEVENTPROCESSED;
|
||||
}
|
||||
|
||||
#ifndef MASTER
|
||||
case rsANIMVIEWER:
|
||||
{
|
||||
TheModelViewer();
|
||||
|
||||
return rsEVENTPROCESSED;
|
||||
}
|
||||
#endif
|
||||
|
||||
default:
|
||||
{
|
||||
return rsEVENTNOTPROCESSED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue