Commit Graph

65 Commits

Author SHA1 Message Date
fayjf
248df90aef Patch for new Visual Studios to fix typos and quiet warnings per e-mail from Diederick C. Niehorster dated 6/5/2011 at 9:23 PM
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@924 7f0cb862-5218-0410-a997-914c9d46530a
2011-06-10 03:47:11 +00:00
fayjf
c6a776f086 Adding multitouch capability per e-mail from Florian Echtler dated 3/17/11 12:07 PM
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@905 7f0cb862-5218-0410-a997-914c9d46530a
2011-03-18 02:59:22 +00:00
fayjf
e5e5aebedf Addressing feature request 2116152 -- adding an fgError exit callback routine -- patch from Chris Marshall in e-mail dated 10/30/2010 2:06 PM
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@877 7f0cb862-5218-0410-a997-914c9d46530a
2010-11-01 04:13:54 +00:00
fayjf
c907da58a6 Making all Windows include file names lower-case for better *nix compatibility per e-mail from Martin Payne vintage 1/22/2010 6:15 AM.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@871 7f0cb862-5218-0410-a997-914c9d46530a
2010-01-25 03:57:50 +00:00
fayjf
cc885020fd Fixing a typo in a comment
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@869 7f0cb862-5218-0410-a997-914c9d46530a
2010-01-04 16:31:17 +00:00
fayjf
860aa2a786 Implementing feature request 2824176: detection of X11 special keys: SHIFT, CTRL, ALT
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@867 7f0cb862-5218-0410-a997-914c9d46530a
2010-01-04 04:07:03 +00:00
spanne
baf772ecb7 Added support for sRGB framebuffers via the GLX_ARB_framebuffer_sRGB /
WGL_ARB_framebuffer_sRGB extensions. Added support for context profiles via the
new parts of the GLX_ARB_create_context / WGL_ARB_create_context extensions.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@832 7f0cb862-5218-0410-a997-914c9d46530a
2009-08-10 18:39:58 +00:00
spanne
22ea7171fe Disable the ATEXIT_HACK for Watcom, their "exit" function has a different
calling convention, leading to compilation errors.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@826 7f0cb862-5218-0410-a997-914c9d46530a
2009-06-11 08:25:25 +00:00
spanne
2bf156719b Avoid warnings when the ATEXIT_HACK is used with GCC, making the hack even uglier.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@819 7f0cb862-5218-0410-a997-914c9d46530a
2009-05-22 15:50:24 +00:00
spanne
f3de81ff34 Added the ugly ATEXIT_HACK from GLUT 3.7, making freeglut binary compatible with the GLUT DLLs out in the wild.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@818 7f0cb862-5218-0410-a997-914c9d46530a
2009-05-22 15:20:03 +00:00
spanne
3e265117c6 Removed remnants of CVS.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@811 7f0cb862-5218-0410-a997-914c9d46530a
2009-04-05 12:47:32 +00:00
fayjf
0c89ab8be2 Making the definition of "WIN32_LEAN_AND_MEAN" conditional to enhance compatibility with GLEW per suggestion by Diederick C. Niehorster in e-mail dated Mon 3/9/2009 8:06 AM
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@794 7f0cb862-5218-0410-a997-914c9d46530a
2009-03-09 14:41:59 +00:00
fayjf
6633fd32ac Removing some errant tabs, fixing ticket #2137721, and adding special-key capability to recognizing the NumLock, Delete, and keypad '5' keys
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@764 7f0cb862-5218-0410-a997-914c9d46530a
2009-02-03 21:08:11 +00:00
spanne
a248ef8281 Added OpenGL 3.0 context creation API entries
glutInitContextVersion,
   glutInitContextFlags

and their related constants

   GLUT_INIT_MAJOR_VERSION
   GLUT_INIT_MINOR_VERSION
   GLUT_INIT_FLAGS

   GLUT_DEBUG
   GLUT_FORWARD_COMPATIBLE            

Note that this works with GLX only currently, the glutInitContext* API entries
have no effect for WGL yet.

