Package drawtk-devel

A C library to perform efficient 3D drawings

http://cnbi.epfl.ch/software/drawtk.html

Development files for drawtk library.

Library Functions (Section 3)
dtk_addtime
The function dtk_addtime() adjusts the time pointed by ts by adding sec seconds and nsec nanoseconds.
dtk_create_arrow
dtk_create_arrow() creates an arrow pointing to the left with the pointed pointed located at (cx,cy) with a total width of width, a hat of length width/3 , a...
dtk_create_circle
dtk_create_circle() creates an approximation of a circle of radius r centered at (cx,cy) using num_points vertices.
dtk_create_circle_str
dtk_create_circle_str() creates an approximation of a circular strip of radius r centered at (cx,cy) using num_points vertices. The radius r is always referred...
dtk_create_complex_shape
dtk_create_complex_shape() creates a shape displaying a complex, custom and possibly evolving content described by vertex attribute buffers (vertpos, vertcolor...
dtk_create_composite_shape
dtk_create_composite_shape() creates a shape made of num different shapes specified by the array list. When dtk_draw_shape(3) is called on the composite shape...
dtk_create_cross
dtk_create_cross() creates a cross whose centered is located at (cx,cy) with a length of width.
dtk_create_image
dtk_create_image() creates a rectangle of size (height,width) centered at (cx,cy) containing the image loaded in texture image. The image will by stretched to...
dtk_create_line
dtk_create_line() creates a line between the points (x1,y1) and (x2,y2).
dtk_create_rectangle_2p
dtk_create_rectangle_2p() creates a rectangle whose the opposing corners are located at (p1_x,p1_y) and (p2_x,p2_y). dtk_create_rectangle_hw() creates a...
dtk_create_shape
dtk_create_shape() creates a shape specified by ind_num vertices referenced by vertex_array. In this array, the position parameters (x,y) of each vertex are...
dtk_create_string
dtk_create_string() creates a text specified by text at location (x,y) with a font size of size using a previously loaded font referenced by font argument (see...
dtk_create_triangle
dtk_create_triangle() creates a triangle between the vertices (x1,y1), (x2,y2) and (x3,y3).
dtk_create_window
dtk_create_window() creates a window of size (width,height) to be used later as the target of next drawings. If width or height is zero, then the created window...
dtk_destroy_shape
dtk_destroy_shape() destroys the shape referenced by shp. If shp is NULL the function returns without doing anything.
dtk_destroy_texture
This function frees the ressource associated with a texture tex. If the texture is used several times, i.e. several call to dtk_load_image() with the same image...
dtk_difftime_s
These functions returns the difference of time from orig to ts. dtk_difftime_s() returns the difference in seconds. dtk_difftime_ms() returns the difference in...
dtk_draw_shape
dtk_draw_shape() draw the shape referenced by shp in the current window. The position of the drawing depends on the rotation and translation previously set by...
dtk_get_color
dtk_get_color() returns the ind-th color in a predefined palette of colors. The returned value in a pointer to a array of 4 float representing an RGBA color.
dtk_gettime
The function dtk_gettime() retrieves the time of a high precision clock.
dtk_load_font
dtk_load_font() loads the font specified by fontname argument. This should be the path of a file whose file format can be any of the file format supported by...
dtk_load_image
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...
dtk_load_video_file
This function loads the video file specified by filename argument as a dynamic texture. The texture will then been tracked by an internal texture manager so...
dtk_load_video_gst
This function loads as a dynamic texture the video stream arriving into the sink of a gstreamer pipeline. The pipeline description desc should follows the...
dtk_load_video_tcp
This function loads as a dynamic texture the video stream broadcasted over the network via TCP by the server host on the port port. The texture will then been...
dtk_load_video_test
This function loads a test video file as a dynamic texture. The texture will then been tracked by an internal texture manager so that the next call will return...
dtk_load_video_udp
This function loads as a dynamic texture the video stream broadcasted over the network via UDP by listening to the port port. The texture will then been tracked...
dtk_make_current_window
dtk_make_current_window() makes the window referenced by wnd as the target of the next drawings. If wnd is NULL then the function unbind the current window for...
dtk_move_shape
These functions control the position and the rotation with which the shape shp will be next drawn. dtk_move_shape() set the translation the shape for the next...
dtk_nanosleep
The function dtk_nanosleep() allows the caller to sleep for an interval with nanosecond precision. If the argument abs is zero, the specified interval is...
dtk_process_events
dtk_set_event_handler() set handler as the current event handler for the window wnd.
dtk_setcolor_shape
dtk_setcolor_shape() set the color color of a shape identified by the pointer shp. color should point to a 4 float array containing a normalized RGBA value...
dtk_texture_getsize
This function returns the size in pixel of the original image of the texture tex into the values pointed by w and h. If tex, w or h is NULL, the function does...
dtk_update_screen
dtk_bgcolor() set bgcolor as the background color of the current rendering context. bgcolor should point to an array of 4 float corresponding to an normalized...
dtk_video_exec
Start/stop/pause a video texture
dtk_video_getstate
This function returns the state of a video texture referenced by vid created by one of the functions dtk_create_video_*(3) and is a BITOR combination of the...
dtk_window_getsize
This function returns the current size in pixel of the window associated with the handle wnd into the values pointed by w and h. If wnd, w or h is NULL, the...