imtk

view src/draw.h @ 13:9c7987064bb0

- fixed the frame drawing a bit - added global alpha value and various drawing parameters - backported the checkbox check mark from glamtk - fixed progress bar drawing so that the bevels of the trough and the bar won't overlap
author John Tsiombikas <nuclear@siggraph.org>
date Mon, 18 Apr 2011 06:15:46 +0300
parents 10604ff95527
children df2bc9406561
line source
1 #ifndef DRAW_H_
2 #define DRAW_H_
4 #ifndef __APPLE__
5 #include <GL/glut.h>
6 #else
7 #include <GLUT/glut.h>
8 #endif
9 #include "imtk.h"
11 enum {
12 FRAME_OUTSET,
13 FRAME_INSET
14 };
16 /*void imtk_set_color(int col, float r, float g, float b, float a); in imtk.h */
17 float *imtk_get_color(int col);
18 void imtk_draw_rect(int x, int y, int w, int h, float *color_rgba);
19 void imtk_draw_frame(int x, int y, int w, int h, int style);
20 void imtk_draw_string(int x, int y, const char *str);
21 int imtk_string_size(const char *str);
23 #endif /* DRAW_H_ */