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

GDtexture_xxxx- GD API


Synopsis

access the Graphics Display Kit texture

GDtexture_get_xxxx

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 ;

 

GDtexture_set_xxxx

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 ;

 

GDtexture_delete

void   GDtexture_delete (
NULL,
OMobj_id   texture_id ,
0,
GDtexture  * texture  );

 

GDtexture_reset

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

texture_id

The id of the texture.

Other get/set parameters

The other parameters in the get/set routines correspond to subobjects of the texture.

For details, see DefaultTexture .

texture

(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);

 



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