![]() |
![]() ![]() |
access the Graphics Display Kit texture
void GDtexture_get_alpha ( texture_id , int * alpha );
void GDtexture_get_filter ( texture_id , int * filter );
void GDtexture_get_type ( texture_id , int * type );
OMobj_id texture_id ;
void GDtexture_set_alpha ( texture_id , int alpha );
void GDtexture_set_filter ( texture_id , int filter );
void GDtexture_set_type ( texture_id , int type );
OMobj_id texture_id ;
NULL,
OMobj_id texture_id ,
0,
GDtexture * texture );
These routines are used to access the Graphics Display Kit texture.
The GDtexture_get_xxxx routines get the subobject values of the texture. The GDtexture_set_xxxx routines set the subobject values of the texture. These routines are used by the Graphics Display Kit texture editor (i.e., GDtexture_edit).
GDtexture_delete deletes the texture. This method is called directly by the 1
Object Manager when the texture is deleted.
GDtexture_reset resets the texture's subobjects to their default values. The default values are those in specified in DefaultTexture.
To create an instance of texture, call the utility routine GDcreate_instance.
The other parameters in the get/set routines correspond to subobjects of the texture.
For details, see DefaultTexture .
(GDtexture_delete only) The texture's local pointer. To get this value, call the utility routine GDget_local.
/* Get and set a texture-map object's material subobject. */
OMobj_id texture_id; /* Assume this has been set. */
int material[4];
...
GDtexture_get_material(texture_id, material);
material[0] *= 0.9;
GDtexture_set_material(texture_id, material);
![]() |
![]() ![]() |