2013-04-18 06:09:55 +03:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 06:46:09 +02:00
|
|
|
|
2014-02-10 20:54:46 +02:00
|
|
|
#pragma once
|
2008-12-08 06:46:09 +02:00
|
|
|
|
2009-08-10 09:18:10 +03:00
|
|
|
#include <string>
|
2008-12-08 06:46:09 +02:00
|
|
|
|
2014-09-08 04:06:58 +03:00
|
|
|
#include "Common/CommonTypes.h"
|
2014-11-28 00:53:11 +02:00
|
|
|
#include "VideoCommon/DataReader.h"
|
2014-06-05 18:55:21 +03:00
|
|
|
#include "VideoCommon/NativeVertexFormat.h"
|
2014-02-17 12:18:15 +02:00
|
|
|
|
2008-12-08 06:46:09 +02:00
|
|
|
namespace VertexLoaderManager
|
|
|
|
{
|
2008-12-25 23:44:56 +02:00
|
|
|
void Init();
|
|
|
|
void Shutdown();
|
2008-12-08 06:46:09 +02:00
|
|
|
|
|
|
|
void MarkAllDirty();
|
|
|
|
|
2014-08-27 20:38:00 +03:00
|
|
|
int GetVertexSize(int vtx_attr_group, bool preprocess);
|
2014-12-09 09:35:04 +02:00
|
|
|
|
|
|
|
// Returns -1 if buf_size is insufficient, else the amount of bytes consumed
|
|
|
|
int RunVertices(int vtx_attr_group, int primitive, int count, DataReader src, bool skip_drawing = false);
|
2008-12-08 06:46:09 +02:00
|
|
|
|
|
|
|
// For debugging
|
|
|
|
void AppendListToString(std::string *dest);
|
2014-06-05 18:55:21 +03:00
|
|
|
|
2014-07-26 02:10:44 +03:00
|
|
|
NativeVertexFormat* GetCurrentVertexFormat();
|
2014-09-11 20:00:40 +03:00
|
|
|
}
|
2008-12-08 06:46:09 +02:00
|
|
|
|
2009-02-09 22:35:30 +02:00
|
|
|
void RecomputeCachedArraybases();
|