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

AllocateBuffer() protected method

protected AllocateBuffer ( ) : void
return void
		protected void AllocateBuffer()
		{
			if ( _buffer.Data != IntPtr.Zero )
				return; //allready allocated

			data = new byte[ sizeInBytes ];
			_buffer.Data = Memory.PinObject( data );
			// TODO use PBO if we're HBU_DYNAMIC
		}