Ignore:
Timestamp:
Apr 17, 2019, 12:58:41 AM (5 years ago)
Author:
chronos
Message:
  • Modified: Propagate project build mode options to used packages.
  • Added: Check memory leaks using heaptrc.
  • Modified: Update BGRABitmap package.
Location:
GraphicTest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GraphicTest

    • Property svn:ignore
      •  

        old new  
        88GraphicTest.lps
        99GraphicTest.dbg
         10heaptrclog.trc
  • GraphicTest/Packages/bgrabitmap/bgrascene3d.pas

    r494 r521  
    152152    FetchThrowsException: boolean;
    153153
    154     constructor Create;
    155     constructor Create(ASurface: TBGRACustomBitmap);
     154    constructor Create; overload;
     155    constructor Create(ASurface: TBGRACustomBitmap); overload;
    156156    destructor Destroy; override;
    157157    procedure Clear; virtual;
     
    169169    procedure LookUp(angleDeg: single);
    170170    procedure LookDown(angleDeg: single);
    171     procedure Render; virtual;
    172     procedure Render(ARenderer: TCustomRenderer3D);
     171    procedure Render;  overload; virtual;
     172    procedure Render(ARenderer: TCustomRenderer3D); overload;
    173173    function CreateObject: IBGRAObject3D; overload;
    174174    function CreateObject(ATexture: IBGRAScanner): IBGRAObject3D; overload;
     
    179179    function CreateHalfSphere(ARadius: Single; AColor: TBGRAPixel; AHorizPrecision: integer = 6; AVerticalPrecision : integer = 6): IBGRAObject3D; overload;
    180180    procedure RemoveObject(AObject: IBGRAObject3D);
    181     function AddDirectionalLight(ADirection: TPoint3D; ALightness: single = 1; AMinIntensity : single = 0): IBGRADirectionalLight3D;
    182     function AddDirectionalLight(ADirection: TPoint3D; AColor: TBGRAPixel; AMinIntensity: single = 0): IBGRADirectionalLight3D;
    183     function AddPointLight(AVertex: IBGRAVertex3D; AOptimalDistance: single; ALightness: single = 1; AMinIntensity : single = 0): IBGRAPointLight3D;
    184     function AddPointLight(AVertex: IBGRAVertex3D; AOptimalDistance: single; AColor: TBGRAPixel; AMinIntensity: single = 0): IBGRAPointLight3D;
     181    function AddDirectionalLight(ADirection: TPoint3D; ALightness: single = 1; AMinIntensity : single = 0): IBGRADirectionalLight3D; overload;
     182    function AddDirectionalLight(ADirection: TPoint3D; AColor: TBGRAPixel; AMinIntensity: single = 0): IBGRADirectionalLight3D; overload;
     183    function AddPointLight(AVertex: IBGRAVertex3D; AOptimalDistance: single; ALightness: single = 1; AMinIntensity : single = 0): IBGRAPointLight3D; overload;
     184    function AddPointLight(AVertex: IBGRAVertex3D; AOptimalDistance: single; AColor: TBGRAPixel; AMinIntensity: single = 0): IBGRAPointLight3D; overload;
    185185    procedure RemoveLight(ALight: IBGRALight3D);
    186186    procedure SetZoom(value: Single); overload;
    187187    procedure SetZoom(value: TPointF); overload;
    188     function CreateMaterial: IBGRAMaterial3D;
    189     function CreateMaterial(ASpecularIndex: integer): IBGRAMaterial3D;
     188    function CreateMaterial: IBGRAMaterial3D; overload;
     189    function CreateMaterial(ASpecularIndex: integer): IBGRAMaterial3D; overload;
    190190    function GetMaterialByName(AName: string): IBGRAMaterial3D;
    191191    procedure UpdateMaterials; virtual;
     
    949949
    950950  function GetSingle: single;
    951   var code: integer;
    952   begin
    953     val(GetNextToken,result,code);
     951  var {%H-}code: integer;
     952  begin
     953    val(GetNextToken,result,{%H-}code);
    954954  end;
    955955
    956956  function GetColorF: TColorF;
    957957  var r,g,b: single;
    958     code: integer;
    959   begin
    960     val(GetNextToken,r,code);
    961     val(GetNextToken,g,code);
    962     val(GetNextToken,b,code);
     958    {%H-}code: integer;
     959  begin
     960    val(GetNextToken,r,{%H-}code);
     961    val(GetNextToken,g,{%H-}code);
     962    val(GetNextToken,b,{%H-}code);
    963963    result := ColorF(r,g,b,1);
    964964  end;
Note: See TracChangeset for help on using the changeset viewer.