Changeset 521 for GraphicTest/Packages/bgrabitmap/bgrascene3d.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/bgrascene3d.pas
r494 r521 152 152 FetchThrowsException: boolean; 153 153 154 constructor Create; 155 constructor Create(ASurface: TBGRACustomBitmap); 154 constructor Create; overload; 155 constructor Create(ASurface: TBGRACustomBitmap); overload; 156 156 destructor Destroy; override; 157 157 procedure Clear; virtual; … … 169 169 procedure LookUp(angleDeg: single); 170 170 procedure LookDown(angleDeg: single); 171 procedure Render; virtual;172 procedure Render(ARenderer: TCustomRenderer3D); 171 procedure Render; overload; virtual; 172 procedure Render(ARenderer: TCustomRenderer3D); overload; 173 173 function CreateObject: IBGRAObject3D; overload; 174 174 function CreateObject(ATexture: IBGRAScanner): IBGRAObject3D; overload; … … 179 179 function CreateHalfSphere(ARadius: Single; AColor: TBGRAPixel; AHorizPrecision: integer = 6; AVerticalPrecision : integer = 6): IBGRAObject3D; overload; 180 180 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; 185 185 procedure RemoveLight(ALight: IBGRALight3D); 186 186 procedure SetZoom(value: Single); overload; 187 187 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; 190 190 function GetMaterialByName(AName: string): IBGRAMaterial3D; 191 191 procedure UpdateMaterials; virtual; … … 949 949 950 950 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); 954 954 end; 955 955 956 956 function GetColorF: TColorF; 957 957 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); 963 963 result := ColorF(r,g,b,1); 964 964 end;
Note:
See TracChangeset
for help on using the changeset viewer.