source: trunk/Packages/bgrabitmap/bgraphongtypes.pas

Last change on this file was 2, checked in by chronos, 5 years ago
File size: 1.1 KB
Line 
1unit BGRAPhongTypes;
2
3{$mode objfpc}{$H+}
4
5interface
6
7uses
8 Classes, SysUtils, BGRABitmapTypes;
9
10type TCustomPhongShading = class
11
12 LightPosition : TPoint;
13
14 { Render the specified map on the destination bitmap with one solid color. Map altitude
15 indicate the global height of the map. }
16 procedure Draw(dest: TBGRACustomBitmap; map: TBGRACustomBitmap; mapAltitude: integer; ofsX,ofsY: integer;
17 Color : TBGRAPixel); overload; virtual; abstract;
18
19 { Render with a color map of the same size as the height map. Map altitude
20 indicate the global height of the map. }
21 procedure Draw(dest: TBGRACustomBitmap; map: TBGRACustomBitmap; mapAltitude: integer; ofsX,ofsY: integer;
22 ColorMap : TBGRACustomBitmap); overload; virtual; abstract;
23
24 { Render with a scanner. Map altitude
25 indicate the global height of the map. }
26 procedure DrawScan(dest: TBGRACustomBitmap; map: TBGRACustomBitmap; mapAltitude: integer; ofsX,ofsY: integer;
27 ColorScan : IBGRAScanner); virtual; abstract;
28
29 end;
30
31implementation
32
33end.
34
Note: See TracBrowser for help on using the repository browser.