Jump to content

  • Log In with Google      Sign In   
  • Create Account


OpenGL Lighting and C++ Builder


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 atcdevil   Members   -  Reputation: 145

Like
Likes
Like

Posted 19 August 2001 - 04:30 AM

I wrote a minimal Windows program in C++ Builder, no VCL or any of that. I set up OpenGL and then I tried to enable lighting. The line glEnable(GL_LIGHTING); will cause me to receive a run-time error, that says floating point division by zero error. The program will then freeze and shut down or whatever. I sent the exact code that gave me this error to my friend. He compiled it in Microsoft Visual C++. It ran perfectly fine. Now eventually I''m going to want to use lighting in my programs. Anyone know what I can do to fix this?

Sponsor:

#2 MButchers   Members   -  Reputation: 123

Like
Likes
Like

Posted 20 August 2001 - 09:30 PM

hi there,

when using opengl with borland compilers you need to
disable floating point exceptions.

in delphi you use ''Set8087CW($133F);'' in c++builder its
something simular but io cannot remember what. I think
it may be on the opengl web site under FAQ''s.

I have the code at hame and will post it here tonight.

Cheers

Mark

#3 MButchers   Members   -  Reputation: 123

Like
Likes
Like

Posted 21 August 2001 - 12:09 PM

its the same !!!





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS