22
22
#include <stdlib.h>
23
23
#include <string.h>
25
#include "glcompfont.h"
32
30
/* DRAWING FUNCTIONS
33
31
* these are opengl based xdot drawing functions
34
32
* topview drawings are not here
36
extern drawfunc_t OpFns[];
37
extern void drawGraph(Agraph_t * g);
38
void draw_selection_box(ViewInfo * view);
39
void draw_magnifier(ViewInfo * view);
40
void draw_fisheye_magnifier(ViewInfo * view);
41
extern int randomize_color(RGBColor * c, int brightness);
42
extern void drawCircle(float x, float y, float radius, float zdepth);
43
extern RGBColor GetRGBColor(char *color);
44
extern void drawBorders(ViewInfo * view);
45
void drawEllipse(float xradius, float yradius,int angle1,int angle2);
46
int draw_node_hintbox(GLfloat x,GLfloat y,GLfloat fs,GLfloat pad,GLfloat z,GLfloat kts,GLfloat z_offset);
34
extern drawfunc_t OpFns[];
35
extern void drawGraph(Agraph_t * g);
36
void scanGraph(Agraph_t * g);
37
void draw_selection_box(ViewInfo * view);
38
void draw_magnifier(ViewInfo * view);
39
void draw_fisheye_magnifier(ViewInfo * view);
40
extern int randomize_color(glCompColor * c, int brightness);
41
extern void drawCircle(float x, float y, float radius, float zdepth);
42
extern glCompColor GetglCompColor(char *color);
43
extern void drawBorders(ViewInfo * view);
44
void drawEllipse(float xradius, float yradius, int angle1, int angle2);
45
int draw_node_hintbox(GLfloat x, GLfloat y, GLfloat z, GLfloat fs,
47
void draw_sphere(float x, float y, float z, float r);
49
/*xdot drawing functions*/
50
extern void DrawBeziers(sdot_op* o, int param);
51
extern void DrawEllipse(sdot_op * op, int param);
52
extern void DrawPolygon(sdot_op * op, int param);
53
extern void DrawPolyline(sdot_op * op, int param);
54
extern void SetFillColor(sdot_op* o, int param);
55
extern void SetPenColor(sdot_op* o, int param);
56
extern void SetStyle(sdot_op* o, int param);
57
extern void SetFont(sdot_op * o, int param);
58
extern void InsertImage(sdot_op * o, int param);
59
extern void EmbedText(sdot_op * o, int param);
72
glCompColor fillColor;
80
} /* end extern "C" */