imtk

view src/draw.h @ 8:10604ff95527

imtk_draw_rect
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 14 Apr 2011 23:21:56 +0300
parents 38609a9f7586
children 9c7987064bb0
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_rect(int x, int y, int w, int h, float *color_rgba);
27 void imtk_draw_frame(int x, int y, int w, int h, int style);
28 void imtk_draw_string(int x, int y, const char *str);
29 int imtk_string_size(const char *str);
31 #endif /* DRAW_H_ */