| Description | uses | Classes, Interfaces, Objects and Records | Functions and Procedures | Types | Constants | Variables |
Progress bar displayed in OpenGL inside GLWindow window.
Simply set ProgressGLInterface.Window to your TGLWindow instance, and assign
Progress.UserInterface := ProgressGLInterface;
Between Progress.Init and Fini you shouldn't do anything with window set as ProgressGLInterface.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;
| Name | Description |
|---|---|
Class TProgressGLInterface |
DefaultBarYPosition = 0.5; |
ProgressGLInterface: TProgressGLInterface; |
DefaultBarYPosition = 0.5; |
ProgressGLInterface: TProgressGLInterface; |
|
Assign this to Progress.UserInterface to use OpenGL progress bar. This instance is created in initialization, freed in finalization. |