Ejemplo n.º 1
0
 public override RenderBuffer GetRenderBuffer()
 {
     BackBuffer = System.Threading.Interlocked.Exchange(ref FrontBuffer, BackBuffer);
     //always match buffer bounds to current window bounds
     BackBuffer.Image.Resize(Width, Height);
     return BackBuffer;
 }
Ejemplo n.º 2
0
 public override RenderBuffer GetDisplayBuffer()
 {
     FrontBuffer = System.Threading.Interlocked.Exchange(ref MiddleBuffer, FrontBuffer);
     return FrontBuffer;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a new <see cref="DoubleBufferStrategy"/>.
 /// </summary>
 public DoubleBufferStrategy()
 {
     FrontBuffer = new RenderBuffer();
     BackBuffer = new RenderBuffer();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates a new <see cref="TripleBufferStrategy"/>.
 /// </summary>
 public TripleBufferStrategy()
 {
     FrontBuffer = new RenderBuffer();
     MiddleBuffer = new RenderBuffer();
     BackBuffer = new RenderBuffer();
 }