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.

Source: base_rendering/castlerendercontext.pas (line 40).

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.

Source: base_rendering/castlerendercontext.pas (line 47).

Methods

Public constructor Create;

This item has no description.

Source: base_rendering/castlerendercontext.pas (line 48).

Public destructor Destroy; override;

This item has no description.

Source: base_rendering/castlerendercontext.pas (line 49).

Properties

Public property Enabled: boolean read FEnabled write SetEnabled;

This item has no description.

Source: base_rendering/castlerendercontext.pas (line 50).


Generated by PasDoc 0.17.0.snapshot.