Ver Fonte

Buffer format has changed so removing uncalled helpers for writing to the GPU buffers - bgroff will have to investigate and put this back in the future

Paul há 11 anos atrás
pai
commit
6eecf1b76f

+ 0 - 28
QGearsMain/include/core/UiTextArea.h

@@ -148,33 +148,5 @@ private:
     bool                                m_Timer;
     int                                 m_TimerTime;
 };
-inline
-void WriteTriangleVertex(float *&writeIterator, const Ogre::Vector3 &coord,
-const Ogre::ColourValue &colour, const float u, const float v)
-{
-    *writeIterator++ = coord.x;
-    *writeIterator++ = coord.y;
-    *writeIterator++ = coord.z;
-    *writeIterator++ = colour.r;
-    *writeIterator++ = colour.g;
-    *writeIterator++ = colour.b;
-    *writeIterator++ = colour.a;
-    *writeIterator++ = u;
-    *writeIterator++ = v;
-}
-
-inline void
-WriteGlyph(float *&writeIterator, const Ogre::Vector3 coords[],
-const Ogre::ColourValue &colour, const Ogre::FloatRect &texture)
-{
-    // draw two triangles with a colour and texture.
-    WriteTriangleVertex(writeIterator, coords[0], colour, texture.left, texture.top);
-    WriteTriangleVertex(writeIterator, coords[1], colour, texture.right, texture.top);
-    WriteTriangleVertex(writeIterator, coords[2], colour, texture.right, texture.bottom);
-    // Triangle two
-    WriteTriangleVertex(writeIterator, coords[0], colour, texture.left, texture.top);
-    WriteTriangleVertex(writeIterator, coords[2], colour, texture.right, texture.bottom);
-    WriteTriangleVertex(writeIterator, coords[3], colour, texture.left, texture.bottom);
-}
 
 #endif // UI_TEXT_AREA_H

+ 1 - 0
QGearsMain/src/core/Background2D.cpp

@@ -657,6 +657,7 @@ Background2D::AddTile(const int x, const int y, const int width, const int heigh
     writeIterator += render_op.vertexData->vertexCount * TILE_VERTEX_INDEX_SIZE;
 
     // TODO: Can use WriteGlyph
+
     *writeIterator++ = new_x1;
     *writeIterator++ = new_y1;
     *writeIterator++ = depth;