Unit CastleWindowProgress

Description

Progress bar displayed in a TCastleWindowBase.

Simply set WindowProgressInterface.Window to your TCastleWindowBase instance, and assign

Progress.UserInterface := WindowProgressInterface;

Between Progress.Init and Fini you shouldn't do anything with window set as WindowProgressInterface.Window. It's callbacks will be temporarily swapped and it will be used to render progress bar.

As usual, remember to always call Progress.Fini if you called Progress.Init. Progress.Fini restores original callbacks and OpenGL state of your window. Usually it's best and safest to use try..finally block like

Progress.Init; try.....finally Progress.Fini; end;

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TWindowProgressInterface Progress bar rendered on OpenGL context (TCastleWindow).

Variables

WindowProgressInterface: TWindowProgressInterface;

Description

Variables

WindowProgressInterface: TWindowProgressInterface;

Assign this to Progress.UserInterface to use progress bar drawn on TCastleWindow. This instance is created in initialization, freed in finalization.


Generated by PasDoc 0.16.0.