Axiom.RenderSystems.OpenGLES.GLESHardwarePixelBuffer.LockImpl C# (CSharp) Method

LockImpl() protected method

protected LockImpl ( BasicBox lockBox, BufferLocking options ) : PixelBox
lockBox Axiom.Media.BasicBox
options BufferLocking
return Axiom.Media.PixelBox
		protected override PixelBox LockImpl( BasicBox lockBox, BufferLocking options )
		{
			AllocateBuffer();
			if ( options != BufferLocking.Discard &&
				( Usage & BufferUsage.WriteOnly ) == 0 )
			{
				// Download the old contents of the texture
				Download( _buffer );
			}
			_currentLocking = options;
			return _buffer.GetSubVolume( lockBox );
		}