SilverScreen Solid Modeler

draw_world_point

draw_world_point

Previous topic Next topic  

draw_world_point

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void draw_world_point ( SS_XYZ *p, int color )

 

SS_XYZ *p;             // a world point

int     color;         // color to use

 

 




Synopsis

#include "silver.h"

 

The draw_world_point function draws a pixel on the screen in the specified color, at the point specified by the world point p .

 

 

Parameters

p is the address of an SS_XYZ , representing a point 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 point may not lie within the bounds of the current window.

 

 

See Also

draw_rgb_line , draw_point , draw_world_line , refresh_lines , clear_away_lines