Skip to main content.

Texture Freeing Functions

This function is used by the smart pointer which is returned by the LoadTextureSafe functions to delete the Image object which is pointed to in the correct memory heap.

FreeTexture

Function Prototypes

  • void FreeTexture(Image * img)
    Deletes the given texture pointer in the correct memory heap

Return Value

  • None

Possible Known Exceptions

  • None

Other Details / Notes

  • Its recommended that you use this function to clean up the pointers returned so that right thing is done.

Copyright © 2004, Rob Jones