[fpc-pascal]OpenGL/GLUT run time error when I whant compile this code
prologic at prologitech.com
Sat Apr 5 04:16:57 CEST 2003
On Sat, Apr 05, 2003 at 10:02:07AM +0800, Karim Forsthofer wrote:
> I played around with the OpenGL unit, and I wrote some minimal OpenGL code to get a window:
> Here is the code:
> program glbasic;
> gl, glut;
> width = 640;
> height= 480;
> procedure drawthings;
> glClearColor(0.0, 0.0, 0.0, 0.0);
> (*will add some more code*);
> glutInit(@argc, argv);
> glutInitDisplayMode(GLUT_DOUBLE or GLUT_RGB);
> glutInitWindowSize( width, height);
> glutInitWindowPosition(0, 0);
> Now, when I whant to run to code, I get some Run time errors on the console:
> Runtime error 216 at 0x4052F5CA
> Runtime error 216 at 0x0804C1CA
> etc. (about 20 lines)
> 1). I know not a lot of runtime errors, but after succesfully compiling, that isn`t a fpc bug, is it ?
> What is the source of this run time error ? (mesa, fpc or my code ?)
> 2). I think about there isn`t enough code in the drawthings procedure to run succesfull.
> What you think ?
That piece of code runs fine on my machine, except that my display
doesn't support OpenGL GLX Extension :( hehe, need to compile my nvidia
> Karim F.
> Now with e-mail forwarding for only US$5.95/yr
> Powered by Outblaze
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
More information about the fpc-pascal