コード例 #1
0
 public InstancedEntity(InstanceBatch batchOwner, uint instanceID, InstancedEntity sharedTransformEntity) : this(OgrePINVOKE.new_InstancedEntity__SWIG_0(InstanceBatch.getCPtr(batchOwner), instanceID, InstancedEntity.getCPtr(sharedTransformEntity)), true)
 {
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public void _setCustomParam(InstancedEntity instancedEntity, byte idx, Vector4 newParam)
 {
     OgrePINVOKE.InstanceBatch__setCustomParam(swigCPtr, InstancedEntity.getCPtr(instancedEntity), idx, Vector4.getCPtr(newParam));
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
 public void removeInstancedEntity(InstancedEntity instancedEntity)
 {
     OgrePINVOKE.InstanceBatch_removeInstancedEntity(swigCPtr, InstancedEntity.getCPtr(instancedEntity));
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
        public Vector4 _getCustomParam(InstancedEntity instancedEntity, byte idx)
        {
            Vector4 ret = new Vector4(OgrePINVOKE.InstanceBatch__getCustomParam(swigCPtr, InstancedEntity.getCPtr(instancedEntity), idx), false);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #5
0
        public bool shareTransformWith(InstancedEntity slave)
        {
            bool ret = OgrePINVOKE.InstancedEntity_shareTransformWith(swigCPtr, InstancedEntity.getCPtr(slave));

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #6
0
        public InstancedEntity createInstancedEntity()
        {
            global::System.IntPtr cPtr = OgrePINVOKE.InstanceBatch_createInstancedEntity(swigCPtr);
            InstancedEntity       ret  = (cPtr == global::System.IntPtr.Zero) ? null : new InstancedEntity(cPtr, false);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #7
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InstancedEntity obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }