Пример #1
0
 public virtual void SimulateTexture(ref SimulatedTexture simulation, bool isForDataOnly)
 {
   if (IsNativeWrapper())
   {
     UnsafeNativeMethods.Rdk_RenderTexture_SimulateTexture(NonConstPointer(), simulation.ConstPointer(), isForDataOnly);
   }
   else
   {
     UnsafeNativeMethods.Rdk_RenderTexture_CallSimulateTextureBase(NonConstPointer(), simulation.ConstPointer(), isForDataOnly);
   }
 }
Пример #2
0
 /// <summary>
 /// Constructs a new basic texture from a SimulatedTexture.
 /// </summary>
 /// <param name="texture">The texture to create the basic texture from.</param>
 /// <returns>A new render texture.</returns>
 public static RenderTexture NewBitmapTexture(SimulatedTexture texture)
 {
   IntPtr pConstTexture = texture == null ? IntPtr.Zero : texture.ConstPointer();
   NativeRenderTexture newTexture = FromPointer(UnsafeNativeMethods.Rdk_Globals_NewBasicTexture(pConstTexture)) as NativeRenderTexture;
   if (newTexture != null)
     newTexture.AutoDelete = true;
   return newTexture;
 }
Пример #3
0
        /// <summary>
        /// Constructs a new basic texture from a SimulatedTexture.
        /// </summary>
        /// <param name="texture">The texture to create the basic texture from.</param>
        /// <returns>A new render texture.</returns>
        public static RenderTexture NewBitmapTexture(SimulatedTexture texture)
        {
            IntPtr ptr_const_texture        = texture == null ? IntPtr.Zero : texture.ConstPointer();
            NativeRenderTexture new_texture = FromPointer(UnsafeNativeMethods.Rdk_Globals_NewBasicTexture(ptr_const_texture)) as NativeRenderTexture;

            if (new_texture != null)
            {
                new_texture.AutoDelete = true;
            }
            return(new_texture);
        }
Пример #4
0
 /// <summary>
 /// Constructs a new basic texture from a SimulatedTexture.
 /// </summary>
 /// <param name="texture">The texture to create the basic texture from.</param>
 /// <returns>A new render texture.</returns>
 public static RenderTexture NewBitmapTexture(SimulatedTexture texture)
 {
   NativeRenderTexture newTexture = RenderContent.FromPointer(UnsafeNativeMethods.Rdk_Globals_NewBasicTexture(texture == null ? IntPtr.Zero : texture.ConstPointer())) as NativeRenderTexture;
   newTexture.AutoDelete = true;
   return newTexture;
 }
Пример #5
0
 public virtual void SimulateTexture(ref SimulatedTexture simulation, bool isForDataOnly)
 {
     if (IsNativeWrapper())
     {
         UnsafeNativeMethods.Rdk_RenderTexture_SimulateTexture(NonConstPointer(), simulation.ConstPointer(), isForDataOnly);
     }
     else
     {
         UnsafeNativeMethods.Rdk_RenderTexture_CallSimulateTextureBase(NonConstPointer(), simulation.ConstPointer(), isForDataOnly);
     }
 }