[fpc-pascal] How to use OpenGL 2.0 fatures
dmitry boyarintsev
skalogryz.lists at gmail.com
Sat May 9 20:29:51 CEST 2009
Hello Lord Satan
uses
...gl, glext...
...
if not Load_GL_version_2_0 then begin
writeln('OpenGL 2.0 is not supported');
Halt;
end;
...
Load_GL_version_2_0 function is declared at glext unit.
you should call it before calling ANY 2.0 OpenGL function.
also check out functions result, to see if an opengl driver supports
2.0 version.
ANY OS must call it (both Linux and OSX), otherwise function variables
are not initialized!
thanks,
dmitry
More information about the fpc-pascal
mailing list