mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-12 00:59:11 +01:00
34 lines
790 B
C
34 lines
790 B
C
|
#pragma once
|
||
|
|
||
|
#include "Common.h"
|
||
|
|
||
|
#include "TransformEngine.h"
|
||
|
|
||
|
// ==============================================================================
|
||
|
// Direct
|
||
|
// ==============================================================================
|
||
|
void LOADERDECL PosMtx_ReadDirect_UByte(void* _p)
|
||
|
{
|
||
|
TVtxAttr* pVtxAttr = (TVtxAttr*)_p;
|
||
|
int index = ReadBuffer8();
|
||
|
float *flipmem = (float *)xfmem;
|
||
|
varray->SetPosNrmIdx(index);
|
||
|
}
|
||
|
|
||
|
#define MAKETEX(n) \
|
||
|
void LOADERDECL TexMtx_ReadDirect_UByte##n(void* _p) \
|
||
|
{ \
|
||
|
TVtxAttr* pVtxAttr = (TVtxAttr*)_p; \
|
||
|
int index = ReadBuffer8(); \
|
||
|
varray->SetTcIdx(n, index); \
|
||
|
}
|
||
|
|
||
|
MAKETEX(0)
|
||
|
MAKETEX(1)
|
||
|
MAKETEX(2)
|
||
|
MAKETEX(3)
|
||
|
MAKETEX(4)
|
||
|
MAKETEX(5)
|
||
|
MAKETEX(6)
|
||
|
MAKETEX(7)
|