private void CheckDirty() { GLType type = _currType; End(); Begin(type); }
public void Flush() { GLType type = _currType; End(); Begin(type); }
public void End() { if (_renderer != null) { _renderer.End(); _currType = null; } }
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); }
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); }
private void CheckFlush(int newVertices) { if (_renderer.GetMaxVertices() - _renderer.GetNumVertices() >= newVertices) { return; } GLType type = _currType; End(); Begin(type); }
public void End() { if (_renderer != null) { _renderer.End(); _currType = null; } }