apophysis/2.10/Source/Render.pas

720 lines
19 KiB
ObjectPascal
Raw Normal View History

2005-03-25 03:35:39 -05:00
{
Flame screensaver Copyright (C) 2002 Ronald Hordijk
Apophysis Copyright (C) 2001-2004 Mark Townsend
Apophysis Copyright (C) 2005-2006 Ronald Hordijk, Piotr Borys, Peter Sdobnov
2005-03-25 03:35:39 -05:00
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
}
unit Render;
interface
uses
Windows, Graphics, Classes,
Controlpoint, RenderTypes, ImageMaker, PngImage;
2005-03-25 03:35:39 -05:00
///////////////////////////////////////////////////////////////////////////////
//
// { TBaseRenderer }
//
///////////////////////////////////////////////////////////////////////////////
2005-03-25 03:35:39 -05:00
type
TBaseRenderer = class
private
FOnProgress: TOnProgress;
2006-09-06 08:34:00 -04:00
strOutput: TStrings;
2005-03-25 03:35:39 -05:00
protected
camX0, camX1, camY0, camY1, // camera bounds
camW, camH, // camera sizes
bws, bhs, cosa, sina, rcX, rcY: double;
ppux, ppuy: extended;
BucketWidth, BucketHeight: int64;
BucketSize: int64;
sample_density: extended;
oversample: integer;
gutter_width: Integer;
max_gutter_width: Integer;
FCP: TControlPoint;
FStop: integer;//boolean;
FImageMaker: TImageMaker;
ColorMap: TColorMapArray;
2005-03-25 03:35:39 -05:00
FMaxMem: integer;
FSlice, FNumSlices: integer;
image_Width, image_Height: Int64;
image_Center_X, image_Center_Y: double;
2005-03-25 03:35:39 -05:00
FCompatibility: integer;
FNumThreads: integer;
FNumBatches: integer;//int64;
FMinDensity: double;
FMinBatches: integer;
FRenderOver: boolean;
2006-09-06 08:34:00 -04:00
RenderTime, PauseTime: TDateTime;
2005-03-25 03:35:39 -05:00
procedure Progress(value: double);
procedure SetMinDensity(const q: double);
procedure CreateColorMap; virtual;
procedure CreateCamera;
procedure CreateCameraMM;
procedure Prepare; virtual; abstract;
procedure SetPixels; virtual; abstract;
procedure CalcBufferSize; virtual;
procedure CalcBufferSizeMM;
function GetBits: integer; virtual; abstract;
function GetBucketsPtr: pointer; virtual; abstract;
procedure InitBuffers;
procedure AllocateBuckets; virtual; abstract;
procedure ClearBuckets; virtual; abstract;
procedure RenderMM;
2006-09-06 08:34:00 -04:00
procedure Trace(const str: string);
procedure TimeTrace(const str: string);
2005-03-25 03:35:39 -05:00
public
constructor Create; virtual;
destructor Destroy; override;
procedure SetCP(CP: TControlPoint);
procedure Render; virtual;
function GetImage: TBitmap; virtual;
function GetTransparentImage: TPngObject;
procedure UpdateImage(CP: TControlPoint);
procedure SaveImage(const FileName: String);
procedure Stop; virtual;
2006-09-06 08:34:00 -04:00
procedure BreakRender; virtual;
procedure Pause; virtual;
procedure UnPause; virtual;
2006-09-06 08:34:00 -04:00
function Failed: boolean;
procedure ShowBigStats;
procedure ShowSmallStats;
2005-03-25 03:35:39 -05:00
property OnProgress: TOnProgress
read FOnProgress
write FOnProgress;
2005-03-25 03:35:39 -05:00
property MaxMem : integer
read FMaxMem
write FMaxMem;
property NrSlices: integer
read FNumSlices;
2005-03-25 03:35:39 -05:00
property Slice: integer
read FSlice;
property NumThreads: integer
read FNumThreads
2006-09-06 08:34:00 -04:00
write FNumThreads;
property Output: TStrings
write strOutput;
property MinDensity: double
write SetMinDensity;
property RenderMore: boolean
write FRenderOver;
2005-03-25 03:35:39 -05:00
end;
///////////////////////////////////////////////////////////////////////////////
{ TRenderer }
///////////////////////////////////////////////////////////////////////////////
2005-03-25 03:35:39 -05:00
type
TRenderer = class
private
FRenderer: TBaseRenderer;
FOnProgress: TOnProgress;
FCP: TControlPoint;
FMaxMem: int64;
public
2005-03-25 03:35:39 -05:00
destructor Destroy; override;
procedure SetCP(CP: TControlPoint);
procedure Render;
function GetImage: TBitmap;
2005-03-25 03:35:39 -05:00
procedure Stop;
property OnProgress: TOnProgress
read FOnProgress
write FOnProgress;
end;
implementation
uses
Math, SysUtils, Forms,
Render32;
2005-03-25 03:35:39 -05:00
///////////////////////////////////////////////////////////////////////////////
//
// { TBaseRenderer }
//
///////////////////////////////////////////////////////////////////////////////
constructor TBaseRenderer.Create;
2005-03-25 03:35:39 -05:00
begin
inherited Create;
2005-03-25 03:35:39 -05:00
FNumSlices := 1;
FSlice := 0;
FStop := 0; // False;
FImageMaker := TImageMaker.Create;
2005-03-25 03:35:39 -05:00
end;
///////////////////////////////////////////////////////////////////////////////
destructor TBaseRenderer.Destroy;
2005-03-25 03:35:39 -05:00
begin
FImageMaker.Free;
if assigned(FCP) then
FCP.Free;
inherited;
2005-03-25 03:35:39 -05:00
end;
///////////////////////////////////////////////////////////////////////////////
procedure TBaseRenderer.SetCP(CP: TControlPoint);
2005-03-25 03:35:39 -05:00
begin
if assigned(FCP) then
FCP.Free;
FCP := Cp.Clone;
2005-03-25 03:35:39 -05:00
end;
2006-09-06 08:34:00 -04:00
///////////////////////////////////////////////////////////////////////////////
procedure TBaseRenderer.Trace(const str: string);
begin
if assigned(strOutput) then
strOutput.Add(str);
end;
procedure TBaseRenderer.TimeTrace(const str: string);
begin
if assigned(strOutput) then
strOutput.Add(TimeToStr(Now) + ' : ' + str);
end;
///////////////////////////////////////////////////////////////////////////////
procedure TBaseRenderer.Pause;
begin
PauseTime := Now;
TimeTrace('Pausing render');
end;
procedure TBaseRenderer.UnPause;
var
tNow: TDateTime;
begin
tNow := Now;
RenderTime := RenderTime + (tNow - PauseTime);
TimeTrace('Resuming render');
end;
2005-03-25 03:35:39 -05:00
///////////////////////////////////////////////////////////////////////////////
procedure TBaseRenderer.Stop;
2005-03-25 03:35:39 -05:00
begin
2006-09-06 08:34:00 -04:00
TimeTrace('Terminating render');
FStop := 1; //True;
2005-03-25 03:35:39 -05:00
end;
2006-09-06 08:34:00 -04:00
procedure TBaseRenderer.BreakRender;
2005-03-25 03:35:39 -05:00
begin
2006-09-06 08:34:00 -04:00
TimeTrace('Stopping render');
FStop := -1;
2005-03-25 03:35:39 -05:00
end;
///////////////////////////////////////////////////////////////////////////////
procedure TBaseRenderer.Progress(value: double);
2005-03-25 03:35:39 -05:00
begin
if assigned(FOnprogress) then
FOnprogress(Value);
2005-03-25 03:35:39 -05:00
end;
///////////////////////////////////////////////////////////////////////////////
2006-09-06 08:34:00 -04:00
procedure TBaseRenderer.SetMinDensity(const q: double);
2005-03-25 03:35:39 -05:00
begin
2006-09-06 08:34:00 -04:00
if q < fcp.sample_density then FMinDensity := q
else FMinDensity := fcp.sample_density;
2005-03-25 03:35:39 -05:00
end;
///////////////////////////////////////////////////////////////////////////////
2006-09-06 08:34:00 -04:00
function TBaseRenderer.Failed: boolean;
2005-03-25 03:35:39 -05:00
begin
2006-09-06 08:34:00 -04:00
Result := (FStop > 0);
2005-03-25 03:35:39 -05:00
end;
///////////////////////////////////////////////////////////////////////////////
2006-09-06 08:34:00 -04:00
procedure TBaseRenderer.ShowBigStats;
var
Stats: TBucketStats;
TotalSamples: int64;
2006-11-24 08:16:38 -05:00
Rbits, Gbits, Bbits, Abits: double;
2005-03-25 03:35:39 -05:00
begin
2006-09-06 08:34:00 -04:00
if not assigned(strOutput) then exit;
strOutput.Add('');
if NrSlices = 1 then
strOutput.Add('Render Statistics:')
else
strOutput.Add('Render Statistics for the last slice:'); // not really useful :-\
TotalSamples := int64(FNumBatches) * SUB_BATCH_SIZE; // * fcp.nbatches ?
if TotalSamples <= 0 then begin
strOutput.Add(' Nothing to talk about!'); // normally shouldn't happen
exit;
end;
strOutput.Add(Format(' Max possible bits: %2.3f', [8 + log2(TotalSamples)]));
FImageMaker.GetBucketStats(Stats);
2006-09-06 08:34:00 -04:00
with Stats do begin
2006-11-24 08:16:38 -05:00
if MaxR > 0 then Rbits := log2(MaxR) else Rbits := 0;
if MaxG > 0 then Gbits := log2(MaxG) else Gbits := 0;
if MaxB > 0 then Bbits := log2(MaxB) else Bbits := 0;
if MaxA > 0 then Abits := log2(MaxA) else Abits := 0;
strOutput.Add(Format(' Max Red: %2.3f bits', [Rbits]));
strOutput.Add(Format(' Max Green: %2.3f bits', [Gbits]));
strOutput.Add(Format(' Max Blue: %2.3f bits', [Bbits]));
strOutput.Add(Format(' Max Count: %2.3f bits', [Abits]));
2006-09-06 08:34:00 -04:00
strOutput.Add(Format(' Point hit ratio: %2.2f%%', [100.0*(TotalA/TotalSamples)]));
if RenderTime > 0 then // hmm
strOutput.Add(Format(' Average speed: %n points per second', [TotalSamples / (RenderTime * 24 * 60 * 60)]));
strOutput.Add(' Pure rendering time:' + TimeToString(RenderTime));
end;
end;
procedure TBaseRenderer.ShowSmallStats;
var
TotalSamples: int64;
begin
if not assigned(strOutput) then exit;
TotalSamples := int64(FNumBatches) * SUB_BATCH_SIZE; // * fcp.nbatches ?
if RenderTime > 0 then // hmm
strOutput.Add(Format(' Average speed: %n points per second', [TotalSamples / (RenderTime * 24 * 60 * 60)]));
strOutput.Add(' Pure rendering time:' + TimeToString(RenderTime));
2005-03-25 03:35:39 -05:00
end;
///////////////////////////////////////////////////////////////////////////////
function TBaseRenderer.GetImage: TBitmap;
2005-03-25 03:35:39 -05:00
begin
if FStop > 0 then begin
assert(false);
FImageMaker.OnProgress := OnProgress;
FImageMaker.CreateImage;
end;
Result := FImageMaker.GetImage;
2005-03-25 03:35:39 -05:00
end;
///////////////////////////////////////////////////////////////////////////////
function TBaseRenderer.GetTransparentImage: TPngObject;
begin
if FStop > 0 then begin
2006-09-06 08:34:00 -04:00
Trace('WARNING: Trying to get unprepared image!?');
Result := nil;
// FImageMaker.OnProgress := OnProgress;
// FImageMaker.CreateImage;
end
else
Result := FImageMaker.GetTransparentImage;
end;
2005-03-25 03:35:39 -05:00
///////////////////////////////////////////////////////////////////////////////
procedure TBaseRenderer.UpdateImage(CP: TControlPoint);
begin
FCP.background := cp.background;
FCP.spatial_filter_radius := cp.spatial_filter_radius;
FCP.gamma := cp.Gamma;
FCP.vibrancy := cp.vibrancy;
FCP.contrast := cp.contrast;
FCP.brightness := cp.brightness;
FImageMaker.SetCP(FCP);
FImageMaker.Init;
FImageMaker.OnProgress := OnProgress;
FImageMaker.CreateImage;
end;
///////////////////////////////////////////////////////////////////////////////
procedure TBaseRenderer.SaveImage(const FileName: String);
begin
if FStop > 0 then begin
2006-09-06 08:34:00 -04:00
TimeTrace(Format('Creating image with quality = %f', [fcp.actual_density]));
FImageMaker.OnProgress := OnProgress;
FImageMaker.CreateImage;
end;
2006-09-06 08:34:00 -04:00
TimeTrace('Saving image');
FImageMaker.SaveImage(FileName);
end;
///////////////////////////////////////////////////////////////////////////////
procedure TBaseRenderer.CreateColorMap;
var
i: integer;
begin
for i := 0 to 255 do
with ColorMap[i] do begin
Red := (fcp.CMap[i][0] * fcp.white_level) div 256;
Green := (fcp.CMap[i][1] * fcp.white_level) div 256;
Blue := (fcp.CMap[i][2] * fcp.white_level) div 256;
end;
end;
2005-03-25 03:35:39 -05:00
///////////////////////////////////////////////////////////////////////////////
procedure TBaseRenderer.CreateCamera;
var
scale: double;
t0, t1: double;
t2, t3: double;
corner_x, corner_y, Xsize, Ysize: double;
shift: Integer;
2005-03-25 03:35:39 -05:00
begin
scale := power(2, fcp.zoom);
sample_density := fcp.sample_density * scale * scale;
ppux := fcp.pixels_per_unit * scale;
ppuy := fcp.pixels_per_unit * scale;
// todo field stuff
shift := 0;
corner_x := fcp.center[0] - fcp.Width / ppux / 2.0;
corner_y := fcp.center[1] - fcp.Height / ppuy / 2.0;
t0 := gutter_width / (oversample * ppux);
t1 := gutter_width / (oversample * ppuy);
t2 := (2 * max_gutter_width - gutter_width) / (oversample * ppux);
t3 := (2 * max_gutter_width - gutter_width) / (oversample * ppuy);
camX0 := corner_x - t0;
camY0 := corner_y - t1 + shift;
camX1 := corner_x + fcp.Width / ppux + t2;
camY1 := corner_y + fcp.Height / ppuy + t3; //+ shift;
camW := camX1 - camX0;
if abs(camW) > 0.01 then
Xsize := 1.0 / camW
else
Xsize := 1;
camH := camY1 - camY0;
if abs(camH) > 0.01 then
Ysize := 1.0 / camH
else
Ysize := 1;
bws := (BucketWidth - 0.5) * Xsize;
bhs := (BucketHeight - 0.5) * Ysize;
if FCP.FAngle <> 0 then
begin
cosa := cos(FCP.FAngle);
sina := sin(FCP.FAngle);
rcX := FCP.Center[0]*(1 - cosa) - FCP.Center[1]*sina - camX0;
rcY := FCP.Center[1]*(1 - cosa) + FCP.Center[0]*sina - camY0;
end;
2005-03-25 03:35:39 -05:00
end;
///////////////////////////////////////////////////////////////////////////////
procedure TBaseRenderer.CreateCameraMM;
var
scale: double;
t0, t1: double;
corner_x, corner_y, Xsize, Ysize: double;
shift: Integer;
2005-03-25 03:35:39 -05:00
begin
scale := power(2, fcp.zoom);
sample_density := fcp.sample_density * scale * scale;
ppux := fcp.pixels_per_unit * scale;
ppuy := fcp.pixels_per_unit * scale;
// todo field stuff
shift := 0;
t0 := gutter_width / (oversample * ppux);
t1 := gutter_width / (oversample * ppuy);
corner_x := fcp.center[0] - image_width / ppux / 2.0;
corner_y := fcp.center[1] - image_height / ppuy / 2.0;
camX0 := corner_x - t0;
camY0 := corner_y - t1 + shift;
camX1 := corner_x + image_width / ppux + t0;
camY1 := corner_y + image_height / ppuy + t1; //+ shift;
camW := camX1 - camX0;
if abs(camW) > 0.01 then
Xsize := 1.0 / camW
else
Xsize := 1;
camH := camY1 - camY0;
if abs(camH) > 0.01 then
Ysize := 1.0 / camH
else
Ysize := 1;
bws := (BucketWidth - 0.5) * Xsize;
bhs := (BucketHeight - 0.5) * Ysize;
if FCP.FAngle <> 0 then
begin
cosa := cos(FCP.FAngle);
sina := sin(FCP.FAngle);
rcX := image_Center_X*(1 - cosa) - image_Center_Y*sina - camX0;
rcY := image_Center_Y*(1 - cosa) + image_Center_X*sina - camY0;
end;
2005-03-25 03:35:39 -05:00
end;
///////////////////////////////////////////////////////////////////////////////
procedure TBaseRenderer.CalcBufferSize;
2005-03-25 03:35:39 -05:00
begin
oversample := fcp.spatial_oversample;
max_gutter_width := (MAX_FILTER_WIDTH - oversample) div 2;
gutter_width := (FImageMaker.GetFilterSize - oversample) div 2;
BucketWidth := oversample * fcp.Width + 2 * max_gutter_width;
BucketHeight := oversample * fcp.Height + 2 * max_gutter_width;
BucketSize := BucketWidth * BucketHeight;
end;
2005-03-25 03:35:39 -05:00
procedure TBaseRenderer.CalcBufferSizeMM;
begin
oversample := fcp.spatial_oversample;
gutter_width := (FImageMaker.GetFilterSize - oversample) div 2;
BucketHeight := oversample * image_height + 2 * gutter_width;
Bucketwidth := oversample * image_width + 2 * gutter_width;
BucketSize := BucketWidth * BucketHeight;
2005-03-25 03:35:39 -05:00
end;
2005-05-01 04:01:31 -04:00
///////////////////////////////////////////////////////////////////////////////
procedure TBaseRenderer.InitBuffers;
2006-09-06 08:34:00 -04:00
const
error_string = 'ERROR: Not enough memory for this render!';
var
2006-09-06 08:34:00 -04:00
bits: integer;
2005-05-01 04:01:31 -04:00
begin
bits := GetBits;
CalcBufferSize;
try
2006-09-06 08:34:00 -04:00
TimeTrace(Format('Allocating %n Mb of memory', [BucketSize * SizeOfBucket[bits] / 1048576]));
2006-09-06 08:34:00 -04:00
AllocateBuckets; // SetLength(buckets, BucketHeight, BucketWidth);
except
on EOutOfMemory do begin
if Assigned(strOutput) then
2006-09-06 08:34:00 -04:00
strOutput.Add(error_string)
else
2006-09-06 08:34:00 -04:00
Application.MessageBox(error_string, 'Apophysis', 48);
BucketWidth := 0;
BucketHeight := 0;
2006-09-06 08:34:00 -04:00
FStop := 1;
exit;
end;
end;
2005-05-01 04:01:31 -04:00
// share the buffer with imagemaker
FImageMaker.SetBucketData(GetBucketsPtr, BucketWidth, BucketHeight, bits);
2005-05-01 04:01:31 -04:00
end;
2005-03-25 03:35:39 -05:00
///////////////////////////////////////////////////////////////////////////////
procedure TBaseRenderer.Render;
2005-03-25 03:35:39 -05:00
begin
if fcp.NumXForms <= 0 then exit;
FStop := 0; //False;
FImageMaker.SetCP(FCP);
FImageMaker.Init;
InitBuffers;
if FStop <> 0 then exit; // memory allocation error?
CreateColorMap;
Prepare;
CreateCamera;
if not FRenderOver then ClearBuckets;
RenderTime := Now;
SetPixels;
RenderTime := Now - RenderTime;
if FStop <= 0 then begin
2006-09-06 08:34:00 -04:00
if fcp.sample_density = fcp.actual_density then
TimeTrace('Creating image')
else
TimeTrace(Format('Creating image with quality = %f', [fcp.actual_density]));
FImageMaker.OnProgress := OnProgress;
FImageMaker.CreateImage;
end;
2005-03-25 03:35:39 -05:00
end;
///////////////////////////////////////////////////////////////////////////////
procedure TBaseRenderer.RenderMM;
const
Dividers: array[0..15] of integer = (1, 2, 3, 4, 5, 6, 7, 8, 10, 16, 20, 32, 64, 128, 256, 512);
var
ApproxMemory, MaxMemory: int64;
i: integer;
zoom_scale, center_base, center_y: double;
t: TDateTime;
begin
FStop := 0; //False;
image_Center_X := fcp.center[0];
image_Center_Y := fcp.center[1];
image_Height := fcp.Height;
image_Width := fcp.Width;
oversample := fcp.spatial_oversample;
// entered memory - imagesize
MaxMemory := FMaxMem * 1024 * 1024 - 4 * image_Height * int64(image_Width);
ApproxMemory := SizeOfBucket[GetBits] * sqr(oversample) * image_Height * int64(image_Width);
assert(MaxMemory > 0);
if MaxMemory <= 0 then exit;
FNumSlices := 1 + ApproxMemory div MaxMemory;
if FNumSlices > Dividers[High(Dividers)] then begin
for i := High(Dividers) downto 0 do begin
if image_height <> (image_height div dividers[i]) * dividers[i] then begin
FNumSlices := dividers[i];
break;
end;
end;
end else begin
for i := 0 to High(Dividers) do begin
if image_height <> (image_height div dividers[i]) * dividers[i] then
continue;
if FNumSlices <= dividers[i] then begin
FNumSlices := dividers[i];
break;
end;
end;
end;
FImageMaker.SetCP(FCP);
FImageMaker.Init;
fcp.height := fcp.height div FNumSlices;
center_y := fcp.center[1];
zoom_scale := power(2.0, fcp.zoom);
center_base := center_y - ((FNumSlices - 1) * fcp.height) / (2 * fcp.pixels_per_unit * zoom_scale);
image_height := fcp.Height;
image_Width := fcp.Width;
InitBuffers;
CreateColorMap;
Prepare;
RenderTime := 0;
for i := 0 to FNumSlices - 1 do begin
if FStop <> 0 then Exit;
FSlice := i;
fcp.center[1] := center_base + fcp.height * slice / (fcp.pixels_per_unit * zoom_scale);
CreateCameraMM;
ClearBuckets;
2006-09-19 12:04:24 -04:00
fcp.actual_density := 0;
t := Now;
SetPixels;
RenderTime := RenderTime + (Now - t);
if FStop = 0 then begin
2006-09-06 08:34:00 -04:00
TimeTrace('Creating image');
FImageMaker.OnProgress := OnProgress;
FImageMaker.CreateImage(Slice * fcp.height);
end;
end;
fcp.height := fcp.height * FNumSlices;
end;
2005-03-25 03:35:39 -05:00
///////////////////////////////////////////////////////////////////////////////
//
// { TRenderer }
//
///////////////////////////////////////////////////////////////////////////////
destructor TRenderer.Destroy;
2005-03-25 03:35:39 -05:00
begin
if assigned(FRenderer) then
FRenderer.Free;
2005-03-25 03:35:39 -05:00
inherited;
end;
///////////////////////////////////////////////////////////////////////////////
function TRenderer.GetImage: TBitmap;
2005-03-25 03:35:39 -05:00
begin
Result := nil;
if assigned(FRenderer) then
Result := FRenderer.GetImage;
2005-03-25 03:35:39 -05:00
end;
///////////////////////////////////////////////////////////////////////////////
procedure TRenderer.SetCP(CP: TControlPoint);
2005-03-25 03:35:39 -05:00
begin
FCP := CP;
2005-03-25 03:35:39 -05:00
end;
///////////////////////////////////////////////////////////////////////////////
procedure TRenderer.Render;
2005-05-01 04:01:31 -04:00
begin
if assigned(FRenderer) then
FRenderer.Free;
assert(Fmaxmem=0);
2006-09-06 08:34:00 -04:00
// if FMaxMem = 0 then begin
FRenderer := TRenderer32.Create;
2006-09-06 08:34:00 -04:00
// end else begin
// FRenderer := TRenderer32MM.Create;
// FRenderer.MaxMem := FMaxMem
// end;
2005-05-01 04:01:31 -04:00
FRenderer.SetCP(FCP);
FRenderer.OnProgress := FOnProgress;
FRenderer.Render;
2005-05-01 04:01:31 -04:00
end;
2005-03-25 03:35:39 -05:00
///////////////////////////////////////////////////////////////////////////////
procedure TRenderer.Stop;
begin
if assigned(FRenderer) then
FRenderer.Stop;
end;
2005-03-25 03:35:39 -05:00
end.