2010-06-13 13:50:06 -06:00
|
|
|
// Copyright (C) 2003 Dolphin Project.
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, version 2.0.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official SVN repository and contact information can be found at
|
|
|
|
// http://code.google.com/p/dolphin-emu/
|
|
|
|
|
|
|
|
#ifndef _VERTEXMANAGER_H
|
|
|
|
#define _VERTEXMANAGER_H
|
|
|
|
|
2010-10-02 18:41:06 -06:00
|
|
|
#include "VertexManagerBase.h"
|
2011-03-14 03:38:29 -06:00
|
|
|
#include "LineGeometryShader.h"
|
|
|
|
#include "PointGeometryShader.h"
|
2010-06-13 13:50:06 -06:00
|
|
|
|
2010-10-02 18:41:06 -06:00
|
|
|
namespace DX11
|
|
|
|
{
|
2010-06-13 13:50:06 -06:00
|
|
|
|
2010-10-02 18:41:06 -06:00
|
|
|
class VertexManager : public ::VertexManager
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
VertexManager();
|
2011-06-11 13:37:21 -06:00
|
|
|
~VertexManager();
|
2010-10-02 18:41:06 -06:00
|
|
|
|
2010-11-26 02:25:08 -07:00
|
|
|
NativeVertexFormat* CreateNativeVertexFormat();
|
|
|
|
|
2010-10-02 18:41:06 -06:00
|
|
|
private:
|
2011-06-11 13:37:21 -06:00
|
|
|
void CreateDeviceObjects();
|
|
|
|
void DestroyDeviceObjects();
|
2010-10-19 20:17:16 -06:00
|
|
|
void LoadBuffers();
|
2010-10-19 21:11:22 -06:00
|
|
|
void Draw(UINT stride);
|
2010-10-02 18:41:06 -06:00
|
|
|
// temp
|
|
|
|
void vFlush();
|
2010-10-19 20:17:16 -06:00
|
|
|
|
|
|
|
UINT m_indexBufferCursor;
|
|
|
|
UINT m_vertexBufferCursor;
|
|
|
|
UINT m_vertexDrawOffset;
|
|
|
|
UINT m_triangleDrawIndex;
|
|
|
|
UINT m_lineDrawIndex;
|
|
|
|
UINT m_pointDrawIndex;
|
2011-06-11 13:37:21 -06:00
|
|
|
ID3D11Buffer* m_indexBuffer;
|
|
|
|
ID3D11Buffer* m_vertexBuffer;
|
2011-03-14 03:38:29 -06:00
|
|
|
|
|
|
|
LineGeometryShader m_lineShader;
|
|
|
|
PointGeometryShader m_pointShader;
|
2010-10-02 18:41:06 -06:00
|
|
|
};
|
2010-06-13 13:50:06 -06:00
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif
|