dolphin/Source/Core/VideoCommon/VertexLoaderManager.h

32 lines
737 B
C
Raw Normal View History

// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
#include <string>
#include "Common/CommonTypes.h"
2014-11-27 22:53:11 +00:00
#include "VideoCommon/DataReader.h"
#include "VideoCommon/NativeVertexFormat.h"
namespace VertexLoaderManager
{
void Init();
void Shutdown();
void MarkAllDirty();
int GetVertexSize(int vtx_attr_group, bool preprocess);
2014-12-09 07:35:04 +00: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);
// For debugging
void AppendListToString(std::string *dest);
NativeVertexFormat* GetCurrentVertexFormat();
2014-09-11 17:00:40 +00:00
}
void RecomputeCachedArraybases();