dtk_draw_shape(3)

dtk_draw_shape3

Draw a shape in the window

Usage

#include <drawtk.h>

void dtk_draw_shape(const dtk_hshape shp);

Overview

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_*move_shape() and dtk_*rotate_shape() (the rotation is first applied to the shape and then the translation).

This function assumes there is a valid OpenGL rendering context in the calling thread. So a successfull call to dtk_make_current_window() should have been performed previously in the current thread.

Return value

None.

Releases

Unchanged in 2 releases since Debian 7 (Wheezy).

  1. 7–8

From libdrawtk-dev 2.0-2.1 in Debian 8 (Jessie). Parsed by carta from the page's man source.