imtk

view src/draw.h @ 6:38609a9f7586

reorganizing ...
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 14 Apr 2011 14:22:42 +0300
parents
children 10604ff95527
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
10 enum {
11 IMTK_TEXT_COLOR,
12 IMTK_BASE_COLOR,
13 IMTK_FOCUS_COLOR,
14 IMTK_BEVEL_LIT_COLOR,
15 IMTK_BEVEL_SHAD_COLOR
16 };
19 enum {
20 FRAME_OUTSET,
21 FRAME_INSET
22 };
24 void imtk_set_color(int col, float r, float g, float b, float a);
25 float *imtk_get_color(int col);
26 void imtk_draw_frame(int x, int y, int w, int h, int style);
27 void imtk_draw_string(int x, int y, const char *str);
28 int imtk_string_size(const char *str);
30 #endif /* DRAW_H_ */