/// <summary> /// Set linked depth-stencil surface. /// </summary> private void SetLinkedDepthStencil(RenderSurface depthStencil) { Runtime.ValidateRefCounted(this); RenderSurface_SetLinkedDepthStencil(handle, (object)depthStencil == null ? IntPtr.Zero : depthStencil.Handle); }
/// <summary> /// Set linked color rendertarget. /// </summary> private void SetLinkedRenderTarget(RenderSurface renderTarget) { Runtime.ValidateRefCounted(this); RenderSurface_SetLinkedRenderTarget(handle, (object)renderTarget == null ? IntPtr.Zero : renderTarget.Handle); }
/// <summary> /// Define with rendertarget and viewport. Return true if successful. /// </summary> public bool Define(RenderSurface renderTarget, Viewport viewport) { Runtime.ValidateRefCounted(this); return(View_Define(handle, (object)renderTarget == null ? IntPtr.Zero : renderTarget.Handle, (object)viewport == null ? IntPtr.Zero : viewport.Handle)); }