![]() |
![]() ![]() |
access the Graphics Display Kit modes
void GDmodes_get_normals ( modes_id , int * normals );
void GDmodes_get_colors ( modes_id , int * colors );
OMobj_id modes_id ;
void GDmodes_set_lines ( modes_id , int lines );
void GDmodes_set_surf ( modes_id , int surf );
void GDmodes_set_volume ( modes_id , int volume );
void GDmodes_set_bounds ( modes_id , int bounds );
void GDmodes_set_normals ( modes_id , int normals );
void GDmodes_set_colors ( modes_id , int colors );
OMobj_id modes_id ;
NULL,
OMobj_id modes_id ,
0,
GDmodes * modes );
These routines are used to access the Graphics Display Kit modes.
The GDmodes_get_xxxx routines get the subobject values of the modes. The GDmodes_set_xxxx routines set the subobject values of the modes. These routines are used by the Graphics Display Kit modes editor (i.e., GDmodes_edit).
GDmodes_delete deletes the modes. This method is called directly by the Object Manager when the modes are deleted.
GDmodes_reset resets the mode's subobjects to their default values. The default values are those in specified in DefaultModes.
To create an instance of modes, call the utility routine GDcreate_instance.
The other parameters in the get/set routines correspond to subobjects of the modes object. Symbolic constants are available for most parameters.
For details, including a listing of symbolic constants, see DefaultModes .
The mode parameter is a five-element array.
(GDmodes_delete only) The modes object's local pointer. To get this value, call GDget_local.
/* Get and set a modes object's cull subobject. */
OMobj_id modes_id; /* Assume this has been set. */
int cull;
...
GDmodes_get_cull(modes_id, &cull);
cull = OM_BACKFACE_CULL_BACK;
GDmodes_set_show(modes_id, cull);
![]() |
![]() ![]() |