From ab01e9e8537c00b9783f79d3989c7ba35e18b5d8 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Fri, 26 Dec 2008 13:03:50 +0000 Subject: [PATCH] Prepare vertexloaders for the move... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1691 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/VideoCommon.vcproj | 172 ++++++++++-------- .../Src/VertexLoader_Color.cpp | 5 +- .../Src/VertexLoader_Normal.cpp | 6 +- .../Src/VertexLoader_Position.cpp | 5 +- .../Src/VertexLoader_TextCoord.cpp | 5 +- 5 files changed, 104 insertions(+), 89 deletions(-) diff --git a/Source/Core/VideoCommon/VideoCommon.vcproj b/Source/Core/VideoCommon/VideoCommon.vcproj index ba9174c7aa..502d104e48 100644 --- a/Source/Core/VideoCommon/VideoCommon.vcproj +++ b/Source/Core/VideoCommon/VideoCommon.vcproj @@ -459,6 +459,98 @@ > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -471,30 +563,6 @@ RelativePath=".\Src\Fifo.h" > - - - - - - - - - - - - @@ -515,34 +583,10 @@ RelativePath=".\Src\OpcodeDecoding.h" > - - - - - - - - - - - - @@ -567,38 +611,6 @@ RelativePath=".\Src\VideoCommon.h" > - - - - - - - - - - - - - - diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Color.cpp b/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Color.cpp index 5c56f4faee..ebb1c62dcc 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Color.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Color.cpp @@ -18,11 +18,12 @@ #ifndef _VERTEXLOADERCOLOR_H #define _VERTEXLOADERCOLOR_H -#include "Globals.h" +#include "Common.h" +#include "VideoCommon.h" #include "LookUpTables.h" #include "VertexLoader.h" -#include "VertexManager.h" #include "VertexLoader_Color.h" +#include "NativeVertexWriter.h" #define RSHIFT 0 #define GSHIFT 8 diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Normal.cpp b/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Normal.cpp index df3ca8a375..da2f990594 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Normal.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Normal.cpp @@ -15,11 +15,11 @@ // Official SVN repository and contact information can be found at // http://code.google.com/p/dolphin-emu/ -#include "Globals.h" -#include "Config.h" +#include "Common.h" +#include "VideoCommon.h" #include "VertexLoader.h" -#include "VertexManager.h" #include "VertexLoader_Normal.h" +#include "NativeVertexWriter.h" #define LOG_NORM8() PRIM_LOG("norm: %f %f %f, ", ((s8*)VertexManager::s_pCurBufferPointer)[-3]/127.0f, ((s8*)VertexManager::s_pCurBufferPointer)[-2]/127.0f, ((s8*)VertexManager::s_pCurBufferPointer)[-1]/127.0f); #define LOG_NORM16() PRIM_LOG("norm: %f %f %f, ", ((s16*)VertexManager::s_pCurBufferPointer)[-3]/32767.0f, ((s16*)VertexManager::s_pCurBufferPointer)[-2]/32767.0f, ((s16*)VertexManager::s_pCurBufferPointer)[-1]/32767.0f); diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Position.cpp b/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Position.cpp index 72c72daaa2..4dfd1c1869 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Position.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_Position.cpp @@ -18,10 +18,11 @@ #ifndef VERTEXLOADER_POSITION_H #define VERTEXLOADER_POSITION_H -#include "Globals.h" +#include "Common.h" +#include "VideoCommon.h" #include "VertexLoader.h" -#include "VertexManager.h" #include "VertexLoader_Position.h" +#include "NativeVertexWriter.h" extern float posScale; extern TVtxAttr *pVtxAttr; diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_TextCoord.cpp b/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_TextCoord.cpp index 01f1fe56ad..bd6cb43f99 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_TextCoord.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader_TextCoord.cpp @@ -18,10 +18,11 @@ #ifndef VERTEXLOADER_TEXCOORD_H #define VERTEXLOADER_TEXCOORD_H -#include "Globals.h" +#include "Common.h" +#include "VideoCommon.h" #include "VertexLoader.h" -#include "VertexManager.h" #include "VertexLoader_Position.h" +#include "NativeVertexWriter.h" #define LOG_TEX1() PRIM_LOG("tex: %f, ", ((float*)VertexManager::s_pCurBufferPointer)[0]); #define LOG_TEX2() PRIM_LOG("tex: %f %f, ", ((float*)VertexManager::s_pCurBufferPointer)[0], ((float*)VertexManager::s_pCurBufferPointer)[1]);