![]() |
![]() |
![]() |
![]() |
GDtexture_xxxx
Synopsis
access the Graphics Display Kit texture
void _ GDtexture_get_tile ( texture_id , _int _* tile _);
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_tile ( texture_id , _int _ tile _);
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 ;void _ GDtexture_delete (
NULL,
OMobj_id _ texture_id ,
0,
GDtexture _* texture _);void _ GDtexture_reset ( OMobj_id _ texture_id , );
Description
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.
Parameters
(GDtexture_delete only) _The texture's local pointer. To get this value, call the utility routine GDget_local.
Example
/* 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);
![]() |
![]() |
![]() |
![]() |