View previous topic :: View next topic |
Author |
Message |
worldspawn
Joined: 02 Dec 2008 Posts: 26
|
Posted: Sun Sep 27, 2009 10:56 pm Post subject: I need help with drawline! |
|
|
Okay, I can't figure it out for the life of me.
Code: |
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: |
drawline(float width, vector pos1, vector pos2, vector rgb, float alpha, float flags)
|
Obviously I'm setting the values wrong, but which ones?!  |
|
Back to top |
|
 |
Spike
Joined: 05 Nov 2004 Posts: 944 Location: UK
|
Posted: Mon Sep 28, 2009 12:05 am Post subject: |
|
|
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). _________________ What's a signature? |
|
Back to top |
|
 |
frag.machine

Joined: 25 Nov 2006 Posts: 728
|
Posted: Tue Sep 29, 2009 12:58 am Post subject: |
|
|
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 ? _________________ frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/ |
|
Back to top |
|
 |
ceriux

Joined: 06 Sep 2008 Posts: 969 Location: Florida, USA
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2004 phpBB Group
|