Class TScissor
Unit
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
- TObject
- TScissor
Overview
Fields
Rect: TRectangle; |
Methods
constructor Create; |
|
destructor Destroy; override; |
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; |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
Properties
property Enabled: boolean read FEnabled write SetEnabled; |
|
This item has no description. |
Generated by PasDoc 0.16.0-snapshot.