source: trunk/GraphicTest.lpr

Last change on this file was 2, checked in by chronos, 4 years ago
File size: 1.1 KB
Line 
1program GraphicTest;
2
3{$mode objfpc}{$H+}
4
5uses
6 {$IFDEF UNIX}{$IFDEF UseCThreads}
7 cthreads,
8 {$ENDIF}{$ENDIF}
9 Interfaces, // this includes the LCL widgetset
10 Forms, SysUtils, openglcontext, UFormMain, UPlatform, UDrawMethod,
11 UFastBitmap, UFormDraw, bgrabitmappack, UMethodCanvasPixels,
12 UMethodCanvasPixelsUpdateLock, UMethodLazIntfImageColorsCopy, UMethodLazIntfImageColorsNoCopy,
13 UMethodBGRABitmap, UMethodBitmapRawImageDataPaintBox, UMethodBitmapRawImageData,
14 UMethodDummy, UMethodBitmapRawImageDataMove, UMethodOpenGL, UMethodOpenGLPBO,
15 UMethodGraphics32, UMethodBitmapScanline;
16
17{$R *.res}
18
19{$if declared(UseHeapTrace)}
20const
21 HeapTraceLog = 'heaptrclog.trc';
22{$ENDIF}
23
24begin
25 {$if declared(UseHeapTrace)}
26 // Heap trace
27 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
28 SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
29 {$ENDIF}
30
31 RequireDerivedFormResource := True;
32 Application.Scaled:=True;
33 Application.Initialize;
34 Application.CreateForm(TFormMain, FormMain);
35 Application.CreateForm(TFormDraw, FormDraw);
36 Application.Run;
37end.
38
Note: See TracBrowser for help on using the repository browser.