Page 1 of 1

Posted: Sun Jan 12, 2003 1:24 am
by BackupUser
Restored from previous forum. Originally posted by CodeMeister.

A few more questions please:
1. What version of OpenGL are the PB libs(?) based on?
2. Does PB use dynamic or static linking? Are functions
called from dynamically loading at runtime, say,
opengl32.dll, then calling a opengl function?
3. Could someone give me a little background on the
mechanism used to call OpenGL from PB?

I'm asking because I've got an OpenGL simulation partially
coded in C, using the MinGW (gcc based)compiler along with
the MinGW OpenGL .a libs and vendor provided (ATI) .dll files.
If I can port over my existing code to PB by making some syntax
changes to the opengl functions and then re-coding my C
functions (not that many of them at this point) I can save
myself some effort.
That's why I switched to use PureBasic, I'm getting tired of
fighting with C/C++ semantics and yearn for a simpler life... 8^)
Thanks for your help!

"If stupidity got us into this mess, why can't it get us out?"

Posted: Sun Jan 12, 2003 11:34 am
by BackupUser
Restored from previous forum. Originally posted by fred.

OpenGL is simple API call, which means it's exactly like in C/C++. You use the version available on the computer, it's linked at runtime (dynamic). Alomost nothing is statically linked in PB, as it would be non evolutive and space hungry. You can assume than OpenGL in PB is fully supported, may be just 1 or 2
functions which needs double (64 bits floats) are tricky to call (but works).

I hope this help,


Fred - AlphaSND