Tremulous Forum

Mods => Modding Center => Topic started by: doomagent13 on August 15, 2007, 12:10:15 am

Title: vectors
Post by: doomagent13 on August 15, 2007, 12:10:15 am
Does anyone know where I can find the bodies of the various Vector* methods?  In particular, I would like the "VectorMA" method body.
Title: vectors
Post by: tehOen on August 15, 2007, 12:20:43 am
q_math.c q_shared.h q_shared.c
Title: vectors
Post by: /dev/humancontroller on August 15, 2007, 12:22:05 am
Please learn to use grep or your IDE's "go to definition" function.

By default (#if 1), q_shared.h defines C macros near line 408. Otherwise it declares (through #define-style typedefs) real functions, that reside in q_math.c, below line 1090.

EDIT: too slow.
tehOen: q_shared.c?
Title: vectors
Post by: doomagent13 on August 15, 2007, 12:33:41 am
Thanks.  My OS's search function was naming practically every source file for tremulous.
Title: vectors
Post by: Eeeew Spiders on August 15, 2007, 12:49:58 pm
Quote from: "doomagent13"
Thanks.  My OS's search function was naming practically every source file for tremulous.

Quote from: "/dev/humancontroller"
Please learn to use grep or your IDE's "go to definition" function.


if you are using windows and don't have a proper IDE, use atleast something like Notepad++ (http://sourceforge.net/projects/notepad-plus/) or Textpad (http://textpad.com/), that feature search in files. I am sure other OS's have free good editors too.
Title: vectors
Post by: tehOen on August 15, 2007, 01:02:38 pm
SciTe all the way :D
works both on linux and win, linux version has gtk interface and windows version has win32 interface. so it looks quite native on both OS
Title: vectors
Post by: kevlarman on August 15, 2007, 04:19:12 pm
EMAC*gets punched out by a vim user*
Title: vectors
Post by: doomagent13 on August 15, 2007, 04:26:28 pm
I have a MAC...

I use XCode to code in, and terminal to compile.
Title: vectors
Post by: kevlarman on August 15, 2007, 04:29:54 pm
Quote from: "doomagent13"
I have a MAC...

I use XCode to code in, and terminal to compile.
the vim thing should have been a hint that an S was cut off...(EMACS meant Editor MACroS long before you guys stole it for the name a computer (in fact it has existed longer than apple as a company))
Title: vectors
Post by: Taiyo.uk on August 15, 2007, 06:58:01 pm
Yay editor wars!
Title: vectors
Post by: kevlarman on August 15, 2007, 08:32:54 pm
Quote from: "Taiyo.uk"
Yay editor wars!
GNU EMACS vs Apple Emacs, this is clearly an OS war and not an editor war  :D
Title: vectors
Post by: Samurai.mac on August 16, 2007, 01:10:28 pm
Quote from: "doomagent13"
terminal to compile.

If I may go further off topic for a moment, how do you use Terminal to compile code from Xcode?
Title: vectors
Post by: benmachine on August 16, 2007, 02:31:58 pm
gcc and make. gcc takes a little getting used to, but make is really as simple as that.

Code: [Select]
cd /tremulous/source/folder/
make
Title: vectors
Post by: doomagent13 on August 16, 2007, 09:11:45 pm
I just use XCode to edit code in because it color-codes things.

For example, comments are red, strings/characters are green, constant numbers are blue, and preprocessor commands are brown.