I need help with drawline!
Moderator: InsideQC Admins
4 posts
• Page 1 of 1
I need help with drawline!
Okay, I can't figure it out for the life of me.
Neither of these will show up.
Obviously I'm setting the values wrong, but which ones?!
- Code: Select all
drawline(1, '0 0 0', '500 0 0','0 150 0', 0, 0);
drawline(1, '0 0 0', '0 500 0','0 150 0', 0, 0);
Neither of these will show up.
- Code: Select all
drawline(float width, vector pos1, vector pos2, vector rgb, float alpha, float flags)
Obviously I'm setting the values wrong, but which ones?!
- worldspawn
- Posts: 27
- Joined: Tue Dec 02, 2008 11:44 pm
void (float width, vector rgb, float alpha, float flags, vector pos1, ...) drawline =#315;
is the argument list used in fte's drawline builtin. its only supported in gl (a no-op otherwise), and the width is assumed to always be 1.
You can pass 4 points and draw 3 lines in one call (QC does not support more than 8 args, at least to builtins).
is the argument list used in fte's drawline builtin. its only supported in gl (a no-op otherwise), and the width is assumed to always be 1.
You can pass 4 points and draw 3 lines in one call (QC does not support more than 8 args, at least to builtins).
- Spike
- Posts: 2892
- Joined: Fri Nov 05, 2004 3:12 am
- Location: UK
I know nothing about CSQC so bear with my ignorance, but usually in OpenGL alpha values ranges from 1.0f (solid) to 0.0f (invisible). Isn't that the case ?
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC
(LordHavoc)
-

frag.machine - Posts: 2090
- Joined: Sat Nov 25, 2006 1:49 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
