Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/SB/Core/gc/iARAMTmp.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include "iARAMTmp.h"

bool iARAMTmpEnd(bool)
{
}

void* iARAMTmpInARAMTemp(void*)
{
}

void* iARAMTmpFree(void*)
{
}

U32 iARAMTmpMalloc(unsigned int)
{
return 0;
}

U32 iARAMTmpBegin(unsigned int, unsigned int)
{
}

U64 transferDoneCB(unsigned long)
{
}
13 changes: 13 additions & 0 deletions src/SB/Core/gc/iARAMTmp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#ifndef IARAMTMP_H
#define IARAMTMP_H

#include <types.h>

bool iARAMTmpEnd(bool);
void* iARAMTmpInARAMTemp(void*);
void* iARAMTmpFree(void*);
U32 iARAMTmpMalloc(unsigned int);
U32 iARAMTmpBegin(unsigned int, unsigned int);
U64 transferDoneCB(unsigned long);

#endif
1 change: 1 addition & 0 deletions src/SB/Core/gc/iCutscene.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ U32 iCSFileOpen(xCutscene* csn);
void iCSFileAsyncRead(xCutscene* csn, void* dest, U32 size);
void iCSFileAsyncSkip(xCutscene* csn, U32 amount);
void iCSFileClose(xCutscene* csn);
bool DVDCancelAllAsync();
S32 iCSLoadStep(xCutscene* csn);

#endif
45 changes: 45 additions & 0 deletions src/SB/Core/gc/iScrFX.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#include "iScrFX.h"

extern RwRaster* g_rast_gctapdance;
extern S32 g_alreadyTriedAlloc;
extern _iMotionBlurData sMBD;
extern U32 sMotionBlurEnabled;

void iScrFxLensFlare_Reset()
{
}

S32 iScrFxCameraDestroyed(RwCamera* pCamera)
{
if (sMBD.motionBlurFrontBuffer != NULL)
{
RwRasterDestroy(sMBD.motionBlurFrontBuffer);
sMBD.motionBlurFrontBuffer = NULL;
return 1;
}
return 0;
}

void iScrFxCameraEndScene(RwCamera* pCamera)
{
}

void iScrFxCameraCreated(RwCamera* pCamera)
{
sMBD.motionBlurAlpha = 0x90;
sMBD.motionBlurFrontBuffer = NULL;
sMBD.index[0] = 0;
sMBD.index[1] = 1;
sMBD.index[2] = 2;
sMBD.index[3] = 0;
sMBD.index[4] = 2;
sMBD.index[5] = 3;
}

void iScrFxBegin()
{
}

void iScrFxInit()
{
}
46 changes: 24 additions & 22 deletions src/SB/Core/gc/iScrFX.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,37 @@
#include <rwcore.h>
#include <types.h>

struct _iMotionBlurData {
S32 motionBlurAlpha;
RwRaster *motionBlurFrontBuffer;
// RwSky2DVertex vertex[4]; This doesn't seem right... Due to how the data is
// used, it only makes sense for this to be 96 only.
U8 vertex[96];
U16 index[6];
U32 w;
U32 h;
U8 unk[10]; // There is something here to make this structure 0x88.
// PORTED DIRECTLY FROM BFBB

struct _iMotionBlurData
{
S32 motionBlurAlpha;
RwRaster* motionBlurFrontBuffer;
// RwSky2DVertex vertex[4]; This doesn't seem right... Due to how the data is
// used, it only makes sense for this to be 96 only.
U8 vertex[96];
U16 index[6];
U32 w;
U32 h;
U8 unk[10]; // There is something here to make this structure 0x88.
};

void iScrFxInit();
void iScrFxBegin();
void iScrFxEnd();
void iScrFxDrawBox(F32 x1, F32 y1, F32 x2, F32 y2, U8 red, U8 green, U8 blue,
U8 alpha);
void iScrFxDrawBox(F32 x1, F32 y1, F32 x2, F32 y2, U8 red, U8 green, U8 blue, U8 alpha);
void iCameraMotionBlurActivate(U32 activate);
void iCameraSetBlurriness(F32 amount);
void iScrFxCameraCreated(RwCamera *pCamera);
void iScrFxCameraEndScene(RwCamera *pCamera);
void iScrFxPostCameraEnd(RwCamera *pCamera);
void iCameraOverlayRender(RwCamera *pcamera, RwRaster *ras, RwRGBA col);
RwRaster *FBMBlur_DebugIntervention(RwCamera *camera, RwRaster *ras);
S32 iScrFxMotionBlurOpen(RwCamera *camera);
S32 iScrFxCameraDestroyed(RwCamera *pCamera);
void iScrFxMotionBlurRender(RwCamera *camera, U32 col);
void GCMB_MakeFrameBufferCopy(const RwCamera *camera);
void iScrFxCameraCreated(RwCamera* pCamera);
void iScrFxCameraEndScene(RwCamera* pCamera);
void iScrFxPostCameraEnd(RwCamera* pCamera);
void iCameraOverlayRender(RwCamera* pcamera, RwRaster* ras, RwRGBA col);
RwRaster* FBMBlur_DebugIntervention(RwCamera* camera, RwRaster* ras);
S32 iScrFxMotionBlurOpen(RwCamera* camera);
S32 iScrFxCameraDestroyed(RwCamera* pCamera);
void iScrFxMotionBlurRender(RwCamera* camera, U32 col);
void GCMB_MakeFrameBufferCopy(const RwCamera* camera);
void GCMB_KillFrameBufferCopy();
void GCMB_SiphonFrameBuffer(const RwCamera *camera);
void GCMB_SiphonFrameBuffer(const RwCamera* camera);

#endif
Loading