This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
gwen-dotnet/Gwen/Renderer/ICacheToTexture.cs

37 lines
1.1 KiB
C#
Raw Normal View History


namespace Gwen.Renderer
{
public interface ICacheToTexture
{
void Initialize();
void ShutDown();
/// <summary>
/// Called to set the target up for rendering.
/// </summary>
/// <param name="control">Control to be rendered.</param>
void SetupCacheTexture(Control.Base control);
/// <summary>
/// Called when cached rendering is done.
/// </summary>
/// <param name="control">Control to be rendered.</param>
void FinishCacheTexture(Control.Base control);
/// <summary>
/// Called when gwen wants to draw the cached version of the control.
/// </summary>
/// <param name="control">Control to be rendered.</param>
void DrawCachedControlTexture(Control.Base control);
/// <summary>
/// Called to actually create a cached texture.
/// </summary>
/// <param name="control">Control to be rendered.</param>
void CreateControlCacheTexture(Control.Base control);
void UpdateControlCacheTexture(Control.Base control);
void SetRenderer(Base renderer);
}
}