- added libdrawtext
[demo_prior] / src / imtk / draw.h
diff --git a/src/imtk/draw.h b/src/imtk/draw.h
new file mode 100644 (file)
index 0000000..6dbe912
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef DRAW_H_
+#define DRAW_H_
+
+#include "opengl.h"
+#include "imtk.h"
+
+enum {
+       FRAME_OUTSET,
+       FRAME_INSET
+};
+
+void imtk_draw_rect(int x, int y, int w, int h, float *ctop, float *cbot);
+void imtk_draw_frame(int x, int y, int w, int h, int style);
+void imtk_draw_disc(int x, int y, float rad, int subdiv, float *ctop, float *cbot);
+void imtk_draw_disc_frame(int x, int y, float inner, float outer, int subdiv, int style);
+void imtk_draw_string(int x, int y, const char *str);
+int imtk_string_size(const char *str);
+
+#endif /* DRAW_H_ */