rayfract

view 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 source
1 #ifndef DRAW_H_
2 #define DRAW_H_
4 #ifndef __APPLE__
5 #include <GL/glut.h>
6 #else
7 #include <GLUT/glut.h>
8 #endif
9 #include "imtk.h"
11 enum {
12 FRAME_OUTSET,
13 FRAME_INSET
14 };
16 void imtk_draw_rect(int x, int y, int w, int h, float *ctop, float *cbot);
17 void imtk_draw_frame(int x, int y, int w, int h, int style);
18 void imtk_draw_disc(int x, int y, float rad, int subdiv, float *ctop, float *cbot);
19 void imtk_draw_disc_frame(int x, int y, float inner, float outer, int subdiv, int style);
20 void imtk_draw_string(int x, int y, const char *str);
21 int imtk_string_size(const char *str);
23 #endif /* DRAW_H_ */