Hi,
ich hab ein Andorra 2D Error, wie gesagt, und zwar kommt, sobald ich die Anwendung starte:
"The specified graphic plugin is not a valid Andorra 2D plugin!"
Was soll ich tun?
Wo krieg ich ein richtiges Plugin her?
Quell-Code:
Delphi-Quellcode:
procedure TForm1.FormCreate(Sender: TObject);
begin
AdDraw := TAdDraw.Create(Self);
AdDraw.DllName := 'AndorraDX93D.dll';
If AdDraw.Initialize then
begin
Application.OnIdle := Idle;
end
else
begin
ShowMessage('Error while initializing Andorra 2D. Try to use another display'+
'mode or use another video adapter.');
end;
end;
procedure TForm1.FormDestroy(Sender: TObject);
begin
AdDraw.Free;
end;
procedure TForm1.Idle(Sender: TObject; var Done: Boolean);
begin
if AdDraw.CanDraw then
begin
AdDraw.ClearSurface(clBlack);
AdDraw.BeginScene;
//Your code here
AdDraw.EndScene;
AdDraw.Flip;
end;
Done := false;
end;
Danke