Advertisement

Either I can't count or OpenGL can't count ! ! ! ! !

Started by February 16, 2001 02:16 PM
30 comments, last by PCI 23 years, 9 months ago
A couple of people need to start reading more of the post before replying! That problem was already solved.

I posted an update to the q&a page I wrote (link above) to include variables in multiple source files.

Anyone that's interested in writing any quick tutorials or a q&a page on c/c++, OpenGL or anything else please feel free to submit them to me and I'll add them to my site.

Edited by - avianRR on February 23, 2001 1:27:05 AM
------------------------------Piggies, I need more piggies![pig][pig][pig][pig][pig][pig]------------------------------Do not invoke the wrath of the Irken elite. [flaming]
Why would anyone want to use more than one source file? Sorry if you already answered this in one of the other million posts in this thread In my game I have about 30,000 lines in my one main.cpp and it runs fine
Advertisement
Why would anyone want to use more than one source file? Sorry if you already answered this in one of the other million posts in this thread In my game I have about 30,000 lines in my one main.cpp and it runs fine
well, more than one source file makes the program easier to read and debug i suppose
The project I''m currently working on consist''s of 27 *.cpp files and 22 *.h files. In total there are about 4500 lines of code in the cpp files alone and more in the headers. Now try to keep track of where in one file where a specific function that''s say 10 lines long is! It comes out to be about .2% of the file, the phrase "needle in a haystack" comes to mind when I think of doing that! Not only is it usefull to break the code into seprate files it also makes it nice for reusable code. like my vector, matrix, quaternion and ray classes. each has it''s own file and can be added to any project I want without haveing to rewrite or cut and paste the code.
------------------------------Piggies, I need more piggies![pig][pig][pig][pig][pig][pig]------------------------------Do not invoke the wrath of the Irken elite. [flaming]
u think thats a lot check what im working on at the moment a shot soon to be in the IOTD at flipcode
Advertisement
u think thats a lot check what im working on at the moment a shot soon to be in the IOTD at flipcode
u think thats a lot check what im working on at the moment a shot soon to be in the IOTD at flipcode
u think thats a lot check what im working on at the moment a shot soon to be in the IOTD at flipcode
u think thats a lot check what im working on at the moment a shot soon to be in the IOTD at flipcode

http://members.xoom.com/myBollux

This topic is closed to new replies.

Advertisement