mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-11 18:50:30 +00:00
DataReader inline for OGL/DX9 and moved to VideoCommon. Large clean up.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@760 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
8997f9cb3e
commit
8d0f6d40f4
20 changed files with 284 additions and 931 deletions
|
@ -69,29 +69,6 @@ void VertexLoader::SetVArray(DecodedVArray *_varray)
|
|||
varray = _varray;
|
||||
}
|
||||
|
||||
inline u8 ReadBuffer8()
|
||||
{
|
||||
return g_pDataReader->Read8();
|
||||
}
|
||||
|
||||
inline u16 ReadBuffer16()
|
||||
{
|
||||
//PowerPC byte ordering :(
|
||||
return g_pDataReader->Read16();
|
||||
}
|
||||
|
||||
inline u32 ReadBuffer32()
|
||||
{
|
||||
//PowerPC byte ordering :(
|
||||
return g_pDataReader->Read32();
|
||||
}
|
||||
|
||||
inline float ReadBuffer32F()
|
||||
{
|
||||
u32 temp = g_pDataReader->Read32();
|
||||
return *(float*)(&temp);
|
||||
}
|
||||
|
||||
#include "VertexLoader_MtxIndex.h"
|
||||
#include "VertexLoader_Position.h"
|
||||
#include "VertexLoader_Normal.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue