Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 26th, 2004, 07:44 PM
Registered User
 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can someone help me understand Quake III's code

I'm a bit ahead in our programming class, so I decided to look at the code of Quake III instead of do the regular assignments. Trouble is, the teacher is so busy helping the other students (only on while statements!), he's left me to fend more or less for myself. So, I'm having a little trouble, needless to say.

First off, how do the header files distinguish any of the code? There aren't even other header files included in them. How does it know #declare is a command and not a really big number? Second, its declaring all those variables to be numbers. Some numbers are equal to others, yet do different things. How is this possible? Third, I don't see anywhere where these header files are used. There are "shader files" (I have no clue what they are, but that's what they're called). Those aren't c++ though. I also can't use any of the declared variables in Quake III. Shouldn't I be able to?

Plz reply.
Reply With Quote
  #2 (permalink)  
Old September 26th, 2004, 09:58 PM
Registered User
 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey come on guys. Help a fellow programmer.:(

Reply With Quote
  #3 (permalink)  
Old March 23rd, 2005, 08:09 PM
Registered User
 
Join Date: Mar 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

could you let me take a look at the source.

Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
understand a piece of code in assembler rbulus BOOK: Professional Assembly Language 1 January 10th, 2010 07:45 AM
Trying to understand this line of code chriscym XSLT 2 April 17th, 2007 10:48 PM
I still do not understand aude_poullain ASP.NET 1.0 and 1.1 Basics 2 February 7th, 2007 09:11 PM
can't understand this code I downloaded am6019a VB How-To 1 July 7th, 2006 09:11 AM
i need to understand this wrox code saudyonline General .NET 2 October 31st, 2004 12:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.