mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 08:39:13 +01:00
711b1e0016
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@22 8ced0084-cf51-0410-be5f-012b33b47a6e
51 lines
961 B
C
51 lines
961 B
C
#ifndef _CPSTRUCTS_H
|
|
#define _CPSTRUCTS_H
|
|
|
|
#include "Common.h"
|
|
#include "CPMemory.h"
|
|
|
|
#pragma pack(4)
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// Matrix indices
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
union TMatrixIndexA
|
|
{
|
|
u32 Hex;
|
|
struct
|
|
{
|
|
unsigned PosNormalMtxIdx : 6;
|
|
unsigned Tex0MtxIdx : 6;
|
|
unsigned Tex1MtxIdx : 6;
|
|
unsigned Tex2MtxIdx : 6;
|
|
unsigned Tex3MtxIdx : 6;
|
|
};
|
|
};
|
|
|
|
union TMatrixIndexB
|
|
{
|
|
u32 Hex;
|
|
struct
|
|
{
|
|
unsigned Tex4MtxIdx : 6;
|
|
unsigned Tex5MtxIdx : 6;
|
|
unsigned Tex6MtxIdx : 6;
|
|
unsigned Tex7MtxIdx : 6;
|
|
};
|
|
};
|
|
|
|
#pragma pack ()
|
|
|
|
extern TMatrixIndexA MatrixIndexA;
|
|
extern TMatrixIndexB MatrixIndexB;
|
|
extern u32 arraybases[16];
|
|
extern u32 arraystrides[16];
|
|
|
|
void CPUpdateMatricesA();
|
|
void CPUpdateMatricesB();
|
|
size_t CPSaveLoadState(char *ptr, BOOL save);
|
|
void LoadCPReg(u32 SubCmd, u32 Value);
|
|
|
|
#endif
|