This repository has been archived on 2024-02-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
MyPresenter1.0/bgrabitmap/bgraphongtypes.pas
2015-02-08 16:52:18 -08:00

35 lines
1.1 KiB
ObjectPascal

unit BGRAPhongTypes;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, BGRABitmapTypes;
type TCustomPhongShading = class
LightPosition : TPoint;
{ Render the specified map on the destination bitmap with one solid color. Map altitude
indicate the global height of the map. }
procedure Draw(dest: TBGRACustomBitmap; map: TBGRACustomBitmap; mapAltitude: integer; ofsX,ofsY: integer;
Color : TBGRAPixel); virtual; abstract;
{ Render with a color map of the same size as the height map. Map altitude
indicate the global height of the map. }
procedure Draw(dest: TBGRACustomBitmap; map: TBGRACustomBitmap; mapAltitude: integer; ofsX,ofsY: integer;
ColorMap : TBGRACustomBitmap); virtual; abstract;
{ Render with a scanner. Map altitude
indicate the global height of the map. }
procedure DrawScan(dest: TBGRACustomBitmap; map: TBGRACustomBitmap; mapAltitude: integer; ofsX,ofsY: integer;
ColorScan : IBGRAScanner); virtual; abstract;
end;
implementation
end.