Inside3D!
     

I need help with drawline!

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
worldspawn



Joined: 02 Dec 2008
Posts: 26

PostPosted: Sun Sep 27, 2009 10:56 pm    Post subject: I need help with drawline! Reply with quote

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?! Confused
Back to top
View user's profile Send private message Visit poster's website
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Mon Sep 28, 2009 12:05 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
frag.machine



Joined: 25 Nov 2006
Posts: 728

PostPosted: Tue Sep 29, 2009 12:58 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
ceriux



Joined: 06 Sep 2008
Posts: 969
Location: Florida, USA

PostPosted: Tue Sep 29, 2009 1:46 am    Post subject: Reply with quote

um i think you might be right.
_________________
QuakeDB - Quake ModDB Group
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
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