mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 11:46:27 +00:00
Some code cleaning for my last commit.
the amount and size of the buffer is now changed to "new hardware" frienly values and will fall back to the right values if hardware does not support them. my next commit will be to a branch, with my ogl work.
This commit is contained in:
parent
f7edfc0118
commit
72cb1734ee
5 changed files with 135 additions and 173 deletions
|
@ -23,7 +23,6 @@
|
|||
|
||||
#include "VertexManagerBase.h"
|
||||
|
||||
#define MAX_VBufferCount 4
|
||||
namespace DX9
|
||||
{
|
||||
|
||||
|
@ -34,23 +33,19 @@ public:
|
|||
void GetElements(NativeVertexFormat* format, D3DVERTEXELEMENT9** elems, int* num);
|
||||
void CreateDeviceObjects();
|
||||
void DestroyDeviceObjects();
|
||||
VertexManager();
|
||||
~VertexManager();
|
||||
|
||||
private:
|
||||
u32 CurrentVBufferIndex;
|
||||
u32 CurrentVBufferSize;
|
||||
u32 CurrentIBufferIndex;
|
||||
u32 CurrentIBufferSize;
|
||||
u32 CurrentIBufferSize;
|
||||
u32 NumVBuffers;
|
||||
u32 CurrentVBuffer;
|
||||
u32 CurrentIBuffer;
|
||||
u32 LastVBuffer;
|
||||
u32 LastIBuffer;
|
||||
LPDIRECT3DVERTEXBUFFER9 *VBuffers;
|
||||
LPDIRECT3DINDEXBUFFER9 *IBuffers;
|
||||
void PrepareVBuffers(int stride);
|
||||
void Draw(int stride);
|
||||
void DrawVB(int stride);
|
||||
void DrawVA(int stride);
|
||||
// temp
|
||||
void vFlush();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue