[fpc-pascal] How to use OpenGL 2.0 fatures

Lord Satan reimgrab at web.de
Sat May 9 16:56:49 CEST 2009


Hi all,

I am trying to use FPCs OpenGL bindings instead of my own under Linux.
But just replacing my bindings with the FPC ones does not seem to be enough as I get a segfault.
GDB shows that using a OpenGL 2.0 core function crashes my program.
I have seen that there are extension loading routines in glext.pas. Normally this is only needed on Windows (at least neither Linux nor OS X need this) but I think for cross plattform support this technique was introduced.
Does it mean that all other Windows restrictions are also true?
Meaning that only unextended OpenGL 1.2 is directly supported and that all other functions (even if they are core functions in newer OpenGL versions) need to be loaded?
I could not find any documentation about this and would really appreciate it if someone could guide me in the right direction.

S.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



More information about the fpc-pascal mailing list