imtk
view src/draw.h @ 12:17c9525b2e35
merged -lGLU fix with listbox patch
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 17 Apr 2011 18:20:23 +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_ */