aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/bundled/Base/GemWinCreate.h
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-10-18 19:53:53 +0000
committerN.N. <matju@users.sourceforge.net>2009-10-18 19:53:53 +0000
commita1fb215b39535805aa19608185d5e52c0f524b42 (patch)
tree9d8056ca9837bd03676405dc5202bdc2c041d430 /externals/gridflow/bundled/Base/GemWinCreate.h
parentd6b18994d50479d2f76041387d25db235bbda4cd (diff)
bye gridflow 0.9.4
svn path=/trunk/; revision=12610
Diffstat (limited to 'externals/gridflow/bundled/Base/GemWinCreate.h')
-rw-r--r--externals/gridflow/bundled/Base/GemWinCreate.h224
1 files changed, 0 insertions, 224 deletions
diff --git a/externals/gridflow/bundled/Base/GemWinCreate.h b/externals/gridflow/bundled/Base/GemWinCreate.h
deleted file mode 100644
index 79104cde..00000000
--- a/externals/gridflow/bundled/Base/GemWinCreate.h
+++ /dev/null
@@ -1,224 +0,0 @@
-/*-----------------------------------------------------------------
-
-GEM - Graphics Environment for Multimedia
-
-create a window
-
-Copyright (c) 1997-1999 Mark Danks. mark@danks.org
-Copyright (c) Günther Geiger. geiger@epy.co.at
-Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::für::umläute. IEM. zmoelnig@iem.kug.ac.at
-For information on usage and redistribution, and for a DISCLAIMER OF ALL
-WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution.
-
------------------------------------------------------------------*/
-
-#ifndef INCLUDE_GEMWINCREATE_H_
-#define INCLUDE_GEMWINCREATE_H_
-#include "Base/config.h"
-
-#ifdef __unix__
-# include <GL/glx.h>
-# ifdef HAVE_LIBXXF86VM
-# include <X11/extensions/xf86vmode.h>
-# endif
-#elif defined __WIN32__
-# include <windows.h>
-#elif defined __APPLE__
-# import <AGL/agl.h>
-#else
-# error Define OS specific window creation
-#endif
-
-#include "Base/GemExportDef.h"
-
-// I hate Microsoft...I shouldn't have to do this!
-#ifdef __WIN32__
-# pragma warning( disable : 4244 )
-# pragma warning( disable : 4305 )
-# pragma warning( disable : 4091 )
-#endif
-
-#include "m_pd.h"
-
-#include <string.h>
-
-/*-----------------------------------------------------------------
- -------------------------------------------------------------------
- CLASS
- WindowInfo
-
- All of the relavent information about an OpenGL window
-
- DESCRIPTION
-
- -----------------------------------------------------------------*/
-class GEM_EXTERN WindowInfo
-{
- public:
-
- // Constructor
- WindowInfo() :
- fs(0),
-#ifdef __unix__
- dpy(NULL), win(0), cmap(0), context(NULL), delete_atom(0)
-#elif defined __WIN32__
- win(NULL), dc(NULL), context(NULL)
-#elif defined __APPLE__
- pWind(NULL), context(NULL), offscreen(NULL), pixelSize(32),
- pixMap(NULL), rowBytes(0), baseAddr(NULL)
-#endif
- {}
- int fs; // FullScreen
- int have_constContext; // 1 if we have a constant context
-
-#ifdef __unix__
- Display *dpy; // X Display
- Window win; // X Window
- int screen; // X Screen
- Colormap cmap; // X color map
- GLXContext context; // OpenGL context
- Atom delete_atom;
-
-#ifdef HAVE_LIBXXF86VM
- XF86VidModeModeInfo deskMode; // originale ModeLine of the Desktop
-#endif
-
-#elif defined __WIN32__
-
- HWND win; // Window handle
- HDC dc; // Device context handle
- HGLRC context; // OpenGL context
-
-#elif defined __APPLE__
-
- WindowPtr pWind; // GEM window reference for gemwin
- AGLContext context; // OpenGL context
- GWorldPtr offscreen; // Macintosh offscreen buffer
- long pixelSize; //
- Rect r; //
- PixMapHandle pixMap; // PixMap Handle
- long rowBytes; //
- void *baseAddr; //
- short fontList; // Font
-
-#else
-#error Define OS specific window data
-#endif
-};
-
-/*-----------------------------------------------------------------
- -------------------------------------------------------------------
- CLASS
- WindowHints
-
- Hints for window creation
-
- DESCRIPTION
-
- -----------------------------------------------------------------*/
-class GEM_EXTERN WindowHints
-{
- public:
-
- //////////
- // Should the window be realized
- int actuallyDisplay;
-
- //////////
- // Single or double buffered
- int buffer;
-
- //////////
- // The width/x of the window
- int width;
- //////////
- // The height/y of the window
- int height;
-
- //////////
- // the real width/height of the window (set by createGemWindow())
- int real_w, real_h;
-
- //////////
- // The offset/x of the window (likely tobe overridden by the window-manager)
- int x_offset;
- //////////
- // The offset/y of the window (likely tobe overridden by the window-manager)
- int y_offset;
-
- //////////
- // Should we do fullscreen ?
- int fullscreen;
-
- //////////
- // Is there a second screen ?
- int secondscreen;
-
- //////////
- // Should there be a window border?
- int border;
-
- //////////
- // mode for full-screen antialiasing
- int fsaa;
-
- ///// if we can use a different display , this has its meaning under X
- char* display;
-
- //////////////
- // display some title....
- char* title;
-
- //////////
- // The GLXcontext to share rendering with
-#ifdef __unix__
- GLXContext shared;
-#elif defined __WIN32__
- HGLRC shared;
-#elif defined __APPLE__
- AGLContext shared;
-#else
-#error Define OS specific OpenGL context
-#endif
-};
-
-//////////
-// Create a new window
-GEM_EXTERN extern int createGemWindow(WindowInfo &info, WindowHints &hints);
-
-//////////
-// Destroy a window
-GEM_EXTERN extern void destroyGemWindow(WindowInfo &info);
-
-//////////
-// Set the cursor
-GEM_EXTERN extern int cursorGemWindow(WindowInfo &info, int state);
-
-//////////
-// Set the topmost position
-GEM_EXTERN extern int topmostGemWindow(WindowInfo &info, int state);
-
-//////////
-// swap the buffers (get's called in double-buffered mode)
-GEM_EXTERN extern void gemWinSwapBuffers(WindowInfo &nfo);
-/////////
-// reestablish a context
-GEM_EXTERN extern void gemWinMakeCurrent(WindowInfo &nfo);
-
-/////////
-// init OS-specific stuff
-GEM_EXTERN extern bool initGemWin(void);
-
-/////////
-// prepare a WindowInfo for context-sharing
-GEM_EXTERN void initWin_sharedContext(WindowInfo &info, WindowHints &hints);
-
-
-
-/////////
-//
-GEM_EXTERN extern void dispatchGemWindowMessages(WindowInfo &nfo);
-
-
-
-#endif // for header file