public HardwareUniformBufferPtr(HardwareUniformBufferPtr r) : this(OgrePINVOKE.new_HardwareUniformBufferPtr__SWIG_2(HardwareUniformBufferPtr.getCPtr(r)), true)
 {
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 2
0
        public virtual HardwareUniformBufferPtr createUniformBuffer(uint sizeBytes)
        {
            HardwareUniformBufferPtr ret = new HardwareUniformBufferPtr(OgrePINVOKE.HardwareBufferManagerBase_createUniformBuffer__SWIG_3(swigCPtr, sizeBytes), true);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 3
0
        public virtual HardwareUniformBufferPtr createUniformBuffer(uint sizeBytes, HardwareBuffer.Usage usage, bool useShadowBuffer)
        {
            HardwareUniformBufferPtr ret = new HardwareUniformBufferPtr(OgrePINVOKE.HardwareBufferManagerBase_createUniformBuffer__SWIG_1(swigCPtr, sizeBytes, (int)usage, useShadowBuffer), true);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(HardwareUniformBufferPtr obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }