internal FrameBuffer(GraphicsContext graphics) { this.handle = 0; this.state = new FrameBufferState(); this.state.status = true; PsmGraphicsContext.GetScreenInfo(graphics.handle, out this.state.width, out this.state.height, out this.state.colorFormat, out this.state.depthFormat, out this.state.multiSampleMode); }
private void DefaultConstruct() { int errorCode = PsmFrameBuffer.Create(out this.handle); if (errorCode != 0) { Error.ThrowNativeException(errorCode); } this.state = new FrameBufferState(); }
protected FrameBuffer(FrameBuffer buffer) { int errorCode = PsmFrameBuffer.AddRef(buffer.handle); if (errorCode != 0) { Error.ThrowNativeException(errorCode); } this.handle = buffer.handle; this.state = buffer.state; }
protected virtual void Dispose(bool disposing) { if (this.handle != 0) { if (disposing) { this.state = null; } PsmFrameBuffer.Delete(this.handle); this.handle = 0; } }