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

Public Rect: TRectangle;

Methods

Public constructor Create;
Public destructor Destroy; override;

Properties

Public property Enabled: boolean read FEnabled write SetEnabled;

Description

Fields

Public 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

Public constructor Create;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Properties

Public property Enabled: boolean read FEnabled write SetEnabled;

This item has no description.


Generated by PasDoc 0.16.0-snapshot.