mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
eliminate texrels (wip)
This commit is contained in:
parent
bc38f4d24f
commit
ea38612fad
16 changed files with 268 additions and 198 deletions
|
@ -328,6 +328,15 @@ struct PicoMS
|
|||
unsigned char pad[0x4e];
|
||||
};
|
||||
|
||||
// emu state and data for the asm code
|
||||
struct PicoEState
|
||||
{
|
||||
int DrawScanline;
|
||||
int rendstatus;
|
||||
void *Pico_video;
|
||||
void *Pico_vram;
|
||||
};
|
||||
|
||||
// some assembly stuff depend on these, do not touch!
|
||||
struct Pico
|
||||
{
|
||||
|
@ -348,6 +357,7 @@ struct Pico
|
|||
struct PicoMisc m;
|
||||
struct PicoVideo video;
|
||||
struct PicoMS ms;
|
||||
struct PicoEState est;
|
||||
};
|
||||
|
||||
// sram
|
||||
|
@ -577,10 +587,9 @@ int CM_compareRun(int cyc, int is_sub);
|
|||
PICO_INTERNAL void PicoFrameStart(void);
|
||||
void PicoDrawSync(int to, int blank_last_line);
|
||||
void BackFill(int reg7, int sh);
|
||||
void FinalizeLine555(int sh, int line);
|
||||
void FinalizeLine555(int sh, int line, struct PicoEState *est);
|
||||
extern int (*PicoScanBegin)(unsigned int num);
|
||||
extern int (*PicoScanEnd)(unsigned int num);
|
||||
extern int DrawScanline;
|
||||
#define MAX_LINE_SPRITES 29
|
||||
extern unsigned char HighLnSpr[240][3 + MAX_LINE_SPRITES];
|
||||
extern void *DrawLineDestBase;
|
||||
|
@ -856,7 +865,7 @@ void p32x_sh2_poll_event(SH2 *sh2, unsigned int flags, unsigned int m68k_cycles)
|
|||
|
||||
// 32x/draw.c
|
||||
void PicoDrawSetOutFormat32x(pdso_t which, int use_32x_line_mode);
|
||||
void FinalizeLine32xRGB555(int sh, int line);
|
||||
void FinalizeLine32xRGB555(int sh, int line, struct PicoEState *est);
|
||||
void PicoDraw32xLayer(int offs, int lines, int mdbg);
|
||||
void PicoDraw32xLayerMdOnly(int offs, int lines);
|
||||
extern int (*PicoScan32xBegin)(unsigned int num);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue