SilverScreen Solid Modeler

draw_world_line

draw_world_line

Previous topic Next topic  

draw_world_line

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

Antiquated

 

void draw_world_line ( SS_XYZ *p1, SS_XYZ *p2, int color )

 

SS_XYZ *p1;            // world point 1

SS_XYZ *p2;            // world point 2

int     color;         // color to use

 

 




Synopsis

#include "silver.h"

 

The draw_world_line function draws a line on the screen in the specified color, between the two world points specified by p1 and p2 .

 

 

Parameters

p1 and p2 are the addresses of two SS_XYZs, representing two points in world space. color is a color number in the range of 0 to 255, which may have the following flags or'ed in (as defined in silver.h):

 

Name

Value

Meaning

COLOR_WIDE

0x4000

draw the specified line in wide line

COLOR_INVERSE

0x2000

draw the specified line by xor'ing the screen with a line of the specified color and width, and save the line information away, so that it may be cleared by a subsequent call to refresh_lines .

 

 

Return Value

none

 

 

Comments

The 2D projection of the 3D line between the points may not lie within the bounds of the current window.

 

draw_world_line has been superseded by draw_world_line_rgb.

 

See Also

draw_rgb_line , draw_point , draw_world_point , refresh_lines , clear_away_lines