Files |  Tutorials |  Articles |  Links |  Home |  Team |  Forum |  Wiki |  Impressum

Aktuelle Zeit: Fr Jul 18, 2025 15:16

Foren-Übersicht » English » English Programming Forum
Unbeantwortete Themen | Aktive Themen



Ein neues Thema erstellen Auf das Thema antworten  [ 3 Beiträge ] 
Autor Nachricht
 Betreff des Beitrags: opengl1.5 and ppointer?
BeitragVerfasst: Sa Okt 04, 2003 22:33 
Offline
DGL Member
Benutzeravatar

Registriert: Di Jul 01, 2003 18:59
Beiträge: 887
Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
What is a ppointer?

I tried using the opengl 1.5 units, but it could not compile. Only after commenting out the lines that contained ppointer i was able to compile it.

I can think of it as an pointer to an pointer, but why would one use such an construction?

_________________
http://3das.noeska.com - create adventure games without programming


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Sa Okt 04, 2003 22:40 
Offline
DGL Member
Benutzeravatar

Registriert: Mo Sep 23, 2002 19:27
Beiträge: 5812
Programmiersprache: C++
Yes, a PPointer is a pointer to a pointer and although it won't make much sense in the first place, a pointer to a pointer is a widely used concept (in C++ more, in Delphi less) so it's nothing special.Under Delphi7 this PPointer is defined in the system.pas so just put PPointer = ^Pointer somewhere at the beginning of our dglOpenGL.pas and it should work.
As far as I've looked through our unit this pointer to a pointer is only used by two functions for the glutesselator, and maybe it's there because they store something this way.But as it's nothing important you shouldn't worry too much.

_________________
www.SaschaWillems.de | GitHub | Twitter | GPU Datenbanken (Vulkan, GL, GLES)


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: So Okt 05, 2003 18:52 
Offline
DGL Member

Registriert: Di Sep 17, 2002 20:37
Beiträge: 58
for instance, a pointer to pointer structure is used for
building/handling a kind of a pointer array


char **argv or char *argv[]
|
v
[p]-->[szAppParam1] (pointer to zero terminated string)
[p]-->[szAppParam2]
[p]-->[szAppParam3]
[p]-->[szAppParam4]

you can iterate through the strings by argv++ selecting the next pointer to szAppParamN from the "array"

_________________
...


Nach oben
 Profil  
Mit Zitat antworten  
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 3 Beiträge ] 
Foren-Übersicht » English » English Programming Forum


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 3 Gäste


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Gehe zu:  
  Powered by phpBB® Forum Software © phpBB Group
Deutsche Übersetzung durch phpBB.de
[ Time : 0.007s | 16 Queries | GZIP : On ]