11 lines
580 B
C#
11 lines
580 B
C#
namespace AcDream.App.UI;
|
|
|
|
/// <summary>Renders a 3-D mini-scene into an off-screen buffer and returns the GL color-texture
|
|
/// handle. Called by the per-frame pre-UI hook (GameWindow), NOT from UiViewport.OnDraw. Implemented
|
|
/// by PaperdollViewportRenderer in AcDream.App.Rendering. Intra-App decoupling so the UI widget
|
|
/// doesn't depend on WbDrawDispatcher/GameWindow.</summary>
|
|
public interface IUiViewportRenderer
|
|
{
|
|
/// <summary>Render at (width,height); return the color-texture GL handle, or 0 if nothing rendered.</summary>
|
|
uint Render(int width, int height);
|
|
}
|