123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|660|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> C++ OpenGL headers - some not needed?

Fri, 15 Sep 2006, 02:48
HoboBen
All/most the NeHe OpenGL tutorials start with...



However, commenting out gl\glu.h and gl\gl.h, it still works. As I've been taught not to include libraries that I don't need, why are these included when they don't make a difference? Are they left in for use when the project expands and they may eventually be needed?

Muchly thank you.

-=-=-
blog | work | code | more code
Fri, 15 Sep 2006, 03:26
Jayenkai
Check through gl\glaux.h, and see if that includes the other two at any point. (But keep in mind I'm not really that good at C, so I may be talking garbage!)

-=-=-
''Load, Next List!''
Fri, 15 Sep 2006, 03:36
HoboBen
You're right - gl\glaux.h contains includes for gl\gl.h and gl\glu.h

Does sticking them in anyway cause them to be included twice?

-=-=-
blog | work | code | more code
Fri, 15 Sep 2006, 04:01
Jayenkai
*shrugs* I don't know!
Fri, 15 Sep 2006, 15:18
HoboBen
Ok, thank you anyway.