summaryrefslogtreecommitdiffstats
path: root/src/glut/beos/glutWindow.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-07-14 17:28:52 +0100
committerJosé Fonseca <[email protected]>2011-07-14 17:35:05 +0100
commit9a7f84d6b28e180ef79349b36de9a5d58a1e2dc9 (patch)
tree31d2acf247f5a0738ed7656f86125fa065ce0a36 /src/glut/beos/glutWindow.h
parentff2efdf5997d20b41f7a82b77118366e6fbd23bc (diff)
Squashed commit of the following:
commit 1856230d9fa61710cce3e152b8d88b1269611a73 Author: José Fonseca <[email protected]> Date: Tue Jul 12 23:41:27 2011 +0100 make: Use better var names on packaging. commit d1ae72d0bd14e820ecfe9f8f27b316f9566ceb0c Author: José Fonseca <[email protected]> Date: Tue Jul 12 23:38:21 2011 +0100 make: Apply several of Dan Nicholson's suggestions. commit f27cf8743ac9cbf4c0ad66aff0cd3f97efde97e4 Author: José Fonseca <[email protected]> Date: Sat Jul 9 14:18:20 2011 +0100 make: Put back the tar.bz2 creation rule. Removed by accident. commit 34983337f9d7db984e9f0117808274106d262110 Author: José Fonseca <[email protected]> Date: Sat Jul 9 11:59:29 2011 +0100 make: Determine tarballs contents via git ls-files. The wildcards were a mess: - lots of files for non Linux platforms missing - several files listed and archived twice Using git-ls-files ensures things are not loss when making the tarballs. commit 34a28ccbf459ed5710aafba5e7149e8291cb808c Author: José Fonseca <[email protected]> Date: Sat Jul 9 11:07:14 2011 +0100 glut: Remove GLUT source. Most distros ship freeglut, and most people don't care one vs the other, and it hasn't been really maintained. So it is better to have Mesa GLUT be revisioned and built separately from Mesa. commit 5c26a2c3c0c7e95ef853e19d12d75c4f80137e7d Author: José Fonseca <[email protected]> Date: Sat Jul 9 10:31:02 2011 +0100 Ignore the tarballs. commit 26edecac589819f0d0efe2165ab748dbc4e53394 Author: José Fonseca <[email protected]> Date: Sat Jul 9 10:30:24 2011 +0100 make: Create the Mesa-xxx-devel symlink automatically. Also actually remote the intermediate uncompressed tarballs.
Diffstat (limited to 'src/glut/beos/glutWindow.h')
-rw-r--r--src/glut/beos/glutWindow.h119
1 files changed, 0 insertions, 119 deletions
diff --git a/src/glut/beos/glutWindow.h b/src/glut/beos/glutWindow.h
deleted file mode 100644
index d3ac1862695..00000000000
--- a/src/glut/beos/glutWindow.h
+++ /dev/null
@@ -1,119 +0,0 @@
-/***********************************************************
- * Copyright (C) 1997, Be Inc. Copyright (C) 1999, Jake Hamby.
- *
- * This program is freely distributable without licensing fees
- * and is provided without guarantee or warrantee expressed or
- * implied. This program is -not- in the public domain.
- *
- *
- * FILE: glutWindow.h
- *
- * DESCRIPTION: the GlutWindow class saves all events for
- * handling by main thread
- ***********************************************************/
-
-/***********************************************************
- * Headers
- ***********************************************************/
-#include <GL/glut.h>
-#include <Window.h>
-#include <GLView.h>
-
-/***********************************************************
- * CLASS: GlutWindow
- *
- * INHERITS FROM: BGLView (NOT BWindow!)
- *
- * DESCRIPTION: all information needed for windows and
- * subwindows (handled as similarly as possible)
- ***********************************************************/
-class GlutWindow : public BGLView {
-public:
- GlutWindow(GlutWindow *nparent, char *name, int x, int y, int width,
- int height, ulong options);
-
- void KeyDown(const char *bytes, int32 numBytes);
- void MouseDown(BPoint point);
- void MouseMoved(BPoint point, uint32 transit, const BMessage *message);
- void FrameResized(float width, float height);
- void Draw(BRect updateRect);
- void Pulse(); // needed since MouseUp() is broken
- void MouseCheck(); // check for button state changes
- void ErrorCallback(GLenum errorCode);
-
- static long MenuThread(void *menu);
-
- int num; // window number returned to user
- int cursor; // my cursor
-#define GLUT_MAX_MENUS 3
- int menu[GLUT_MAX_MENUS]; // my popup menus
- int m_width, m_height; // the last width and height reported to GLUT
- uint32 m_buttons; // the last mouse button state
-
- /* Window relationship state. */
- GlutWindow *parent; /* parent window */
- GlutWindow *children; /* first child window */
- GlutWindow *siblings; /* next sibling */
-
- // leave out buttons and dials callbacks that we don't support
- GLUTdisplayCB display; /* redraw */
- GLUTreshapeCB reshape; /* resize (width,height) */
- GLUTmouseCB mouse; /* mouse (button,state,x,y) */
- GLUTmotionCB motion; /* motion (x,y) */
- GLUTpassiveCB passive; /* passive motion (x,y) */
- GLUTentryCB entry; /* window entry/exit (state) */
- GLUTkeyboardCB keyboard; /* keyboard (ASCII,x,y) */
- GLUTvisibilityCB visibility; /* visibility */
- GLUTspecialCB special; /* special key */
- GLUTwindowStatusCB windowStatus; /* window status */
-
- bool anyevents; // were any events received?
- bool displayEvent; // call display
- bool reshapeEvent; // call reshape
- bool mouseEvent; // call mouse
- bool motionEvent; // call motion
- bool passiveEvent; // call passive
- bool entryEvent; // call entry
- bool keybEvent; // call keyboard
- bool windowStatusEvent; // call visibility
- bool specialEvent; // call special
- bool statusEvent; // menu status changed
- bool menuEvent; // menu selected
-
- int button, mouseState; // for mouse callback
- int mouseX, mouseY; // for mouse callback
- int motionX, motionY; // for motion callback
- int passiveX, passiveY; // for passive callback
- int entryState; // for entry callback
- unsigned char key; // for keyboard callback
- int keyX, keyY; // for keyboard callback
- int visState; // for visibility callback
- int specialKey; // for special key callback
- int specialX, specialY; // for special callback
- int modifierKeys; // modifier key state
- int menuStatus; // for status callback
- int statusX, statusY; // for status callback
- int menuNumber; // for menu and status callbacks
- int menuValue; // for menu callback
- bool visible; // for visibility callback
-};
-
-/***********************************************************
- * CLASS: GlutBWindow
- *
- * INHERITS FROM: BDirectWindow
- *
- * DESCRIPTION: basically a BWindow that won't quit
- ***********************************************************/
-class GlutBWindow : public BDirectWindow {
-public:
- GlutBWindow(BRect frame, char *name);
- ~GlutBWindow();
- void DirectConnected(direct_buffer_info *info);
- bool QuitRequested(); // exits app
- void Minimize(bool minimized); // minimized windows are not visible
- void Hide();
- void Show();
- GlutWindow *bgl;
- bool fConnectionDisabled;
-};