Line | |
---|
1 | unit BGRAPhongTypes;
|
---|
2 |
|
---|
3 | {$mode objfpc}{$H+}
|
---|
4 |
|
---|
5 | interface
|
---|
6 |
|
---|
7 | uses
|
---|
8 | Classes, SysUtils, BGRABitmapTypes;
|
---|
9 |
|
---|
10 | type 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 |
|
---|
31 | implementation
|
---|
32 |
|
---|
33 | end.
|
---|
34 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.