1 | program GraphicTest;
|
---|
2 |
|
---|
3 | {$mode objfpc}{$H+}
|
---|
4 |
|
---|
5 | uses
|
---|
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)}
|
---|
20 | const
|
---|
21 | HeapTraceLog = 'heaptrclog.trc';
|
---|
22 | {$ENDIF}
|
---|
23 |
|
---|
24 | begin
|
---|
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;
|
---|
37 | end.
|
---|
38 |
|
---|