Advertisement

GL superbible program problems

Started by May 11, 2001 06:42 AM
5 comments, last by bakery2k1 23 years, 9 months ago
I am having trouble getting some of the example programs from the OpenGL Superbible CD to work. One of them is supposed to draw a rectangle bouncing around a window, using: glRectf(x1, y1, x1+rsize, y1+rsize); However I dont get a rectangle at all, just a blank background. It worked on my old laptop, but I recently got a replacement of the same spec. I have run the program under microsoft''s implementation and also SGI, with no luck. However, if you pass numerical values to glRectf, the rectangle is drawn. Any ideas?
Sorry for the double post!
Advertisement
Have you typecast your variables correctly?
Its a demo program, so I hope they have!
It works fine on my home computer, just not on my laptop.
It works fine for me. I''m assuming that your refering to the bounce program in the Superbable 2. You should get a red square bouncing around. You either inadvertently changed the program or you have a problem with your hardware or opengl drivers. Try running the program exe directly from the CD and if you still have problems then you know it wasn''t an inadvertent change to the program.

Joel
I know what I should get, it works fine on my home computer!
I also ran it from the CD, no luck. I guess I have a driver problem, any ideas?
Advertisement
Need more information. What graphics card, OS and driver including version is giving you problems? Some cards your just SOL. My experience is with nVidia cards, but I''m fairly sure someone will help.

Joel

This topic is closed to new replies.

Advertisement