示例#1
0
 public HardwareBufferLockGuard(HardwareBuffer p, uint offset, uint length, HardwareBuffer.LockOptions options) : this(OgrePINVOKE.new_HardwareBufferLockGuard__SWIG_2(HardwareBuffer.getCPtr(p), offset, length, (int)options), true)
 {
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#2
0
 public void lock_(HardwareBuffer p, uint offset, uint length, HardwareBuffer.LockOptions options)
 {
     OgrePINVOKE.HardwareBufferLockGuard_lock___SWIG_1(swigCPtr, HardwareBuffer.getCPtr(p), offset, length, (int)options);
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public PixelBox lock_(Box lockBox, HardwareBuffer.LockOptions options)
        {
            PixelBox ret = new PixelBox(OgrePINVOKE.HardwarePixelBufferPtr_lock___SWIG_0(swigCPtr, Box.getCPtr(lockBox), (int)options), false);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#4
0
        public SWIGTYPE_p_void lock_(HardwareBuffer.LockOptions options)
        {
            global::System.IntPtr cPtr = OgrePINVOKE.HardwareBuffer_lock___SWIG_1(swigCPtr, (int)options);
            SWIGTYPE_p_void       ret  = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }