2009-07-28 21:32:10 +00:00
|
|
|
// Copyright (C) 2003 Dolphin Project.
|
2009-02-23 06:17:57 +00:00
|
|
|
|
|
|
|
// 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 _NATIVE_VERTEX_WRITER
|
|
|
|
#define _NATIVE_VERTEX_WRITER
|
|
|
|
|
|
|
|
// TODO: rename
|
|
|
|
namespace VertexManager
|
|
|
|
{
|
|
|
|
|
|
|
|
void AddVertices(int primitive, int numvertices);
|
|
|
|
void Flush(); // flushes the current buffer
|
|
|
|
int GetRemainingSize(); // remaining space in the current buffer.
|
2010-05-04 14:43:30 +00:00
|
|
|
int GetRemainingVertices(int primitive); // remaining number of vertices that can be processed in one AddVertices call
|
2009-02-23 06:17:57 +00:00
|
|
|
|
|
|
|
// TODO: move, rename.
|
|
|
|
extern u8* s_pCurBufferPointer;
|
2010-08-28 15:09:42 +00:00
|
|
|
extern u8* s_pBaseBufferPointer;
|
2009-02-23 06:17:57 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|