public virtual void SimulateEnvironment(ref SimulatedEnvironment simualation, bool isForDataOnly) { if (IsNativeWrapper()) { UnsafeNativeMethods.Rdk_RenderEnvironment_SimulateEnvironment(NonConstPointer(), simualation.ConstPointer(), isForDataOnly); } else { UnsafeNativeMethods.Rdk_RenderEnvironment_CallSimulateEnvironmentBase(NonConstPointer(), simualation.ConstPointer(), isForDataOnly); } }
/// <summary> /// Constructs a new <see cref="RenderEnvironment"/> from a <see cref="SimulatedEnvironment"/>. /// </summary> /// <param name="environment">The environment to create the basic environment from.</param> /// <returns>A new basic environment.</returns> public static RenderEnvironment NewBasicEnvironment(SimulatedEnvironment environment) { IntPtr pEnvironment = environment == null ? IntPtr.Zero : environment.ConstPointer(); NativeRenderEnvironment newEnvironment = FromPointer(UnsafeNativeMethods.Rdk_Globals_NewBasicEnvironment(pEnvironment)) as NativeRenderEnvironment; if (newEnvironment != null) newEnvironment.AutoDelete = true; return newEnvironment; }
/// <summary> /// Constructs a new <see cref="RenderEnvironment"/> from a <see cref="SimulatedEnvironment"/>. /// </summary> /// <param name="environment">The environment to create the basic environment from.</param> /// <returns>A new basic environment.</returns> public static RenderEnvironment NewBasicEnvironment(SimulatedEnvironment environment) { IntPtr pEnvironment = environment == null ? IntPtr.Zero : environment.ConstPointer(); NativeRenderEnvironment newEnvironment = FromPointer(UnsafeNativeMethods.Rdk_Globals_NewBasicEnvironment(pEnvironment)) as NativeRenderEnvironment; if (newEnvironment != null) { newEnvironment.AutoDelete = true; } return(newEnvironment); }
/// <summary> /// Constructs a new <see cref="RenderEnvironment"/> from a <see cref="SimulatedEnvironment"/>. /// </summary> /// <param name="environment">The environment to create the basic environment from.</param> /// <returns>A new basic environment.</returns> public static RenderEnvironment NewBasicEnvironment(SimulatedEnvironment environment) { NativeRenderEnvironment newEnvironment = RenderContent.FromPointer(UnsafeNativeMethods.Rdk_Globals_NewBasicEnvironment(environment == null ? IntPtr.Zero : environment.ConstPointer())) as NativeRenderEnvironment; newEnvironment.AutoDelete = true; return newEnvironment; }