summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexManagerBase.cpp
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2015-11-01 22:54:41 +0100
committerTillmann Karras <tilkax@gmail.com>2015-11-02 11:53:54 +0100
commitc52c73f7622c4d4b4cbe7506e62c195c940fd61e (patch)
tree589145e3b7d1cb486314d88be13ebf63b9a20d6f /Source/Core/VideoCommon/VertexManagerBase.cpp
parent89f645151357f652a8e5bfef996b611a2992245e (diff)
VideoCommon: VertexManager -> VertexManagerBase
It may be a bit weird to see calls to static functions in VertexManagerBase now, but at least it's easier to see what's going on.
Diffstat (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexManagerBase.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp
index 6358ed371c..708462565e 100644
--- a/Source/Core/VideoCommon/VertexManagerBase.cpp
+++ b/Source/Core/VideoCommon/VertexManagerBase.cpp
@@ -22,18 +22,18 @@
#include "VideoCommon/VideoConfig.h"
#include "VideoCommon/XFMemory.h"
-VertexManager *g_vertex_manager;
+VertexManagerBase* g_vertex_manager;
-u8 *VertexManager::s_pCurBufferPointer;
-u8 *VertexManager::s_pBaseBufferPointer;
-u8 *VertexManager::s_pEndBufferPointer;
+u8* VertexManagerBase::s_pCurBufferPointer;
+u8* VertexManagerBase::s_pBaseBufferPointer;
+u8* VertexManagerBase::s_pEndBufferPointer;
-PrimitiveType VertexManager::current_primitive_type;
+PrimitiveType VertexManagerBase::current_primitive_type;
-Slope VertexManager::s_zslope;
+Slope VertexManagerBase::s_zslope;
-bool VertexManager::s_is_flushed;
-bool VertexManager::s_cull_all;
+bool VertexManagerBase::s_is_flushed;
+bool VertexManagerBase::s_cull_all;
static const PrimitiveType primitive_from_gx[8] = {
PRIMITIVE_TRIANGLES, // GX_DRAW_QUADS
@@ -46,22 +46,22 @@ static const PrimitiveType primitive_from_gx[8] = {
PRIMITIVE_POINTS, // GX_DRAW_POINTS
};
-VertexManager::VertexManager()
+VertexManagerBase::VertexManagerBase()
{
s_is_flushed = true;
s_cull_all = false;
}
-VertexManager::~VertexManager()
+VertexManagerBase::~VertexManagerBase()
{
}
-u32 VertexManager::GetRemainingSize()
+u32 VertexManagerBase::GetRemainingSize()
{
return (u32)(s_pEndBufferPointer - s_pCurBufferPointer);
}
-DataReader VertexManager::PrepareForAdditionalData(int primitive, u32 count, u32 stride, bool cullall)
+DataReader VertexManagerBase::PrepareForAdditionalData(int primitive, u32 count, u32 stride, bool cullall)
{
// The SSE vertex loader can write up to 4 bytes past the end
u32 const needed_vertex_bytes = count * stride + 4;
@@ -99,12 +99,12 @@ DataReader VertexManager::PrepareForAdditionalData(int primitive, u32 count, u32
return DataReader(s_pCurBufferPointer, s_pEndBufferPointer);
}
-void VertexManager::FlushData(u32 count, u32 stride)
+void VertexManagerBase::FlushData(u32 count, u32 stride)
{
s_pCurBufferPointer += count * stride;
}
-u32 VertexManager::GetRemainingIndices(int primitive)
+u32 VertexManagerBase::GetRemainingIndices(int primitive)
{
u32 index_len = MAXIBUFFERSIZE - IndexGenerator::GetIndexLen();
@@ -162,7 +162,7 @@ u32 VertexManager::GetRemainingIndices(int primitive)
}
}
-void VertexManager::Flush()
+void VertexManagerBase::Flush()
{
if (s_is_flushed)
return;
@@ -270,13 +270,13 @@ void VertexManager::Flush()
s_cull_all = false;
}
-void VertexManager::DoState(PointerWrap& p)
+void VertexManagerBase::DoState(PointerWrap& p)
{
p.Do(s_zslope);
g_vertex_manager->vDoState(p);
}
-void VertexManager::CalculateZSlope(NativeVertexFormat* format)
+void VertexManagerBase::CalculateZSlope(NativeVertexFormat* format)
{
float out[12];
float viewOffset[2] = { xfmem.viewport.xOrig - bpmem.scissorOffset.x * 2,