Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   openGL wglUseFontBitmaps auch 3 dimensional ? (https://www.delphipraxis.net/181073-opengl-wglusefontbitmaps-auch-3-dimensional.html)

luisk 13. Jul 2014 09:44

openGL wglUseFontBitmaps auch 3 dimensional ?
 
Hallo,
hab da ein Problem mit wglUseFontBitmaps
ich kann die Schriften nur 2 dimensional darstellen.
Geht das evtl auch 3-dimensional?

init:
Delphi-Quellcode:
 lFont := TFont.Create; // Instanz einer Fontklasse erstellen
  try
    lFont.Name := 'arial'; // Name
    lFont.Size := 32;               // Schriftgröße
    lFont.Style := [fsBold];        // Styles (fsBold, fsItalic, ...)
 
 
    SelectObject(h_DC, lFont.Handle);             // Font auf einen Device Context benutzen
    wglUseFontBitmaps (h_DC, 0, 255, base); // Mit selektiertem Font Zeichen erstellen
  finally
    FreeAndNil(lFont); // erstellte Instanz wieder frei geben
  end;
zeichnen:
Delphi-Quellcode:
 glTranslatef(-delka/2,0.0,0.0);                
  glPushAttrib(GL_LIST_BIT);                            
   glRasterPos3f(-0.1,0,-1);
   glrotatef(0.5,0,1,0);
  glListBase(base);                                      
  glCallLists(length(text),GL_UNSIGNED_BYTE,Pchar(text));
  glPopAttrib;
  sleep(50);


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:35 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz