Пример #1
0
        private void CheckDirty()
        {
            GLType type = _currType;

            End();
            Begin(type);
        }
Пример #2
0
        public void Flush()
        {
            GLType type = _currType;

            End();
            Begin(type);
        }
Пример #3
0
 public void End()
 {
     if (_renderer != null)
     {
         _renderer.End();
         _currType = null;
     }
 }
Пример #4
0
 public void Begin(GLType type)
 {
     if (_currType != null)
     {
         throw new RuntimeException(
                   "Call End() before beginning a new shape batch !");
     }
     _currType = type;
     _renderer.Begin(_currType.glType);
 }
Пример #5
0
 public void Begin(GLType type)
 {
     if (_currType != null)
     {
         throw new RuntimeException(
                 "Call End() before beginning a new shape batch !");
     }
     _currType = type;
     _renderer.Begin(_currType.glType);
 }
Пример #6
0
        private void CheckFlush(int newVertices)
        {
            if (_renderer.GetMaxVertices() - _renderer.GetNumVertices() >= newVertices)
            {
                return;
            }
            GLType type = _currType;

            End();
            Begin(type);
        }
Пример #7
0
 public void End()
 {
     if (_renderer != null)
     {
         _renderer.End();
         _currType = null;
     }
 }