dm 7 years ago
parent
commit
b32b004580

+ 8 - 8
oxygine/src/oxygine/STDRenderer.cpp

@@ -421,9 +421,9 @@ namespace oxygine
         checkDrawBatch();
     }
 
-    void STDRenderer::addIndices(const unsigned short *data, unsigned int bufSize)
+    void STDRenderer::addIndices(const unsigned short* data, unsigned int bufSize)
     {
-        const unsigned char *end = (const unsigned char*)data + bufSize;
+        const unsigned char* end = (const unsigned char*)data + bufSize;
         _indicesData.insert(_indicesData.end(), (const unsigned short*)data, (const unsigned short*)end);
     }
 
@@ -552,7 +552,7 @@ namespace oxygine
     }
 
 
-    void STDRenderer::swapIndicesData(std::vector<unsigned short> &data)
+    void STDRenderer::swapIndicesData(std::vector<unsigned short>& data)
     {
         std::swap(data, _indicesData);
     }
@@ -633,8 +633,8 @@ namespace oxygine
                 return;
 
             _driver->draw(IVideoDriver::PT_TRIANGLES, _vdecl,
-                &_verticesData.front(), (unsigned int)_verticesData.size(),
-                &_indicesData.front(), (unsigned int)_indicesData.size());
+                          &_verticesData.front(), (unsigned int)_verticesData.size(),
+                          &_indicesData.front(), (unsigned int)_indicesData.size());
 
             _verticesData.clear();
             _indicesData.clear();
@@ -646,11 +646,11 @@ namespace oxygine
                 return;
 
             _driver->draw(IVideoDriver::PT_TRIANGLES, _vdecl,
-                &_verticesData.front(), (unsigned int)_verticesData.size(),
-                &STDRenderer::indices16.front(), (unsigned int)indices);
+                          &_verticesData.front(), (unsigned int)_verticesData.size(),
+                          &STDRenderer::indices16.front(), (unsigned int)indices);
 
             _verticesData.clear();
-        }        
+        }
     }
 
 

+ 2 - 2
oxygine/src/oxygine/STDRenderer.h

@@ -112,7 +112,7 @@ namespace oxygine
         void flush();
 
         virtual void addVertices(const void* data, unsigned int bufSize);
-        void addIndices(const unsigned short *data, unsigned int bufSize);
+        void addIndices(const unsigned short* data, unsigned int bufSize);
 
         //debug utils
 #ifdef OXYGINE_DEBUG_T2P
@@ -122,7 +122,7 @@ namespace oxygine
         void swapVerticesData(std::vector<unsigned char>& data);
         void swapVerticesData(STDRenderer& r);
 
-        void swapIndicesData(std::vector<unsigned short> &data);
+        void swapIndicesData(std::vector<unsigned short>& data);
 
         OXYGINE_DEPRECATED
         void setViewProjTransform(const Matrix& viewProj);

File diff suppressed because it is too large
+ 0 - 0
oxygine/src/oxygine/core/system_data.cpp


Some files were not shown because too many files changed in this diff