examples/lazarus/model_3d_viewer/openglinformation.pas
raw| 1 | unit OpenGLInformation; |
| 2 | |
| 3 | {$mode objfpc}{$H+} |
| 4 | |
| 5 | interface |
| 6 | |
| 7 | uses |
| 8 | Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, Buttons, |
| 9 | StdCtrls; |
| 10 | |
| 11 | type |
| 12 | |
| 13 | { TOpenGLInformation } |
| 14 | |
| 15 | TOpenGLInformation = class(TForm) |
| 16 | ButtonClose: TButton; |
| 17 | MemoInfo: TMemo; |
| 18 | private |
| 19 | { private declarations } |
| 20 | public |
| 21 | class procedure Execute; |
| 22 | end; |
| 23 | |
| 24 | implementation |
| 25 | |
| 26 | uses CastleGLUtils; |
| 27 | |
| 28 | {$R *.lfm} |
| 29 | |
| 30 | { TOpenGLInformation } |
| 31 | |
| 32 | class procedure TOpenGLInformation.Execute; |
| 33 | var |
| 34 | F: TOpenGLInformation; |
| 35 | begin |
| 36 | F := TOpenGLInformation.Create(nil); |
| 37 | try |
| 38 | F.MemoInfo.Lines.Text := GLInformationString; |
| 39 | F.ShowModal; |
| 40 | finally FreeAndNil(F) end; |
| 41 | end; |
| 42 | |
| 43 | end. |
| 44 |