AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Multimedia Delphi [Andorra]dmFullscreen\dmWindowed dem Display Objekt zuweisen
Thema durchsuchen
Ansicht
Themen-Optionen

[Andorra]dmFullscreen\dmWindowed dem Display Objekt zuweisen

Ein Thema von chaoslion · begonnen am 9. Jul 2008 · letzter Beitrag vom 14. Okt 2010
 
Benutzerbild von pustekuchen
pustekuchen

Registriert seit: 27. Aug 2010
268 Beiträge
 
Delphi 11 Alexandria
 
#10

AW: [Andorra]dmFullscreen\dmWindowed dem Display Objekt zuweisen

  Alt 14. Okt 2010, 16:19
Danke DeddyH

Wer das selbe Problem hat hier sind die zu ersetzenden Codezeilen

TAdDisplay = record ... wird zu

Delphi-Quellcode:
  TAdDisplay = class
    private
      FWidth: Integer;
      FHeight: integer;
      FBitDepth: TAdBitDepth;
      FFreq: integer;
      FDisplayMode: TAdWindowDisplayMode;
    public
      {The width of the video surface.}
      property Width: Integer read FWidth write FWidth;
      {The hieght of the video surface.}
      property Height: Integer read FHeight write FHeight;
      {The bit depth the video surface should be created with. This property only
       affects the fullscreen mode.}

      property BitDepth: TAdBitDepth read FBitDepth write FBitDepth;
      {The horizontal display refresh frequncy. This property only affects the
       fullscreen mode.}

      property Freq:integer read FFreq write FFreq;
      {The mode the display is created in.
       @seealso(TAdDisplayMode)}

      property DisplayMode:TAdWindowDisplayMode read FDisplayMode write FDisplayMode;
  end;
Delphi-Quellcode:
procedure TAdDraw.SetupDisplay;
begin
   [...]
end;
wird zu
Delphi-Quellcode:
procedure TAdDraw.SetupDisplay;
begin
  //Set default display settings
  FDisplay := TAdDisplay.Create;
  FDisplay.Width := 800;
  FDisplay.Height := 600;
  FDisplay.BitDepth := ad32Bit;
  FDisplay.Freq := 0;
  FDisplay.DisplayMode := dmDefault;

  //Set default options
  Options := [aoTextures, aoBlending, aoCulling];
end;
Delphi-Quellcode:
destructor TAdDraw.Destroy
begin
   ...
end
wird zu

Delphi-Quellcode:
destructor TAdDraw.Destroy;
begin
  //Destroy the window object
  if FWnd <> nil then
    FreeAndNil(FWnd);

  //Free all loaded objects
  if AdAppl <> nil then
    Finalize;

  FProperties.Free;
  FSurfaceEventList.Free;
  FDllLoader.Free;
  FLog.Free;
  FDisplay.Free;
    inherited Destroy;
end;
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:56 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz