Difference between revisions of "Draw circle"
Jump to navigation
Jump to search
(Created page with "'draw_circle' is a new debug-drawing function in quake c in quake enhanced. for these draw calls to be visible sv_cheats has to be set to 1 The function draws a circle centered at the origin vector of the color specified by the colormap argument in the x/y plane. The signature is: draw_circle( vector origin, float radius, float colormap, float lifetime, float depthtest ) = #85; argument description: origin: vector of the center of the circle radius: radius of the circ...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
for these draw calls to be visible sv_cheats has to be set to 1 | for these draw calls to be visible sv_cheats has to be set to 1 | ||
The function draws a circle centered at the origin vector of the color specified by the colormap argument in the x/y plane. | The function draws a circle centered at the origin vector of the color specified by the colormap argument in the x/y plane. | ||
{| class="wikitable" | |||
|+void draw_circle( vector origin, float radius, float colormap, float lifetime, float depthtest ) = #85; | |||
draw_circle( vector origin, float radius, float colormap, float lifetime, float depthtest ) = #85; | !argument name | ||
!type | |||
!description | |||
origin | |- | ||
radius | |origin | ||
colormap | |vector | ||
lifetime | |the center of the circle | ||
depthtest | |- | ||
|radius | |||
|float | |||
|radius of the circle (diameter is 2*radius) | |||
|- | |||
|colormap | |||
|float | |||
|integer index into the color palette( see https://quakewiki.org/wiki/Quake_palette) | |||
|- | |||
|lifetime | |||
|float | |||
|duration in seconds the geometry to stay in the world (setting to 0 or less draws for one frame) | |||
|- | |||
|depthtest | |||
|float (TRUE/FALSE) | |||
|if true then world geometry occludes the drawing, otherwise it will show through things | |||
|} | |||
Non-hosting players cannot see the geo created by these calls regardless of sv_cheats. |
Latest revision as of 07:48, 22 March 2022
'draw_circle' is a new debug-drawing function in quake c in quake enhanced.
for these draw calls to be visible sv_cheats has to be set to 1 The function draws a circle centered at the origin vector of the color specified by the colormap argument in the x/y plane.
argument name | type | description |
---|---|---|
origin | vector | the center of the circle |
radius | float | radius of the circle (diameter is 2*radius) |
colormap | float | integer index into the color palette( see https://quakewiki.org/wiki/Quake_palette) |
lifetime | float | duration in seconds the geometry to stay in the world (setting to 0 or less draws for one frame) |
depthtest | float (TRUE/FALSE) | if true then world geometry occludes the drawing, otherwise it will show through things |
Non-hosting players cannot see the geo created by these calls regardless of sv_cheats.