imtk

annotate 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
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@6 26 void imtk_draw_frame(int x, int y, int w, int h, int style);
nuclear@6 27 void imtk_draw_string(int x, int y, const char *str);
nuclear@6 28 int imtk_string_size(const char *str);
nuclear@6 29
nuclear@6 30 #endif /* DRAW_H_ */