Changeset 521 for GraphicTest/Packages/bgrabitmap/bgrapolygonaliased.pas
- Timestamp:
- Apr 17, 2019, 12:58:41 AM (5 years ago)
- Location:
- GraphicTest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest
- Property svn:ignore
-
old new 8 8 GraphicTest.lps 9 9 GraphicTest.dbg 10 heaptrclog.trc
-
- Property svn:ignore
-
GraphicTest/Packages/bgrabitmap/bgrapolygonaliased.pas
r494 r521 105 105 ANumSegment: integer; dy: single; AData: pointer); override; 106 106 public 107 constructor Create(const points: array of TPointF; const texCoords: array of TPointF); 108 constructor Create(const points: array of TPointF; const texCoords: array of TPointF; const lightnesses: array of word); 107 constructor Create(const points: array of TPointF; const texCoords: array of TPointF); overload; 108 constructor Create(const points: array of TPointF; const texCoords: array of TPointF; const lightnesses: array of word); overload; 109 109 function CreateSegmentData(numPt,nextPt: integer; x,y: single): pointer; override; 110 110 function CreateIntersectionInfo: TIntersectionInfo; override; … … 150 150 ANumSegment: integer; dy: single; AData: pointer); override; 151 151 public 152 constructor Create(const points: array of TPointF; const pointsZ: array of single; const texCoords: array of TPointF); 153 constructor Create(const points: array of TPointF; const pointsZ: array of single; const texCoords: array of TPointF; const lightnesses: array of word); 152 constructor Create(const points: array of TPointF; const pointsZ: array of single; const texCoords: array of TPointF); overload; 153 constructor Create(const points: array of TPointF; const pointsZ: array of single; const texCoords: array of TPointF; const lightnesses: array of word); overload; 154 154 function CreateSegmentData(numPt,nextPt: integer; x,y: single): pointer; override; 155 155 function CreateIntersectionInfo: TIntersectionInfo; override; … … 165 165 ANumSegment: integer; dy: single; AData: pointer); override; 166 166 public 167 constructor Create(const points: array of TPointF; const points3D: array of TPoint3D; const normals: array of TPoint3D; const texCoords: array of TPointF); 168 constructor Create(const points: array of TPointF; const points3D: array of TPoint3D_128; const normals: array of TPoint3D_128; const texCoords: array of TPointF); 167 constructor Create(const points: array of TPointF; const points3D: array of TPoint3D; const normals: array of TPoint3D; const texCoords: array of TPointF); overload; 168 constructor Create(const points: array of TPointF; const points3D: array of TPoint3D_128; const normals: array of TPoint3D_128; const texCoords: array of TPointF); overload; 169 169 function CreateSegmentData(numPt,nextPt: integer; x,y: single): pointer; override; 170 170 function CreateIntersectionInfo: TIntersectionInfo; override; … … 196 196 DX, DY: integer; BorderColor, FillColor: TBGRAPixel; FillTexture: IBGRAScanner = nil; ADrawMode: TDrawMode = dmDrawWithTransparency; 197 197 skipFill: boolean = false); 198 procedure BGRAFillRoundRectAliased(dest: TBGRACustomBitmap; X1, Y1, X2, Y2: integer; 199 DX, DY: integer; FillColor: TBGRAPixel; FillTexture: IBGRAScanner = nil; ADrawMode: TDrawMode = dmDrawWithTransparency); 198 200 199 201 implementation 200 202 201 uses Math, BGRABlend ;203 uses Math, BGRABlend, BGRAPolygon; 202 204 203 205 { TPolygonPerspectiveColorGradientInfo } … … 1018 1020 end; 1019 1021 1022 procedure BGRAFillRoundRectAliased(dest: TBGRACustomBitmap; X1, Y1, X2, 1023 Y2: integer; DX, DY: integer; FillColor: TBGRAPixel; 1024 FillTexture: IBGRAScanner; ADrawMode: TDrawMode); 1025 var 1026 fi: TFillRoundRectangleInfo; 1027 begin 1028 fi := TFillRoundRectangleInfo.Create(x1,y1,x2,y2,dx/2,dy/2,[rrDefault],false); 1029 FillShapeAliased(dest, fi, FillColor, false, FillTexture, true, ADrawMode); 1030 fi.Free; 1031 end; 1032 1020 1033 end. 1021 1034
Note:
See TracChangeset
for help on using the changeset viewer.