mirror of
https://github.com/mupen64plus/mupen64plus-video-rice.git
synced 2024-06-11 16:47:28 -04:00
merge two structs (vertex) and make GBI2 vertex demux more consistant with doc
This commit is contained in:
parent
a0b205c38d
commit
885d2fccd4
|
@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
void RSP_GBI2_Vtx(Gfx *gfx)
|
||||
{
|
||||
uint32 addr = RSPSegmentAddr((gfx->gbi2vtx.addr));
|
||||
int vend = gfx->gbi2vtx.vend/2;
|
||||
int vend = gfx->gbi2vtx.vend;
|
||||
int n = gfx->gbi2vtx.n;
|
||||
int v0 = vend - n;
|
||||
|
||||
|
|
|
@ -115,7 +115,8 @@ typedef struct {
|
|||
} GGBI1_Vtx;
|
||||
|
||||
typedef struct {
|
||||
unsigned int vend:8;
|
||||
unsigned int :1;
|
||||
unsigned int vend:7;
|
||||
unsigned int :4;
|
||||
unsigned int n:8;
|
||||
unsigned int :4;
|
||||
|
|
|
@ -271,14 +271,6 @@ typedef struct
|
|||
};
|
||||
} Light;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char na;
|
||||
char nz; // b
|
||||
char ny; //g
|
||||
char nx; //r
|
||||
}NormalStruct;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
short y;
|
||||
|
@ -297,7 +289,12 @@ typedef struct
|
|||
uint8 g;
|
||||
uint8 r;
|
||||
} rgba;
|
||||
NormalStruct norma;
|
||||
struct {
|
||||
char na;
|
||||
char nz; // b
|
||||
char ny; //g
|
||||
char nx; //r
|
||||
} norma;
|
||||
};
|
||||
} FiddledVtx;
|
||||
|
||||
|
|
Loading…
Reference in a new issue