2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 05:09:55 +02:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 05:46:09 +01:00
|
|
|
|
2014-02-10 19:54:46 +01:00
|
|
|
#pragma once
|
2008-12-08 05:46:09 +01:00
|
|
|
|
2009-08-10 08:18:10 +02:00
|
|
|
#include <string>
|
2008-12-08 05:46:09 +01:00
|
|
|
|
2014-09-08 03:06:58 +02:00
|
|
|
#include "Common/CommonTypes.h"
|
2014-11-27 23:53:11 +01:00
|
|
|
#include "VideoCommon/DataReader.h"
|
2014-06-05 17:55:21 +02:00
|
|
|
#include "VideoCommon/NativeVertexFormat.h"
|
2014-02-17 11:18:15 +01:00
|
|
|
|
2008-12-08 05:46:09 +01:00
|
|
|
namespace VertexLoaderManager
|
|
|
|
{
|
2008-12-25 22:44:56 +01:00
|
|
|
void Init();
|
|
|
|
void Shutdown();
|
2008-12-08 05:46:09 +01:00
|
|
|
|
|
|
|
void MarkAllDirty();
|
|
|
|
|
2014-12-09 08:35:04 +01:00
|
|
|
// Returns -1 if buf_size is insufficient, else the amount of bytes consumed
|
2015-01-31 09:23:50 +01:00
|
|
|
int RunVertices(int vtx_attr_group, int primitive, int count, DataReader src, bool skip_drawing, bool is_preprocess);
|
2008-12-08 05:46:09 +01:00
|
|
|
|
|
|
|
// For debugging
|
|
|
|
void AppendListToString(std::string *dest);
|
2014-06-05 17:55:21 +02:00
|
|
|
|
2014-07-26 01:10:44 +02:00
|
|
|
NativeVertexFormat* GetCurrentVertexFormat();
|
2015-05-29 14:42:45 +02:00
|
|
|
|
|
|
|
// Resolved pointers to array bases. Used by vertex loaders.
|
|
|
|
extern u8 *cached_arraybases[12];
|
|
|
|
void UpdateVertexArrayPointers();
|
2014-09-11 19:00:40 +02:00
|
|
|
}
|
2008-12-08 05:46:09 +01:00
|
|
|
|