protected void DrawEverythingWhenBufferIsFull()
 {
     if (Is3D)
     {
         device.Set3DMode();
     }
     else
     {
         device.Set2DMode();
     }
     DrawAllTextureChunks();
 }
Esempio n. 2
0
 private void Draw2DData()
 {
     device.Set2DMode();
     foreach (var buffer in lineBuffers)
     {
         if (!buffer.Is3D && buffer.NumberOfActiveVertices > 0)
         {
             DrawBufferAndIncreaseStatisticsNumbers(buffer);
         }
     }
     foreach (var pair in buffersPerBlendMode)
     {
         foreach (var buffer in pair.Value)
         {
             if (!buffer.Is3D && buffer.NumberOfActiveVertices > 0)
             {
                 DrawBufferAndIncreaseStatisticsNumbers(buffer);
             }
         }
     }
 }