summaryrefslogtreecommitdiffstats
path: root/src/glut/beos/glutCursor.cpp
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/glutCursor.cpp
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/glutCursor.cpp')
-rw-r--r--src/glut/beos/glutCursor.cpp90
1 files changed, 0 insertions, 90 deletions
diff --git a/src/glut/beos/glutCursor.cpp b/src/glut/beos/glutCursor.cpp
deleted file mode 100644
index 3081fff44b3..00000000000
--- a/src/glut/beos/glutCursor.cpp
+++ /dev/null
@@ -1,90 +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: glutCursor.cpp
- *
- * DESCRIPTION: code for handling custom mouse cursors
- ***********************************************************/
-
-/***********************************************************
- * Headers
- ***********************************************************/
-#include <GL/glut.h>
-#include "glutint.h"
-#include "glutState.h"
-#include "glutCursors.h"
-
-static const unsigned char *cursorTable[] = {
- XC_arrow, /* GLUT_CURSOR_RIGHT_ARROW */
- XC_top_left_arrow, /* GLUT_CURSOR_LEFT_ARROW */
- XC_hand1, /* GLUT_CURSOR_INFO */
- XC_pirate, /* GLUT_CURSOR_DESTROY */
- XC_question_arrow, /* GLUT_CURSOR_HELP */
- XC_exchange, /* GLUT_CURSOR_CYCLE */
- XC_spraycan, /* GLUT_CURSOR_SPRAY */
- XC_watch, /* GLUT_CURSOR_WAIT */
- XC_xterm, /* GLUT_CURSOR_TEXT */
- XC_crosshair, /* GLUT_CURSOR_CROSSHAIR */
- XC_sb_v_double_arrow, /* GLUT_CURSOR_UP_DOWN */
- XC_sb_h_double_arrow, /* GLUT_CURSOR_LEFT_RIGHT */
- XC_top_side, /* GLUT_CURSOR_TOP_SIDE */
- XC_bottom_side, /* GLUT_CURSOR_BOTTOM_SIDE */
- XC_left_side, /* GLUT_CURSOR_LEFT_SIDE */
- XC_right_side, /* GLUT_CURSOR_RIGHT_SIDE */
- XC_top_left_corner, /* GLUT_CURSOR_TOP_LEFT_CORNER */
- XC_top_right_corner, /* GLUT_CURSOR_TOP_RIGHT_CORNER */
- XC_bottom_right_corner, /* GLUT_CURSOR_BOTTOM_RIGHT_CORNER */
- XC_bottom_left_corner, /* GLUT_CURSOR_BOTTOM_LEFT_CORNER */
-};
-
-/***********************************************************
- * FUNCTION: glutSetCursor (4.13)
- *
- * DESCRIPTION: set a new mouse cursor for current window
- ***********************************************************/
-void glutSetCursor(int cursor) {
- gState.currentWindow->Window()->Lock();
- gState.currentWindow->cursor = cursor;
- __glutSetCursor(cursor);
- gState.currentWindow->Window()->Unlock();
-}
-
-/***********************************************************
- * FUNCTION: __glutSetCursor
- *
- * DESCRIPTION: the actual cursor changing routine
- ***********************************************************/
-void __glutSetCursor(int cursor) {
- int realcursor = cursor;
- if (cursor < 0 || cursor > GLUT_CURSOR_BOTTOM_LEFT_CORNER) {
- switch(cursor) {
- case GLUT_CURSOR_INHERIT:
- return; // don't change cursor
- case GLUT_CURSOR_NONE:
- // this hides the cursor until the user moves the mouse
- // change it to HideCursor() AT YOUR OWN RISK!
- be_app->ObscureCursor();
- return;
- case GLUT_CURSOR_FULL_CROSSHAIR:
- realcursor = GLUT_CURSOR_CROSSHAIR;
- break;
- default:
- __glutWarning("unknown cursor\n");
- return;
- }
- }
- be_app->SetCursor(cursorTable[realcursor]);
-}
-
-/***********************************************************
- * FUNCTION: glutWarpPointer (x.xx)
- *
- * DESCRIPTION: move the mouse pointer to a new location
- * (note: can't do this in BeOS!)
- ***********************************************************/
-void glutWarpPointer(int x, int y) { }