TODO: Centralize the context creation code for WGL (the harder part) and use the
new wglCreateContextAttribsARB API entry (the easy part, re-use most of the GLX
code).


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@749 7f0cb862-5218-0410-a997-914c9d46530a
2008-11-02 21:30:53 +00:00
fayjf
4fddcfd08f Adding "glutFullScreenToggle" for X11 -- still needs implementation in Windows (e-mail by Jocelyn Frechot, Sun 11/25/2007 11:29 AM)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@738 7f0cb862-5218-0410-a997-914c9d46530a
2007-12-02 03:50:29 +00:00
fayjf
7f75464b6f Implementing Jocelyn Frechot's changes -- see e-mail of Thursday, 11/8/2007 9:12 AM.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@735 7f0cb862-5218-0410-a997-914c9d46530a
2007-11-12 04:06:19 +00:00
fayjf
55c6100806 Implementing Larry Ramey's "glutExit" feature (see e-mails from him on 11/9/05, 6/28/06)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@724 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-21 04:00:14 +00:00
fayjf
9fffa516e3 Implementing first part of Windows version of "GLUT_CAPTIONLESS" and "GLUT_BORDERLESS" per feature request "[ 1197016 ] need GLUT_CAPTIONLESS window option". Needs more work; menus are slightly mispositioned, X11 version does not support it, banner appears at beginning but disappears on window resize. But this is a start.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@723 7f0cb862-5218-0410-a997-914c9d46530a
2007-09-19 04:42:25 +00:00
joekrahn
6273d5e17b Added FREEGLUT_LIB_PRAGMAS to control MS library pragmas, and fixed NOMINMAX define.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@711 7f0cb862-5218-0410-a997-914c9d46530a
2006-09-26 03:18:18 +00:00
spanne
f3d8a6c845 Moved GLUT_INIT_STATE to <GL/freeglut_ext.h>, it is not part of the
original GLUT.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@691 7f0cb862-5218-0410-a997-914c9d46530a
2005-10-12 14:20:36 +00:00
fayjf
88b28ee963 Allowing compilation of Windows version by removing DLL decorations from deprecated joystick interface extensions
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@689 7f0cb862-5218-0410-a997-914c9d46530a
2005-10-06 14:01:56 +00:00
fayjf
a9ed0f7521 Implementing WATCOM support
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@681 7f0cb862-5218-0410-a997-914c9d46530a
2005-08-31 13:10:40 +00:00
spanne
c9d919e643 Made all the "glutJoystickXXX" functions part of the freeglut extensions.
If this is not what we want, we can easily #ifdef this away again...


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@672 7f0cb862-5218-0410-a997-914c9d46530a
2005-07-08 13:20:12 +00:00
brianp
baa96828be added comment about AUX flags
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@571 7f0cb862-5218-0410-a997-914c9d46530a
2005-03-23 15:14:32 +00:00
brianp
fd3bf94540 Aux color buffer support. Pass one of GLUT_AUX[1234] to glutInitDisplayMode.
Only implemented/tested on GLX, not Windows.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@567 7f0cb862-5218-0410-a997-914c9d46530a
2005-02-11 15:22:09 +00:00
brianp
e9be78b6fc Fix object/function pointer inconsistencies which are a problem for gcc 3.4.2.
Added GLUTproc type, returned by glutGetProcAddress().


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@566 7f0cb862-5218-0410-a997-914c9d46530a
2005-02-11 15:18:04 +00:00
spanne
a38edbb898 Make "gcc -Wall -pedantic -Werror" happy.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@537 7f0cb862-5218-0410-a997-914c9d46530a
2005-01-01 16:09:55 +00:00
spanne
14f372e2fa Improved ignorance.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@525 7f0cb862-5218-0410-a997-914c9d46530a
2004-12-31 13:42:51 +00:00
puggles
92180def60 John Fay: Direct/indirect rendering context change, fix a bug that somebody reported (about needing "GLUT_XLIB_IMPLEMENTATION" defined) and remove a false deprecation of a function.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@503 7f0cb862-5218-0410-a997-914c9d46530a
2004-05-12 00:33:12 +00:00
drgoldie
30aa3f91c3 added support for WindowsCE (building on top of klimt)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@484 7f0cb862-5218-0410-a997-914c9d46530a
2004-03-15 13:42:20 +00:00
rkrolib
b3f3ea2cf0 Completed removal of all support for the offscreen rendering.
If you wish to do offscreen supportin a portable manner, you will
no longer be able to do so with current versions of freeglut.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@481 7f0cb862-5218-0410-a997-914c9d46530a
2004-03-15 06:16:47 +00:00
rkrolib
813e5ed5ac Added "offscreen" demo, a very simple program that produces an onscreen
window and, upon command, renders a similar offscreen display and writes
the result to disk.

Also, modified the build structure for UNIX_X11 to autobuild the demo.
(Not done for WIN32 at this time.)

Also, forgot to previously commit the updated freeglut_ext.h include.
Eeep.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@465 7f0cb862-5218-0410-a997-914c9d46530a
2004-02-19 10:09:29 +00:00
nigels
4a51a82b08 Three supported win32 compilation environments: MSVC, Cygwin and MingW32
#pragma is specific to MS compiler


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@433 7f0cb862-5218-0410-a997-914c9d46530a
2003-12-30 02:55:39 +00:00
rkrolib
e1416ae642 Commit of work from Nigel:
Massive rework of the geometric primitive code.  Includes a new
primitive (cylinder; solid and wireframe) and corresponding update
to freeglut_ext.h for the prototype.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@364 7f0cb862-5218-0410-a997-914c9d46530a
2003-11-25 13:53:19 +00:00
rkrolib
b92f1915fe Removal of all remaining TABs in the freeglut *.[ch] files. (I missed a
few in the "one" demo, it seems, and some more crept back into
freeglut_(ext|font).c, presumably due to my own edits when I forgot to
use the "freeglut-c-mode" in EMACS.)


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@339 7f0cb862-5218-0410-a997-914c9d46530a
2003-11-11 11:52:14 +00:00
rkrolib
4672072aa7 Commit, mostly of work from John:
* Removed some say-nothing-useful comments.
 * Added some tentative mouse-wheel support.
 * Fairly massive reformatting of code.

