Changeset 543 for GraphicTest
- Timestamp:
- May 14, 2020, 11:10:24 AM (5 years ago)
- Location:
- GraphicTest
- Files:
-
- 14 added
- 12 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest/Forms/UFormMain.pas
r524 r543 118 118 119 119 uses 120 UFormDraw, ULazIntfImageColorsCopy, ULazIntfImageColorsNoCopy, UCanvasPixels, 121 UCanvasPixelsUpdateLock, UBGRABitmapPaintBox, UBitmapRawImageDataPaintBox, 122 UBitmapRawImageData, UBitmapRawImageDataMove, UDummyMethod, UOpenGLMethod, 123 UOpenGLPBOMethod{$IFDEF GRAPHICS32}, UGraphics32Method{$ENDIF}; 120 UFormDraw, UMethodLazIntfImageColorsCopy, UMethodLazIntfImageColorsNoCopy, UMethodCanvasPixels, 121 UMethodCanvasPixelsUpdateLock, UMethodBGRABitmap, UMethodBitmapRawImageDataPaintBox, 122 UMethodBitmapRawImageData, UMethodBitmapRawImageDataMove, UMethodDummy, UMethodOpenGL, 123 UMethodOpenGLPBO{$IFDEF GRAPHICS32}, UGraphics32Method{$ENDIF}, 124 UMethodBitmapScanline, UMethodMove; 124 125 125 126 { TFormMain } … … 404 405 procedure TFormMain.RegisterDrawMethods; 405 406 begin 406 RegisterDrawMethod(TCanvasPixels); 407 RegisterDrawMethod(TCanvasPixelsUpdateLock); 408 RegisterDrawMethod(TLazIntfImageColorsCopy); 409 RegisterDrawMethod(TLazIntfImageColorsNoCopy); 410 RegisterDrawMethod(TBitmapRawImageData); 411 RegisterDrawMethod(TBitmapRawImageDataPaintBox); 412 RegisterDrawMethod(TBitmapRawImageDataMove); 413 RegisterDrawMethod(TBGRABitmapPaintBox); 407 RegisterDrawMethod(TMethodCanvasPixels); 408 RegisterDrawMethod(TMethodCanvasPixelsUpdateLock); 409 RegisterDrawMethod(TMethodLazIntfImageColorsCopy); 410 RegisterDrawMethod(TMethodLazIntfImageColorsNoCopy); 411 RegisterDrawMethod(TMethodBitmapRawImageData); 412 RegisterDrawMethod(TMethodBitmapRawImageDataPaintBox); 413 RegisterDrawMethod(TMethodBitmapRawImageDataMove); 414 RegisterDrawMethod(TMethodBitmapScanline); 415 RegisterDrawMethod(TMethodBGRABitmap); 414 416 {$IFDEF GRAPHICS32} 415 RegisterDrawMethod(T Graphics32Method);417 RegisterDrawMethod(TMethodGraphics32); 416 418 {$ENDIF} 417 419 {$IFDEF OPENGL} 418 RegisterDrawMethod(T OpenGLMethod);419 RegisterDrawMethod(T OpenGLPBOMethod);420 RegisterDrawMethod(TMethodOpenGL); 421 RegisterDrawMethod(TMethodOpenGLPBO); 420 422 {$ENDIF} 421 RegisterDrawMethod(TDummyMethod); 423 RegisterDrawMethod(TMethodMove); 424 RegisterDrawMethod(TMethodDummy); 422 425 end; 423 426 -
GraphicTest/GraphicTest.lpi
r524 r543 74 74 </Modes> 75 75 </RunParams> 76 <RequiredPackages Count=" 5">76 <RequiredPackages Count="4"> 77 77 <Item1> 78 <PackageName Value="GR32_Lazarus"/> 79 <DefaultFilename Value="Packages/Graphics32/Packages/GR32_Lazarus.lpk" Prefer="True"/> 78 <PackageName Value="lazopenglcontext"/> 80 79 </Item1> 81 80 <Item2> 82 <PackageName Value="lazopenglcontext"/> 81 <PackageName Value="BGRABitmapPack"/> 82 <DefaultFilename Value="Packages/bgrabitmap/bgrabitmappack.lpk" Prefer="True"/> 83 83 </Item2> 84 84 <Item3> 85 <PackageName Value="BGRABitmapPack"/> 86 <DefaultFilename Value="Packages/bgrabitmap/bgrabitmappack.lpk" Prefer="True"/> 85 <PackageName Value="SynEdit"/> 87 86 </Item3> 88 87 <Item4> 89 <PackageName Value=" SynEdit"/>88 <PackageName Value="LCL"/> 90 89 </Item4> 91 <Item5>92 <PackageName Value="LCL"/>93 </Item5>94 90 </RequiredPackages> 95 <Units Count=" 18">91 <Units Count="20"> 96 92 <Unit0> 97 93 <Filename Value="GraphicTest.lpr"/> … … 125 121 </Unit5> 126 122 <Unit6> 127 <Filename Value="Methods/U CanvasPixels.pas"/>123 <Filename Value="Methods/UMethodCanvasPixels.pas"/> 128 124 <IsPartOfProject Value="True"/> 129 125 </Unit6> 130 126 <Unit7> 131 <Filename Value="Methods/U CanvasPixelsUpdateLock.pas"/>127 <Filename Value="Methods/UMethodCanvasPixelsUpdateLock.pas"/> 132 128 <IsPartOfProject Value="True"/> 133 129 </Unit7> 134 130 <Unit8> 135 <Filename Value="Methods/U LazIntfImageColorsCopy.pas"/>131 <Filename Value="Methods/UMethodLazIntfImageColorsCopy.pas"/> 136 132 <IsPartOfProject Value="True"/> 137 133 </Unit8> 138 134 <Unit9> 139 <Filename Value="Methods/U LazIntfImageColorsNoCopy.pas"/>135 <Filename Value="Methods/UMethodLazIntfImageColorsNoCopy.pas"/> 140 136 <IsPartOfProject Value="True"/> 141 137 </Unit9> 142 138 <Unit10> 143 <Filename Value="Methods/U BGRABitmapPaintBox.pas"/>139 <Filename Value="Methods/UMethodBGRABitmap.pas"/> 144 140 <IsPartOfProject Value="True"/> 145 141 </Unit10> 146 142 <Unit11> 147 <Filename Value="Methods/U BitmapRawImageDataPaintBox.pas"/>143 <Filename Value="Methods/UMethodBitmapRawImageDataPaintBox.pas"/> 148 144 <IsPartOfProject Value="True"/> 149 145 </Unit11> 150 146 <Unit12> 151 <Filename Value="Methods/U BitmapRawImageData.pas"/>147 <Filename Value="Methods/UMethodBitmapRawImageData.pas"/> 152 148 <IsPartOfProject Value="True"/> 153 149 </Unit12> 154 150 <Unit13> 155 <Filename Value="Methods/U DummyMethod.pas"/>151 <Filename Value="Methods/UMethodDummy.pas"/> 156 152 <IsPartOfProject Value="True"/> 157 153 </Unit13> 158 154 <Unit14> 159 <Filename Value="Methods/U BitmapRawImageDataMove.pas"/>155 <Filename Value="Methods/UMethodBitmapRawImageDataMove.pas"/> 160 156 <IsPartOfProject Value="True"/> 161 157 </Unit14> 162 158 <Unit15> 163 <Filename Value="Methods/U OpenGLMethod.pas"/>159 <Filename Value="Methods/UMethodOpenGL.pas"/> 164 160 <IsPartOfProject Value="True"/> 165 161 </Unit15> 166 162 <Unit16> 167 <Filename Value="Methods/U OpenGLPBOMethod.pas"/>163 <Filename Value="Methods/UMethodOpenGLPBO.pas"/> 168 164 <IsPartOfProject Value="True"/> 169 165 </Unit16> 170 166 <Unit17> 171 <Filename Value="Methods/U Graphics32Method.pas"/>167 <Filename Value="Methods/UMethodGraphics32.pas"/> 172 168 <IsPartOfProject Value="True"/> 173 169 </Unit17> 170 <Unit18> 171 <Filename Value="Methods/UMethodBitmapScanline.pas"/> 172 <IsPartOfProject Value="True"/> 173 </Unit18> 174 <Unit19> 175 <Filename Value="Methods/UMethodMove.pas"/> 176 <IsPartOfProject Value="True"/> 177 </Unit19> 174 178 </Units> 175 179 </ProjectOptions> -
GraphicTest/GraphicTest.lpr
r524 r543 8 8 {$ENDIF}{$ENDIF} 9 9 Interfaces, // this includes the LCL widgetset 10 Forms, SysUtils, openglcontext, UFormMain, UPlatform, UDrawMethod, UFastBitmap,11 UF ormDraw, bgrabitmappack,12 U CanvasPixels, UCanvasPixelsUpdateLock,13 U LazIntfImageColorsCopy, ULazIntfImageColorsNoCopy, UBGRABitmapPaintBox,14 U BitmapRawImageDataPaintBox, UBitmapRawImageData, UDummyMethod,15 U BitmapRawImageDataMove, UOpenGLMethod, UOpenGLPBOMethod, UGraphics32Method;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 16 17 17 {$R *.res} -
GraphicTest/UDrawMethod.pas
r472 r543 7 7 uses 8 8 Classes, SysUtils, ExtCtrls, UPlatform, UFastBitmap, Graphics, Controls, 9 LCLType, IntfGraphics, fpImage, GraphType, DateUtils, 9 LCLType, IntfGraphics, fpImage, GraphType, DateUtils, Forms, 10 10 {$IFDEF OPENGL}GL, GLExt, OpenGLContext,{$ENDIF} 11 11 LclIntf; 12 12 13 13 type 14 TPaintObject = (poImage, poPaintBox, poOpenGL );14 TPaintObject = (poImage, poPaintBox, poOpenGL, poCanvas); 15 15 16 16 … … 65 65 end; 66 66 67 { TDrawMethodCanvas } 68 69 TDrawMethodCanvas = class(TDrawMethod) 70 Canvas: TCanvas; 71 procedure UpdateSettings; override; 72 procedure Init(Parent: TWinControl; Size: TPoint; PixelFormat: TPixelFormat); override; 73 procedure Done; override; 74 end; 75 67 76 {$IFDEF OPENGL} 68 77 … … 84 93 85 94 implementation 95 96 { TDrawMethodCanvas } 97 98 procedure TDrawMethodCanvas.UpdateSettings; 99 begin 100 inherited UpdateSettings; 101 end; 102 103 procedure TDrawMethodCanvas.Init(Parent: TWinControl; Size: TPoint; 104 PixelFormat: TPixelFormat); 105 begin 106 Canvas := TForm(Parent).Canvas; 107 end; 108 109 procedure TDrawMethodCanvas.Done; 110 begin 111 inherited Done; 112 end; 86 113 87 114
Note:
See TracChangeset
for help on using the changeset viewer.