- Timestamp:
- Jun 15, 2019, 4:07:03 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/CityScreen.pas
r150 r170 90 90 91 91 uses 92 Select, Messg, MessgEx, Help, Tribes, Directories, Math ;92 Select, Messg, MessgEx, Help, Tribes, Directories, Math, PixelPointer; 93 93 94 94 {$R *.lfm} -
trunk/LocalPlayer/Help.pas
r166 r170 107 107 108 108 uses 109 Directories, ClientTools, Term, Tribes, Inp, Messg ;109 Directories, ClientTools, Term, Tribes, Inp, Messg, PixelPointer; 110 110 111 111 {$R *.lfm} -
trunk/LocalPlayer/IsoEngine.pas
r154 r170 7 7 Protocol, ClientTools, ScreenTools, Tribes, 8 8 {$IFNDEF SCR}Term, {$ENDIF} 9 LCLIntf, LCLType, SysUtils, Classes, Graphics ;9 LCLIntf, LCLType, SysUtils, Classes, Graphics, PixelPointer; 10 10 11 11 type -
trunk/LocalPlayer/MessgEx.pas
r111 r170 73 73 74 74 uses 75 ClientTools, BaseWin, Term, Help, UnitStat, Tribes, 75 ClientTools, BaseWin, Term, Help, UnitStat, Tribes, PixelPointer, 76 76 IsoEngine, Diagram; 77 77 -
trunk/LocalPlayer/TechTree.pas
r111 r170 30 30 TechTreeDlg: TTechTreeDlg; 31 31 32 32 33 implementation 33 34 34 35 uses 35 Directories ;36 Directories, PixelPointer; 36 37 37 38 {$R *.lfm} -
trunk/LocalPlayer/Term.pas
r166 r170 463 463 uses 464 464 Directories, IsoEngine, CityScreen, Draft, MessgEx, Select, CityType, Help, 465 UnitStat, Log, Diagram, NatStat, Wonders, Enhance, Nego, 465 UnitStat, Log, Diagram, NatStat, Wonders, Enhance, Nego, PixelPointer, 466 466 Battle, Rates, TechTree, Registry; 467 467 -
trunk/LocalPlayer/Wonders.pas
r156 r170 38 38 39 39 uses 40 Term, ClientTools, Help, Tribes ;40 Term, ClientTools, Help, Tribes, PixelPointer; 41 41 42 42 {$R *.lfm} -
trunk/Packages/CevoComponents/CevoComponents.lpk
r166 r170 37 37 <Description Value="C-evo components"/> 38 38 <Version Major="1" Minor="2"/> 39 <Files Count="1 3">39 <Files Count="14"> 40 40 <Item1> 41 41 <Filename Value="Area.pas"/> … … 96 96 <Filename Value="BaseWin.pas"/> 97 97 <HasRegisterProc Value="True"/> 98 <UnitName Value="BaseWin"/> 98 99 </Item13> 100 <Item14> 101 <Filename Value="PixelPointer.pas"/> 102 <UnitName Value="PixelPointer"/> 103 </Item14> 99 104 </Files> 100 105 <RequiredPkgs Count="2"> -
trunk/Packages/CevoComponents/CevoComponents.pas
r166 r170 10 10 uses 11 11 Area, ButtonA, ButtonB, ButtonC, ButtonN, EOTButton, ButtonBase, DrawDlg, 12 Sound, BaseWin, LazarusPackageIntf;12 Sound, BaseWin, PixelPointer, LazarusPackageIntf; 13 13 14 14 implementation -
trunk/Packages/CevoComponents/ScreenTools.pas
r167 r170 16 16 clPage, clCover: TColor; 17 17 end; 18 19 TColor32 = type cardinal;20 TColor32Component = (ccBlue, ccGreen, ccRed, ccAlpha);21 TPixel32 = packed record22 case integer of23 0: (B, G, R, A: byte);24 1: (ARGB: TColor32);25 2: (Planes: array[0..3] of byte);26 3: (Components: array[TColor32Component] of byte);27 end;28 PPixel32 = ^TPixel32;29 30 { TPixelPointer }31 32 TPixelPointer = record33 Base: PPixel32;34 Pixel: PPixel32;35 Line: PPixel32;36 RelLine: PPixel32;37 BytesPerPixel: integer;38 BytesPerLine: integer;39 procedure NextLine; inline; // Move pointer to start of new base line40 procedure NextPixel; inline; // Move pointer to next pixel41 procedure SetXY(X, Y: integer); inline; // Set pixel position relative to base42 procedure SetX(X: integer); inline; // Set horizontal pixel position relative to base43 procedure Init(Bitmap: TRasterImage; BaseX: integer = 0; BaseY: integer = 0); inline;44 end;45 PPixelPointer = ^TPixelPointer;46 18 47 19 {$IFDEF WINDOWS} … … 218 190 219 191 uses 220 Directories, Sound, Registry ;192 Directories, Sound, Registry, PixelPointer; 221 193 222 194 var … … 1429 1401 end; 1430 1402 1431 { TPixelPointer }1432 1433 procedure TPixelPointer.NextLine; inline;1434 begin1435 Line := Pointer(Line) + BytesPerLine;1436 Pixel := Line;1437 end;1438 1439 procedure TPixelPointer.NextPixel; inline;1440 begin1441 Pixel := Pointer(Pixel) + BytesPerPixel;1442 end;1443 1444 procedure TPixelPointer.SetXY(X, Y: Integer); inline;1445 begin1446 Line := Pointer(Base) + Y * BytesPerLine;1447 SetX(X);1448 end;1449 1450 procedure TPixelPointer.SetX(X: Integer); inline;1451 begin1452 Pixel := Pointer(Line) + X * BytesPerPixel;1453 end;1454 1455 procedure TPixelPointer.Init(Bitmap: TRasterImage; BaseX: Integer = 0;1456 BaseY: integer = 0); inline;1457 begin1458 BytesPerLine := Bitmap.RawImage.Description.BytesPerLine;1459 BytesPerPixel := Bitmap.RawImage.Description.BitsPerPixel shr 3;1460 Base := PPixel32(Bitmap.RawImage.Data + BaseX * BytesPerPixel + BaseY * BytesPerLine);1461 SetXY(0, 0);1462 end;1463 1464 1403 procedure LoadPhrases; 1465 1404 begin -
trunk/Start.pas
r169 r170 155 155 156 156 uses 157 Directories, Direct, ScreenTools, Inp, Back, Locale ;157 Directories, Direct, ScreenTools, Inp, Back, Locale, PixelPointer; 158 158 159 159 {$R *.lfm}
Note:
See TracChangeset
for help on using the changeset viewer.