86 UINT GetFreeVertices() { return (MAX_BATCH_SIZE - firstUnusedVertex); }
87
88 static
89 HRESULT CreateInstance(D3DContext *pCtx, D3DVertexCacher **ppVC);
90
91 private:
92 D3DVertexCacher();
93 HRESULT EnsureCapacity(D3DPRIMITIVETYPE newPType, UINT vNum);
94
95 private:
96 UINT firstPendingBatch;
97 UINT firstPendingVertex;
98 UINT firstUnusedVertex;
99 UINT currentBatch;
100 J2DLVERTEX vertices[MAX_BATCH_SIZE];
101 VertexBatch batches[MAX_BATCH_SIZE];
102 IDirect3DVertexBuffer9 *lpD3DVertexBuffer;
103 IDirect3DDevice9 *lpD3DDevice;
104 D3DContext *pCtx;
105 jint color;
106 };
107
108 #endif // D3DVERTEXCACHER_H
|
86 UINT GetFreeVertices() { return (MAX_BATCH_SIZE - firstUnusedVertex); }
87
88 static
89 HRESULT CreateInstance(D3DContext *pCtx, D3DVertexCacher **ppVC);
90
91 private:
92 D3DVertexCacher();
93 HRESULT EnsureCapacity(D3DPRIMITIVETYPE newPType, UINT vNum);
94
95 private:
96 UINT firstPendingBatch;
97 UINT firstPendingVertex;
98 UINT firstUnusedVertex;
99 UINT currentBatch;
100 J2DLVERTEX vertices[MAX_BATCH_SIZE];
101 VertexBatch batches[MAX_BATCH_SIZE];
102 IDirect3DVertexBuffer9 *lpD3DVertexBuffer;
103 IDirect3DDevice9 *lpD3DDevice;
104 D3DContext *pCtx;
105 jint color;
106 float fudge2;
107 };
108
109 #endif // D3DVERTEXCACHER_H
|