I made some secondary changes to his changes:

 * One compilation error was fixed (missing close-paren + semicolon).
 * Deleted a few ore say-nothing-useful comments.
 * Some of John's code was strangely formatted to the point that it
   seemed completely out of place, so I took the liberty of reformatting
   it.  Since I used GNU EMACS's <tab> key (which re-indents rather than
   inserts TAB characters), I had to propogate some indentation changes
   a little further than the bare necessity to match up with John's
   changes.  (John seems to shoot for 2-space indents, while EMACS
   (and I, I confess) strongly prefer 4-space indents.  The code that
   I was re-indenting had been put to 8-space indents, however.)

I have *not* tested the code beyond compiling.  I assume that John did
(and that the compilation error was a result a minor change just before
asking me to commit).


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@255 7f0cb862-5218-0410-a997-914c9d46530a
2003-10-28 20:17:39 +00:00
cjp
f0f690766a Added --disable-replace-glut option to autoconf configure.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@236 7f0cb862-5218-0410-a997-914c9d46530a
2003-10-21 11:41:54 +00:00
puggles
1a55178f88 Resolve bug 806008 -- let Microsoft's compiler know to use Windows libraries even if not using our project files.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@192 7f0cb862-5218-0410-a997-914c9d46530a
2003-09-14 16:00:24 +00:00
puggles
6007988a39 Changes stroke function arguments from "const char*" to "const unsigned char *" - John Fay
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@170 7f0cb862-5218-0410-a997-914c9d46530a
2003-08-28 19:22:27 +00:00
cjp
a9a67dc3b5 Added double underscores to the header included macros.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@166 7f0cb862-5218-0410-a997-914c9d46530a
2003-08-27 16:47:14 +00:00
cjp
a3a9d6c04b This should put an end to the font binary compatibility issue.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@146 7f0cb862-5218-0410-a997-914c9d46530a
2003-07-23 22:09:24 +00:00
andi75
c44a5c0a48 changes for make dist
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@134 7f0cb862-5218-0410-a997-914c9d46530a
2003-07-12 19:34:28 +00:00
cjp
8dde4b4a17 Fix for the font binary compatibility problem.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@132 7f0cb862-5218-0410-a997-914c9d46530a
2003-07-11 17:50:22 +00:00
sandalle
4a231c5f7c Now installs freeglut_ext.h and glut.h to /usr/include/GL (was missing before)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@109 7f0cb862-5218-0410-a997-914c9d46530a
2003-06-28 02:21:23 +00:00
brianp
482f4b2bc5 XF86 game mode fixes, context sharing option. (John Fay)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@108 7f0cb862-5218-0410-a997-914c9d46530a
2003-06-27 15:10:06 +00:00
brianp
3dd2180f52 Assorted version 2.0.0 updates (John Fay).
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@105 7f0cb862-5218-0410-a997-914c9d46530a
2003-06-25 18:04:42 +00:00
brianp
36c63b7b43 Assorted updates from John Fay.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@94 7f0cb862-5218-0410-a997-914c9d46530a
2003-06-23 15:22:20 +00:00
brianp
49c170e8cd s/FREEGLUT_VERSION_1_3/FREEGLUT_VERSION_1_4/
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@82 7f0cb862-5218-0410-a997-914c9d46530a
2003-06-19 15:35:29 +00:00
sandalle
9af4d4ec7c GLUT_VERSION updates from John Fay
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@81 7f0cb862-5218-0410-a997-914c9d46530a
2003-06-19 15:33:38 +00:00
sandalle
77f40de0ba * Hopefully I did THIS one right (used 'cvs update' to Merge)
Authors - The first update in quite a while

ChangeLog - Added the recent changes

freeglut_callbacks.c - Added Aleksandar Donev's menu destruction callback

freeglut_internal.h - Added the user data to the structures and made the menu state/status callbacks window-independent

freeglut_menu.c - Removed several OpenGL compiler warnings and added A. Donev's menu user data functions

freeglut_structure.c - Added Aleksandar Donev's menu destruction callback

freeglut_teapot.c - Removed or suppressed several compiler warnings

freeglut_window.c - Updated the window positioning code and added A. Donev's window user data

freeglut_ext.h - Added the menu destruction callback and user data functions


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@79 7f0cb862-5218-0410-a997-914c9d46530a
2003-06-18 22:26:50 +00:00