merge two structs (vertex) and make GBI2 vertex demux more consistant with doc

This commit is contained in:
Dorian Fevrier 2014-08-04 22:42:47 -04:00
parent a0b205c38d
commit 885d2fccd4
3 changed files with 9 additions and 11 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;