コード例 #1
0
ファイル: GLRenderer.cs プロジェクト: zx8326123/LGame
        private void CheckDirty()
        {
            GLType type = _currType;

            End();
            Begin(type);
        }
コード例 #2
0
ファイル: GLRenderer.cs プロジェクト: zx8326123/LGame
        public void Flush()
        {
            GLType type = _currType;

            End();
            Begin(type);
        }
コード例 #3
0
ファイル: GLRenderer.cs プロジェクト: zx8326123/LGame
 public void End()
 {
     if (_renderer != null)
     {
         _renderer.End();
         _currType = null;
     }
 }
コード例 #4
0
ファイル: GLRenderer.cs プロジェクト: zx8326123/LGame
 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
ファイル: GLRenderer.cs プロジェクト: keppelcao/LGame
 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
ファイル: GLRenderer.cs プロジェクト: zx8326123/LGame
        private void CheckFlush(int newVertices)
        {
            if (_renderer.GetMaxVertices() - _renderer.GetNumVertices() >= newVertices)
            {
                return;
            }
            GLType type = _currType;

            End();
            Begin(type);
        }
コード例 #7
0
ファイル: GLRenderer.cs プロジェクト: keppelcao/LGame
 public void End()
 {
     if (_renderer != null)
     {
         _renderer.End();
         _currType = null;
     }
 }