flycast/core/hw/pvr/drkPvr.cpp

45 lines
605 B
C++

// drkPvr.cpp : Defines the entry point for the DLL application.
//
/*
Plugin structure
Interface
SPG
TA
Renderer
*/
#include "spg.h"
#include "pvr_regs.h"
#include "Renderer_if.h"
#include "ta_ctx.h"
#include "rend/TexCache.h"
void libPvr_Reset(bool hard)
{
KillTex = true;
Regs_Reset(hard);
spg_Reset(hard);
if (hard)
rend_reset();
tactx_Term();
}
s32 libPvr_Init()
{
if (!spg_Init())
{
//failed
return -1;
}
return 0;
}
//called when exiting from sh4 thread , from the new thread context (for any thread specific de init) :P
void libPvr_Term()
{
tactx_Term();
spg_Term();
}