Skip to main content.

Filter Register and Unregistering functions

These functions allow the end user to register their own filters at runtime and have them used for loading the requested texture type. See Key Concepts for an overview of how to use these functions.

RegisterFilter

Function Prototypes

  • int RegisterFilter(std::string const &ext, FilterCreator_t filterCreator)
    Returns an Id number for loading textures with the given extension (ext).

Return Value

  • An ID number which is valid for a given file extension until unregistered.

Possible Known Exceptions

  • none

Other Details / Notes

  • May not be safe for DLL use as the functor is copied across a DLL boundry.

UnRegisterFilter

Function Prototypes

  • void UnRegisterFilter(int filterID)
    Unregisters a filter creator function from GTL via the ID returned earlier.

Return Value

  • None

Possible Known Exceptions

  • None

Other Details / Notes

  • After calling this the given filter ID should be treated as no longer valid and any attempts to load this image type will fail.

Copyright © 2004, Rob Jones