From 057c17fd2fa0641a1422fb5315f2b2f44647e3a8 Mon Sep 17 00:00:00 2001 From: Sam Gateau Date: Tue, 21 Oct 2014 18:14:26 -0700 Subject: [PATCH] fix suseless spaces around parameters in functions --- interface/src/gpu/Batch.cpp | 8 ++++---- interface/src/gpu/Batch.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/interface/src/gpu/Batch.cpp b/interface/src/gpu/Batch.cpp index 945ccd4feb..8a094d1024 100644 --- a/interface/src/gpu/Batch.cpp +++ b/interface/src/gpu/Batch.cpp @@ -111,7 +111,7 @@ void Batch::runCommand(Command com, uint32 offset) { } } -void Batch::draw( Primitive primitiveType, int nbVertices, int startVertex) { +void Batch::draw(Primitive primitiveType, int nbVertices, int startVertex) { ADD_COMMAND(draw); _params.push_back(startVertex); @@ -119,7 +119,7 @@ void Batch::draw( Primitive primitiveType, int nbVertices, int startVertex) { _params.push_back(primitiveType); } -void Batch::drawIndexed( Primitive primitiveType, int nbIndices, int startIndex) { +void Batch::drawIndexed(Primitive primitiveType, int nbIndices, int startIndex) { ADD_COMMAND(drawIndexed); _params.push_back(startIndex); @@ -127,7 +127,7 @@ void Batch::drawIndexed( Primitive primitiveType, int nbIndices, int startIndex) _params.push_back(primitiveType); } -void Batch::drawInstanced( uint32 nbInstances, Primitive primitiveType, int nbVertices, int startVertex, int startInstance) { +void Batch::drawInstanced(uint32 nbInstances, Primitive primitiveType, int nbVertices, int startVertex, int startInstance) { ADD_COMMAND(drawInstanced); _params.push_back(startInstance); @@ -137,7 +137,7 @@ void Batch::drawInstanced( uint32 nbInstances, Primitive primitiveType, int nbVe _params.push_back(nbInstances); } -void Batch::drawIndexedInstanced( uint32 nbInstances, Primitive primitiveType, int nbIndices, int startIndex, int startInstance) { +void Batch::drawIndexedInstanced(uint32 nbInstances, Primitive primitiveType, int nbIndices, int startIndex, int startInstance) { ADD_COMMAND(drawIndexedInstanced); _params.push_back(startInstance); diff --git a/interface/src/gpu/Batch.h b/interface/src/gpu/Batch.h index 567740511e..60c9c2d645 100644 --- a/interface/src/gpu/Batch.h +++ b/interface/src/gpu/Batch.h @@ -49,10 +49,10 @@ public: void clear(); - void draw( Primitive primitiveType, int nbVertices, int startVertex = 0); - void drawIndexed( Primitive primitiveType, int nbIndices, int startIndex = 0 ); - void drawInstanced( uint32 nbInstances, Primitive primitiveType, int nbVertices, int startVertex = 0, int startInstance = 0); - void drawIndexedInstanced( uint32 nbInstances, Primitive primitiveType, int nbIndices, int startIndex = 0, int startInstance = 0); + void draw(Primitive primitiveType, int nbVertices, int startVertex = 0); + void drawIndexed(Primitive primitiveType, int nbIndices, int startIndex = 0); + void drawInstanced(uint32 nbInstances, Primitive primitiveType, int nbVertices, int startVertex = 0, int startInstance = 0); + void drawIndexedInstanced(uint32 nbInstances, Primitive primitiveType, int nbIndices, int startIndex = 0, int startInstance = 0); // TODO: As long as we have gl calls explicitely issued from interface // code, we need to be able to record and batch these calls. THe long