wrapper for s_pCurBufferPointer

This commit is contained in:
degasus
2013-02-21 13:45:48 +01:00
parent 4b4dce1bd9
commit c7f4d6b9ac
6 changed files with 24 additions and 36 deletions

View File

@ -20,6 +20,8 @@
#ifndef _DATAREADER_H
#define _DATAREADER_H
#include "VertexManagerBase.h"
extern u8* g_pVideoData;
#if _M_SSE >= 0x301 && !(defined __GNUC__ && !defined __SSSE3__)
@ -145,4 +147,11 @@ __forceinline u8* DataGetPosition()
return g_pVideoData;
}
template <typename T>
__forceinline void DataWrite(T data)
{
*(T*)VertexManager::s_pCurBufferPointer = data;
VertexManager::s_pCurBufferPointer += sizeof(T);
}
#endif