SilverScreen Solid Modeler

draw_world_line_rgb

draw_world_line_rgb

Previous topic Next topic  

draw_world_line_rgb

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void draw_world_line_rgb ( SS_XYZ *p1, SS_XYZ *p2, RGB rgb, int mode )

 

SS_XYZ *p1;       // world point 1

SS_XYZ *p2;       // world point 2

RGB     rgb;      // rgb to use

int     mode;     // width and inverse control

 

 




Synopsis

#include "silver.h"

 

The draw_world_line_rgb 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. rgb is an rgb color number as constructed by MAKE_RGB. mode 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.

 

 

See Also

draw_rgb_line , draw_point , draw_world_point , refresh_lines , clear_away_lines