public RenderVertexBufferHelper(GSVertexBuffer vb) { this.vb = vb; if (vb == null) { return; } GS.RenderStart(true); }
public void Dispose() { if (vb == null) { return; } GSVertexBuffer newvb = GS.RenderSave(); // transfer the internal pointer to old object vb.Dispose(); vb.instance = newvb.instance; newvb.instance = IntPtr.Zero; newvb.Dispose(); }
public void Dispose() { GS.LeaveGraphics(); }
public GraphicsContextHelper() { GS.EnterGraphics(); }