Commit 5579c275 by Philipp Adolf

Rename member of Input

parent 194aa735
......@@ -65,9 +65,9 @@ void Subdivision::subdivide(Mesh *mesh, int level) {
input.vb_handle = entry->VB_handle;
input.vertex_buffer = entry->vertices;
input.index_buffer = entry->indices_irregular;
input.index_irregular_buffer = entry->indices_irregular;
if (input.index_buffer.isEmpty()) {
if (input.index_irregular_buffer.isEmpty()) {
// current_mesh->update(input.vb_handle, input.vertex_buffer, input.index_buffer, entry->indices_regular);
} else {
Tables tables = precomputeTables(input);
......@@ -137,8 +137,8 @@ struct Edge {
Subdivision::Tables Subdivision::precomputeTables(Input input) {
Tables tables;
QVector<unsigned int> ib = input.index_buffer;
qCDebug(log_subdiv_trace) << "Index Buffer: " << ib;
QVector<unsigned int> ib = input.index_irregular_buffer;
qCDebug(log_subdiv_trace) << "Index Buffer: " << ib;
QVector<Vertex> vb = input.vertex_buffer;
qCDebug(log_subdiv_trace) << "Vertex Buffer: " << vb;
......
......@@ -22,7 +22,7 @@ private:
struct Input
{
GLuint vb_handle;
QVector<unsigned int> index_buffer;
QVector<unsigned int> index_irregular_buffer;
QVector<Vertex> vertex_buffer;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment