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
Either I can't count or OpenGL can't count ! ! ! ! !
------------------------------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
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]
February 23, 2001 06:04 AM
u think thats a lot check what im working on at the moment a shot soon to be in the IOTD at flipcode
February 23, 2001 06:04 AM
u think thats a lot check what im working on at the moment a shot soon to be in the IOTD at flipcode
February 23, 2001 06:06 AM
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement