mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-12 00:59:11 +01:00
775dc8a9c0
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4 8ced0084-cf51-0410-be5f-012b33b47a6e
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)
|