rayfract
diff src/imtk/draw.h @ 10:1496aae2e7d4
- simplified build by including dependences in the source tree
- added make dep tracking
- added mingw cross-build rules
- added readme & licence
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 31 Jul 2023 18:58:56 +0300 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/imtk/draw.h Mon Jul 31 18:58:56 2023 +0300 1.3 @@ -0,0 +1,23 @@ 1.4 +#ifndef DRAW_H_ 1.5 +#define DRAW_H_ 1.6 + 1.7 +#ifndef __APPLE__ 1.8 +#include <GL/glut.h> 1.9 +#else 1.10 +#include <GLUT/glut.h> 1.11 +#endif 1.12 +#include "imtk.h" 1.13 + 1.14 +enum { 1.15 + FRAME_OUTSET, 1.16 + FRAME_INSET 1.17 +}; 1.18 + 1.19 +void imtk_draw_rect(int x, int y, int w, int h, float *ctop, float *cbot); 1.20 +void imtk_draw_frame(int x, int y, int w, int h, int style); 1.21 +void imtk_draw_disc(int x, int y, float rad, int subdiv, float *ctop, float *cbot); 1.22 +void imtk_draw_disc_frame(int x, int y, float inner, float outer, int subdiv, int style); 1.23 +void imtk_draw_string(int x, int y, const char *str); 1.24 +int imtk_string_size(const char *str); 1.25 + 1.26 +#endif /* DRAW_H_ */