rayfract

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