public APIFrameBufferManager(int width, int height, int count = 2) { _FrameBuffers = new APIFrameBuffer[count]; for (int i = 0; i < count; i++) { _FrameBuffers[i] = new APIFrameBuffer(width, height); } _Width = width; _Height = height; ChangeBuffer(); }
public void ChangeBuffer() { _FrameBufferTargetID = (_FrameBufferTargetID + 1) % _FrameBuffers.Length; _FrameBufferTarget = _FrameBuffers[_FrameBufferTargetID]; }