DWORD dwWritten;
BOOL bSuccess = FALSE;
- bSuccess = WriteFile(SmyrnaToGvprWr, str, strlen(str), &dwWritten, NULL);
+ bSuccess = WriteFile(SmyrnaToGvprWr, str, (DWORD)strlen(str), &dwWritten, NULL);
if ( ! bSuccess ) return 0;
return dwWritten;
}
smyrnaPath (char* suffix)
{
char* buf;
- assert (smyrnaDir);
#ifdef _WIN32
char* pathSep = "\\";
#else
+
+ assert (smyrnaDir);
char* pathSep = "/";
#endif
create_window(glconfig, gladewidget);
change_cursor(GDK_TOP_LEFT_ARROW);
- glutInit(&argc,argv);
+
+#ifndef WIN32
+ glutInit(&argc,&argv);
+#endif
gtk_main();
g_free(package_data_dir);
#endif
g_free(package_locale_dir);
- clear_viewport(view);
return 0;
}
<File
RelativePath=".\glmotion.c"
>
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ CompileAs="1"
+ />
+ </FileConfiguration>
</File>
<File
RelativePath=".\gltemplate.c"
<File
RelativePath=".\main.c"
>
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ CompileAs="1"
+ />
+ </FileConfiguration>
</File>
<File
RelativePath=".\md5.c"
#define SPHERE_SLICE_COUNT 6
#define DOT_SIZE_CORRECTION_FAC 0.3
+#define HUGE_NUMBER 99999999999
typedef enum { nodshapedot,nodeshapecircle} node_shape;
typedef enum { leftmousebutton,rightmousebutton,thirdmousebutton} clicked_mouse_button;
graph_data Graphdata;
int maxnodedegree;
float maxedgelen;
+ float minedgelen;
+ float init_node_size; //raster size of node
+ float init_zoom;
} topview;
enum {
int fisheye_distortion_fac;
} fisheye_magnifier;
+typedef struct
+{
+ float x1,y1,x2,y2;
+
+}line;
+
typedef struct _ViewInfo
{
/*view variables*/
char* glade_file;
char* attr_file;
int flush;
-
-
-
+ line interpol;
} ViewInfo;
extern ViewInfo *view;
#include "memory.h"
#include "topviewsettings.h"
#include "md5.h"
+#include "gvprpipe.h"
+
/* Forward declarations */
cleartopview(view->Topview);
if (view->graphCount)
agclose(view->g[view->activeGraph]);
- init_viewport(view);
+
+// init_viewport(view);
}
static void* get_glut_font(int ind)
{
view->labelshowedges=atoi(get_attribute_value ("showedgelabels", view, g));
view->colschms=create_color_theme(atoi(get_attribute_value ("colortheme", view, g)));
+
if (view->graphCount > 0)
glClearColor(view->bgColor.R, view->bgColor.G, view->bgColor.B, view->bgColor.A); //background color
}
view->prevpanx = 0;
view->prevpany = 0;
-
view->zoom = -20;
view->texture = 1;
view->FontSize = 52;
#ifdef WIN32
Agraph_t* a=exec_gvpr(prog,g);
#endif
+ return 1;
}
float interpol(float minv,float maxv,float minc,float maxc,float x)
{