Functions
Begin_Local_Texture_Search

Functions

void Begin_Local_Texture_Search (void)
 Begins a texture search on the currently open segment. More...
 

Detailed Description

Function Documentation

void Begin_Local_Texture_Search ( void  )

Begins a texture search on the currently open segment.

DETAILS

Begin_Local_Texture_Search() is similar to Begin_Texture_Search() , but operates only on the currently open segment. To find all textures with this function, use the following method:


HC_Begin_Contents_Search("/...", "segments");
    while (HC_Find_Contents(type, &segKey)) {
        HC_Open_Segment_By_Key(segKey);
        HC_Show_Segment (segKey, pathname);
        HC_Begin_Contents_Search (".", "attributes");
        while (HC_Find_Contents(type, &tempKey)){
            if (!strcmp (type, "texture definitions")) {
                HC_Begin_Local_Texture_Search();
                HC_Show_Texture_Count(&texture_count);
                HC_Find_Texture (texture_name);
            }
        }
     }
HC_End_Contents_Search();

NOTES

This behaves in a very similar fashion to Begin_Texture_Search() except that it only looks for locally defined textures. Also, since local textures are connected to a segment you must provide a segment from which the search should begin.

RESTRICTIONS

See also
Begin_Texture_Search