mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 10:22:48 +01:00
- [Psy-X] added custom DR_PSYX_TEX primitive
This commit is contained in:
parent
8b69472094
commit
c5cbfd36ea
@ -630,6 +630,14 @@ typedef struct {
|
||||
u_long code[2];
|
||||
} DR_STP; /* Drawing STP */
|
||||
|
||||
/*
|
||||
* PSY-X commands
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
DECLARE_P_ADDR
|
||||
u_long code[1];
|
||||
} DR_PSYX_TEX;
|
||||
|
||||
/*
|
||||
* Environment
|
||||
@ -822,6 +830,12 @@ extern void GetDrawArea(DR_AREA *p);
|
||||
extern void GetDrawOffset(DR_OFFSET *p);
|
||||
extern void GetDrawEnv2(DR_ENV *p);
|
||||
|
||||
/*
|
||||
* PSY-X commands
|
||||
*/
|
||||
|
||||
extern void SetPsyXTexture(DR_PSYX_TEX *p, uint grTextureId);
|
||||
|
||||
extern DISPENV activeDispEnv;
|
||||
extern DRAWENV activeDrawEnv;
|
||||
|
||||
|
@ -1314,6 +1314,12 @@ int ParsePrimitive(uintptr_t primPtr)
|
||||
|
||||
break;
|
||||
}
|
||||
case 0xB0:
|
||||
{
|
||||
// [A] Psy-X custom texture packet
|
||||
DR_PSYX_TEX* drtex = (DR_PSYX_TEX*)pTag;
|
||||
break;
|
||||
}
|
||||
case 0xE0: // DR_ENV commands
|
||||
{
|
||||
uint i;
|
||||
|
@ -643,4 +643,10 @@ void SetPolyG4(POLY_G4* p)
|
||||
void TermPrim(void* p)
|
||||
{
|
||||
termPrim(p);
|
||||
}
|
||||
}
|
||||
|
||||
void SetPsyXTexture(DR_PSYX_TEX* p, uint grTextureId)
|
||||
{
|
||||
setlen(p, 1);
|
||||
p->code[0] = 0xB1000000 | grTextureId;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user