mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Merged identical VertexManager code from DX9/DX11/OGL plugins into VideoCommon. Still need to merge VertexManager::Flush (will be easier after TextureCache is merged). Purposely using a class/virtualfuncs rather than a namespace so multiple VertexManager can be in one plugin (VideoMergeNew? :p).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6249 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -19,18 +19,25 @@
|
||||
#define _VERTEXMANAGER_H_
|
||||
|
||||
#include "CPMemory.h"
|
||||
#include "NativeVertexWriter.h"
|
||||
|
||||
#include "VertexManagerBase.h"
|
||||
|
||||
namespace OGL
|
||||
{
|
||||
|
||||
// Handles the OpenGL details of drawing lots of vertices quickly.
|
||||
// Other functionality is moving out.
|
||||
namespace VertexManager
|
||||
class VertexManager : public ::VertexManager
|
||||
{
|
||||
public:
|
||||
VertexManager();
|
||||
|
||||
bool Init();
|
||||
void Shutdown();
|
||||
void AddIndices(int primitive, int numVertices);
|
||||
void ResetBuffer();
|
||||
|
||||
private:
|
||||
void Draw();
|
||||
// temp
|
||||
void vFlush();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // _VERTEXMANAGER_H_
|
||||
|
Reference in New Issue
Block a user