Class TScissor
Unit
CastleRenderContext
Declaration
type TScissor = class(TObject)
Description
Scissor to clip displayed things, in addition to the global scissor affected by TRenderContext.ScissorEnable / TRenderContext.ScissorDisable. Always disable an enabled scissor (destructor does it automatically).
Make sure to enable and disable the scissor when the same OpenGL context is current. In practice, the only reliable way to do this is to enable and then disable the scissor within the same OnRender event.
Hierarchy
Overview
Fields
Methods
Properties
|
property Enabled: boolean read FEnabled write SetEnabled; |
Description
Fields
|
Rect: TRectangle; |
Rectangle to which we clip rendering. Empty by default (will clip everything, if you don't assign this!). Do not change this when scissor is enabled.
|
Methods
|
constructor Create; |
|
|
destructor Destroy; override; |
|
Properties
|
property Enabled: boolean read FEnabled write SetEnabled; |
|
Generated by PasDoc 0.16.0.