Changeset 472 for GraphicTest/Packages/bgrabitmap/bgragradients.pas
- Timestamp:
- Apr 9, 2015, 9:58:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest/Packages/bgrabitmap/bgragradients.pas
r452 r472 2 2 3 3 {$mode objfpc}{$H+} 4 5 {$i bgrasse.inc} 4 6 5 7 interface … … 115 117 Color : TBGRAPixel); 116 118 117 {$ifdef CPUI386}119 {$ifdef BGRASSE_AVAILABLE} 118 120 procedure DrawMapSSE(dest: TBGRACustomBitmap; map: TBGRACustomBitmap; mapAltitude: integer; ofsX,ofsY: integer; 119 121 ColorMap : TBGRACustomBitmap); … … 174 176 implementation 175 177 176 uses Types, SysUtils, BGRATextFX;178 uses GraphType, Types, SysUtils, BGRATextFX; {GraphType unit used by phongdraw.inc} 177 179 178 180 function TextShadow(AWidth, AHeight: Integer; AText: String; … … 375 377 Color : TBGRAPixel); 376 378 begin 377 {$ifdef CPUI386}379 {$ifdef BGRASSE_AVAILABLE} 378 380 if UseSSE then 379 381 DrawColorSSE(dest,map,mapAltitude,ofsX,ofsY,Color) … … 386 388 mapAltitude: integer; ofsX, ofsY: integer; ColorMap: TBGRACustomBitmap); 387 389 begin 388 {$ifdef CPUI386}390 {$ifdef BGRASSE_AVAILABLE} 389 391 if UseSSE then 390 392 DrawMapSSE(dest,map,mapAltitude,ofsX,ofsY,ColorMap) … … 397 399 mapAltitude: integer; ofsX, ofsY: integer; ColorScan: IBGRAScanner); 398 400 begin 399 {$ifdef CPUI386}401 {$ifdef BGRASSE_AVAILABLE} 400 402 if UseSSE then 401 403 DrawScannerSSE(dest,map,mapAltitude,ofsX,ofsY,ColorScan) … … 575 577 {$I phongdraw.inc } 576 578 577 {$ifdef CPUI386}579 {$ifdef BGRASSE_AVAILABLE} 578 580 procedure TPhongShading.DrawMapSSE(dest: TBGRACustomBitmap; map: TBGRACustomBitmap; 579 581 mapAltitude: integer; ofsX, ofsY: integer; ColorMap: TBGRACustomBitmap); … … 1087 1089 end; 1088 1090 1091 initialization 1092 1093 Randomize; 1094 1089 1095 end. 1090 1096
Note:
See TracChangeset
for help on using the changeset viewer.