/// <summary> /// Constructor for RenderingWindow objects. /// </summary> /// <param name="target"> /// The TextureTarget based object that will be used as the target for /// content rendering done by the RenderingWindow. /// </param> /// <param name="owner"> /// The RenderingSurface object that will be our initial owner. This /// RenderingSurface is also the target where our cached imagery will be /// rendered back to. /// </param> /// <remarks> /// The TextureTarget \a target remains under it's original ownership, and /// the RenderingSurface \a owner actually owns \e this object. /// </remarks> public RenderingWindow(ITextureTarget target, RenderingSurface owner) : base(target) { d_renderer = System.GetSingleton().GetRenderer(); d_textarget = target; d_owner = owner; d_geometry = d_renderer.CreateGeometryBufferTextured(); d_geometryValid = false; d_position = Lunatics.Mathematics.Vector2.Zero; d_size = Sizef.Zero; d_rotation = Lunatics.Mathematics.Quaternion.Identity; d_geometry.SetBlendMode(BlendMode.RttPremultiplied); }
public virtual void UploadBuffers(RenderingSurface surface) { }
/// <summary> /// set a new owner for this RenderingWindow object /// </summary> /// <param name="owner"></param> protected internal void SetOwner(RenderingSurface owner) { d_owner = owner; }