Class TGLContainer

Unit

Declaration

type TGLContainer = class abstract(TUIContainer)

Description

Container for controls providing an OpenGL rendering. This class is internally used by TCastleWindowCustom and TCastleControlCustom. It is not useful from the outside, unless you want to implement your own container provider similar to TCastleWindowCustom / TCastleControlCustom.

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure EventRender; override;
Public procedure EventClose(const OpenWindowsCount: Cardinal); override;
Public procedure RenderControl(const Control: TUIControl; const ViewportRect: TRectangle);
Public function SaveScreen(const SaveRect: TRectangle): TRGBImage; override;

Properties

Public property Context: TRenderContext read FContext;

Description

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public procedure EventRender; override;
 
Public procedure EventClose(const OpenWindowsCount: Cardinal); override;
 
Public procedure RenderControl(const Control: TUIControl; const ViewportRect: TRectangle);

Render a TUIControl (along with all it's children). Use this to render the UI control off-screen, see e.g. example render_3d_to_texture_and_use_as_quad.lpr.

This doesn't only call Control.Render. It also:

Public function SaveScreen(const SaveRect: TRectangle): TRGBImage; override;

Save screen by rendering the window contents to the back buffer.

Properties

Public property Context: TRenderContext read FContext;
 

Generated by PasDoc 0.15.0.