GDIndex.gif Previous-2.gif Next-3.gif

GDmodes_xxxx- GD API


Synopsis

access the Graphics Display Kit modes

GDmodes_get_xxxx

void   GDmodes_get_mode ( modes_id ,  int  * mode );
void   GDmodes_get_normals ( modes_id ,  int  * normals );
void   GDmodes_get_colors ( modes_id ,  int  * colors );

OMobj_id   modes_id ;

 

GDmodes_set_xxxx

void   GDmodes_set_points ( modes_id ,  int   points  );
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 ;

 

GDmodes_delete

void   GDmodes_delete (
NULL,
OMobj_id   modes_id ,
0,
GDmodes  * modes  );

 

GDmodes_reset

void   GDmodes_reset (GDmodes  * modes );

Description

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.

Parameters

modes_id

The id of a modes object.

Other get/set parameters

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.

modes

(GDmodes_delete only)  The modes object's local pointer. To get this value, call GDget_local.

Example


/* 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);

 



GDIndex.gif Previous-2.gif Next-3.gif