Commit 5579c275 by Philipp Adolf

Rename member of Input

parent 194aa735
...@@ -65,9 +65,9 @@ void Subdivision::subdivide(Mesh *mesh, int level) { ...@@ -65,9 +65,9 @@ void Subdivision::subdivide(Mesh *mesh, int level) {
input.vb_handle = entry->VB_handle; input.vb_handle = entry->VB_handle;
input.vertex_buffer = entry->vertices; 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); // current_mesh->update(input.vb_handle, input.vertex_buffer, input.index_buffer, entry->indices_regular);
} else { } else {
Tables tables = precomputeTables(input); Tables tables = precomputeTables(input);
...@@ -137,8 +137,8 @@ struct Edge { ...@@ -137,8 +137,8 @@ struct Edge {
Subdivision::Tables Subdivision::precomputeTables(Input input) { Subdivision::Tables Subdivision::precomputeTables(Input input) {
Tables tables; Tables tables;
QVector<unsigned int> ib = input.index_buffer; QVector<unsigned int> ib = input.index_irregular_buffer;
qCDebug(log_subdiv_trace) << "Index Buffer: " << ib; qCDebug(log_subdiv_trace) << "Index Buffer: " << ib;
QVector<Vertex> vb = input.vertex_buffer; QVector<Vertex> vb = input.vertex_buffer;
qCDebug(log_subdiv_trace) << "Vertex Buffer: " << vb; qCDebug(log_subdiv_trace) << "Vertex Buffer: " << vb;
......
...@@ -22,7 +22,7 @@ private: ...@@ -22,7 +22,7 @@ private:
struct Input struct Input
{ {
GLuint vb_handle; GLuint vb_handle;
QVector<unsigned int> index_buffer; QVector<unsigned int> index_irregular_buffer;
QVector<Vertex> vertex_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