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

NAME

6       dtk_draw_shape - Draw a shape in the window
7

SYNOPSIS

9       #include <drawtk.h>
10
11       void dtk_draw_shape(const dtk_hshape shp);
12

DESCRIPTION

14       dtk_draw_shape()  draw  the shape referenced by shp in the current win‐
15       dow. The position of the drawing depends on the rotation  and  transla‐
16       tion  previously  set by dtk_*move_shape() and dtk_*rotate_shape() (the
17       rotation is first applied to the shape and then the translation).
18
19       This function assumes there is a valid OpenGL rendering context in  the
20       calling  thread.  So  a  successfull  call to dtk_make_current_window()
21       should have been performed previously in the current thread.
22

RETURN VALUE

24       None.
25

SEE ALSO

27       dtk_move_shape(3), dtk_make_current_window(3)
28
29
30
31
32EPFL                                 2010                    DTK_DRAW_SHAPE(3)
Impressum