blob: 9b4dce539f10c52d8e2cf39456f2ccdd65cb4008 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
#include <array>
#include <vector>
#include "video_core/pica.h"
namespace Pica {
namespace DebugUtils {
using TriangleTopology = Regs::TriangleTopology;
// Simple utility class for dumping geometry data to an OBJ file
class GeometryDumper {
public:
void AddVertex(std::array<float,3> pos, TriangleTopology topology);
void Dump();
private:
struct Vertex {
std::array<float,3> pos;
};
struct Face {
int index[3];
};
std::vector<Vertex> vertices;
std::vector<Face> faces;
};
} // namespace
} // namespace
|