X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=demo_prior;a=blobdiff_plain;f=src%2Fimtk%2Fdraw.h;fp=src%2Fimtk%2Fdraw.h;h=6dbe9121b9be883d75154b9e464d0fb660df9961;hp=0000000000000000000000000000000000000000;hb=2f14a35e7d557da12f24056267b911f24774aa18;hpb=5eefe7b94c8d6c6caa2c10e3835ab0831a3c42a1 diff --git a/src/imtk/draw.h b/src/imtk/draw.h new file mode 100644 index 0000000..6dbe912 --- /dev/null +++ b/src/imtk/draw.h @@ -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_ */