annotate 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 |
rev |
line source |
nuclear@6
|
1 #ifndef DRAW_H_
|
nuclear@6
|
2 #define DRAW_H_
|
nuclear@6
|
3
|
nuclear@6
|
4 #ifndef __APPLE__
|
nuclear@6
|
5 #include <GL/glut.h>
|
nuclear@6
|
6 #else
|
nuclear@6
|
7 #include <GLUT/glut.h>
|
nuclear@6
|
8 #endif
|
nuclear@6
|
9
|
nuclear@6
|
10 enum {
|
nuclear@6
|
11 IMTK_TEXT_COLOR,
|
nuclear@6
|
12 IMTK_BASE_COLOR,
|
nuclear@6
|
13 IMTK_FOCUS_COLOR,
|
nuclear@6
|
14 IMTK_BEVEL_LIT_COLOR,
|
nuclear@6
|
15 IMTK_BEVEL_SHAD_COLOR
|
nuclear@6
|
16 };
|
nuclear@6
|
17
|
nuclear@6
|
18
|
nuclear@6
|
19 enum {
|
nuclear@6
|
20 FRAME_OUTSET,
|
nuclear@6
|
21 FRAME_INSET
|
nuclear@6
|
22 };
|
nuclear@6
|
23
|
nuclear@6
|
24 void imtk_set_color(int col, float r, float g, float b, float a);
|
nuclear@6
|
25 float *imtk_get_color(int col);
|
nuclear@8
|
26 void imtk_draw_rect(int x, int y, int w, int h, float *color_rgba);
|
nuclear@6
|
27 void imtk_draw_frame(int x, int y, int w, int h, int style);
|
nuclear@6
|
28 void imtk_draw_string(int x, int y, const char *str);
|
nuclear@6
|
29 int imtk_string_size(const char *str);
|
nuclear@6
|
30
|
nuclear@6
|
31 #endif /* DRAW_H_ */
|