debian man page for dtk_load_image

Query: dtk_load_image

OS: debian

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

DTK_LOAD_IMAGE(3)						Draw Toolkit manual						 DTK_LOAD_IMAGE(3)

NAME
dtk_load_image - Load an image file as a texture
SYNOPSIS
#include <drawtk.h> dtk_htex dtk_load_image(const char *filename, unsigned int mxlvl);
DESCRIPTION
This function load the image file specified by filename argument. It will creates the mipmaps until level mxlvl. Upon creation, the texture will then been tracked by an internal texture manager so that the next call using the same filename argument will return the same texture handle, thus sparing the resources of the system. There is no need for a valid window to create successfully a texture, i.e. creation of textures are completely decoupled from the creation of others resources and can even be created in one thread to be used in another one. Mipmaps are version of the same image at lower resolution (every power of two). Mipmap at level 0 is the original image. Given the size of the texture displayed in the framebuffer, the closest mipmaps are used to interpolate the value of displayed pixels. Do a research on internet for further details about mipmaps.
RETURN VALUE
In case of success, the function returns the handle to the created texture. In case of failure, NULL is returned.
THREAD SAFETY
dtk_load_image() is thread-safe.
SEE ALSO
EPFL
2010 DTK_LOAD_IMAGE(3)
Related Man Pages
glgeneratemipmap(3g) - mojave
dtk_load_image(3) - debian
dtk_load_video_tcp(3) - debian
dtk_load_video_test(3) - debian
glgeneratemipmap(3g) - osx
Similar Topics in the Unix Linux Community
Installing Dash Shell on OS X Lion
Is UNIX an open source OS ?
Detecting unused variables...
Find columns in a file based on header and print to new file
My first PERL incarnation... Audio Oscillograph