GL: Safer vertex loading (should fix the new zelda crash), added vertex format logging to "show some statistics"

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1295 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2008-11-25 21:15:31 +00:00
parent f1ab625f5c
commit 30a5c91c99
7 changed files with 85 additions and 37 deletions

View File

@ -18,6 +18,8 @@
#ifndef _VERTEXLOADER_H
#define _VERTEXLOADER_H
#include <string>
#include "CPMemory.h"
#include "DataReader.h"
@ -59,6 +61,9 @@ public:
int GetVertexSize() const {return m_VertexSize;}
void RunVertices(int vtx_attr_group, int primitive, int count);
// For debugging / profiling
void AppendToString(std::string *dest);
private:
enum
{
@ -83,6 +88,8 @@ private:
u8 *m_compiledCode;
int m_numLoadedVertices;
void SetupColor(int num, int _iMode, int _iFormat, int _iElements);
void SetupTexCoord(int num, int _iMode, int _iFormat, int _iElements, int _iFrac);