From f94ece0bcc51dba3f431d82032c3d82d4e4a616a Mon Sep 17 00:00:00 2001 From: fcolin Date: Wed, 20 Dec 2000 15:58:44 +0000 Subject: initial version for the glut eventloop --- src/ivyglutloop.h | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100755 src/ivyglutloop.h (limited to 'src/ivyglutloop.h') diff --git a/src/ivyglutloop.h b/src/ivyglutloop.h new file mode 100755 index 0000000..0819a93 --- /dev/null +++ b/src/ivyglutloop.h @@ -0,0 +1,56 @@ +/* + * Ivy, C interface + * + * Copyright (C) 1997-1999 + * Centre d'Études de la Navigation Aérienne + * + * Main loop based on GLUT ( OpenGL ) Toolkit + * + * Authors: François-Régis Colin + * Stéphane Chatty + * + * $Id$ + * + * Please refer to file version.h for the + * copyright notice regarding this software + */ + +#ifndef IVYGLUTLOOP_H +#define IVYGLUTLOOP_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +/* general Handle */ + +#define ANYPORT 0 + +#ifdef WIN32 +#include +#define HANDLE SOCKET +#else +#define HANDLE int +#endif + +#include "ivychannel.h" + +extern void IvyGlutChannelInit(void); + +extern Channel IvyGlutChannelSetUp( + HANDLE fd, + void *data, + ChannelHandleDelete handle_delete, + ChannelHandleRead handle_read +); + +extern void IvyGlutChannelClose( Channel channel ); + +#ifdef __cplusplus +} +#endif + +#endif + -- cgit v1.1