|
||
int prompt_primitive ( char *message, int p_type, char *buf )
char *message; // prompt message string int p_type; // primitive type mask char *buf; // address of buffer to receive primitive path
|
|
|||||||||||||||||||||||||
Synopsis |
#include "silver.h"
The prompt_primitive function allows the user to select a primitive, based on the p_type filter. The prompt specified by message is displayed at the bottom of the screen. This function uses either pick mode or scan mode to select an entity, depending on the current pick/scan setting.
|
|
||||||||||||||||||||||||
Parameters |
message is a null-terminated string containing a prompt message. buf is the address of a character buffer that is to receive the path of the selected primitive. p_type is an integer specifying the types of primitives that are to be considered for selection. p_type may be composed of any of the following flags or'ed together (as defined in silver.h):
|
|
||||||||||||||||||||||||
Return Value |
If a selection is sucessfully made, the prompt_primitive returns 1 and the path of the selected primitive is copied into buf ; otherwise 0 is returned.
|
|
||||||||||||||||||||||||
See Also |
|
|||||||||||||||||||||||||
|
|