Class TGLModeFrozenScreen

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGLModeFrozenScreen = class(TGLMode)

Description

Enter / exit modal box on a TCastleWindowBase, additionally saving the screen contents before entering modal box. This is nice if you want to wait for some event (like pressing a key), keeping the same screen displayed.

During this lifetime, we set special TCastleWindowBase.OnDraw and TCastleWindowBase.OnResize to draw the saved image in a simplest 2D OpenGL projection.

Between creation/destroy, TCastleWindowBase.UserData is used by this function for internal purposes. So don't use it yourself. We'll restore initial TCastleWindowBase.UserData at destruction.

Hierarchy

  • TObject
  • TGLMode
  • TGLModeFrozenScreen

Overview

Methods

Public constructor Create(AWindow: TCastleWindowBase; AttribsToPush: TGLbitfield; APushPopMessagesTheme: boolean);
Public destructor Destroy; override;

Description

Methods

Public constructor Create(AWindow: TCastleWindowBase; AttribsToPush: TGLbitfield; APushPopMessagesTheme: boolean);
 
Public destructor Destroy; override;
 

Generated by PasDoc 0.13.0 on 2013-08-17 21:27:15