public void Dispose() { if (vectors != null) { vectors.Clear(); } if (batch != null) { batch.Dispose(); batch = null; } if (_XnaToGL != null) { _XnaToGL = null; } if (polyLazy != null) { foreach (XNAPolyline line in polyLazy.Values) { if (line != null) { line.Dispose(); } } polyLazy.Clear(); polyLazy = null; } }
public void Dispose() { if (vectors != null) { vectors.Clear(); } if (batch != null) { batch.Dispose(); batch = null; } if (_XnaToGL != null) { _XnaToGL = null; } if (polyLazy != null) { foreach (XNAPolyline line in polyLazy.Values) { if (line != null) { line.Dispose(); } } polyLazy.Clear(); polyLazy = null; } }
public GLBatch(int maxVertices) { this.batch = new XNA_GL(maxVertices); this.maxVertices = maxVertices; }
public GLBatch() { batch = new XNA_GL(); }
public GLEx(GraphicsDevice device, LFont f) { GLEx.device = device; GLEx.cemera = new GLExCamera(device); clipRasterizerState = new RasterizerState() { ScissorTestEnable = true }; device.RasterizerState = RasterizerState.CullNone; device.DepthStencilState = DepthStencilState.None; cemera.viewMatrix = cemera.Result; if (f == null) { SetFont(LFont.GetDefaultFont()); } else { SetFont(f); } this.xnaClip = new RectBox(LSystem.screenRect); this.font = LFont.GetDefaultFont(); this.innterBatch = new SpriteBatch(device); this.rectangle = new Rectangle(0, 0, 0, 0); this.postion = new Vector2(0, 0); this.color = Color.White; WhitePixel = new Texture2D(device, 1, 1, true, SurfaceFormat.Color); Color[] pixels = { Color.White }; WhitePixel.SetData(pixels); GLEx.self = this; GLEx.gl = new GL(); GLEx.gl10 = new GL10(); shape = XNA_GL.LoadGLShape; }
public void Dispose() { this.initBatch = false; this.isClose = true; this.isDirty = false; this.useFont = false; this.useGLBegin = false; if (innterBatch != null) { innterBatch.Dispose(); innterBatch = null; } if (batchSprite != null) { batchSprite.Dispose(); batchSprite = null; } if (shape != null) { shape.Dispose(); shape = null; } if (font != null) { font.Dispose(); font = null; } GLEx.device = null; GLEx.cemera = null; if (WhitePixel != null) { WhitePixel.Dispose(); WhitePixel = null; } }
public GLBatch(int maxVertices) { this.batch = new XNA_GL(maxVertices); this.maxVertices = maxVertices; }
public GLBatch() { batch = new XNA_GL(); }