1DTK_DESTROY_TEXTURE(3)        Draw Toolkit manual       DTK_DESTROY_TEXTURE(3)
2
3
4

NAME

6       dtk_destroy_texture - Free a texture
7

SYNOPSIS

9       #include <drawtk.h>
10
11       void dtk_destroy_texture(dtk_htex tex);
12

DESCRIPTION

14       This function frees the ressource associated with a texture tex. If the
15       texture is used several times, i.e. several  call  to  dtk_load_image()
16       with the same image path, it decreases the number of uses by one.
17
18       Calling  dtk_destroy_texture() on each created texture is currently not
19       mandatory since all texture remaining textures are destroyed  when  the
20       last  window is closed.  However, if no window can be closed (for exam‐
21       ple, no window  has  been  created),  dtk_destroy_texture()  should  be
22       called on each created texture to avoid any memory leak.
23
24       dtk_destroy_texture() is thread-safe.
25

RETURN VALUE

27       None
28

SEE ALSO

30       dtk_load_image(3), dtk_close(3),
31
32
33
34
35EPFL                                 2010               DTK_DESTROY_TEXTURE(3)
Impressum