(cherry picked from commit c85ed83b84)

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1731 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2014-12-22 16:27:02 +00:00
parent 081efa33c4
commit 9e72134ab6
14 changed files with 49 additions and 49 deletions

View File

@ -755,7 +755,7 @@
2005-06-30 Sven Panne <sven.panne@aedion.de>
* src/freeglut_main.c: Ooops, forgot to set the current window in the
last commit. I'll have to test better before comitting... :-]
last commit. I'll have to test better before committing... :-]
* ChangeLog, src/freeglut_main.c: When a window is iconified, only an
UnmapNotify is sent, not a VisibilityNotify, so we have to handle the
window status callback in the former case, too. This fixes bug #763442
@ -814,7 +814,7 @@
2005-06-02 James Jones <puggles@users.sourceforge.net>
* ChangeLog, configure.ac, src/freeglut_internal.h: 2.4.0 Release
Candiate 5
Candidate 5
2005-05-26 John F. Fay <john.fay.ctr@eglin.af.mil>
@ -859,7 +859,7 @@
* src/freeglut_gamemode.c: Fixed SF bug #1204256: Off-by-one error in
X11 mode switching. The code which changes the X11 video mode has an
off-by-one error, resulting in a wrong mode or segfault. I've
refactored the code slighty to make it hopefully clearer what's going
refactored the code slightly to make it hopefully clearer what's going
on and corrected some #ifdefs on the way. Now at least the "One" demo
works for me.
* src/freeglut_window.c: Fixed SF bug #1204261: Mini space leak when
@ -927,7 +927,7 @@
* src/freeglut_joystick.c: Removing an unused function
* src/freeglut_init.c: Making the \"key repeat\" initialization
consistent with the rest of its usage; also making the
\"initDisplayString\" ever-so-slightly mroe general
\"initDisplayString\" ever-so-slightly more general
* ChangeLog, TODO, src/freeglut_window.c: Updating the ChangeLog and
TODO files in preparation for the upcoming release
@ -1419,7 +1419,7 @@
* src/freeglut_callbacks.c: Fixed the bug where glutDisplayFunc() was
effectively invoking glutPostRedsiplay(). This is wrong on the face of
it, and may be at root for some of the annoying "timing" issues we've
had with redisplay events being called inappopriately.
had with redisplay events being called inappropriately.
2004-02-19 rkrolib
@ -1506,7 +1506,7 @@
functions are modified to respect offscreen status.
(Excepting reshaping windows, there is not much useful interpretation
for managment of offscreen areas. Reshaping is possibly more work than
for management of offscreen areas. Reshaping is possibly more work than
it's worth to support, and GLUT specs allow us to ignore the request.)
* Cleanup for "offscreen" windows is a little different than for
@ -1533,7 +1533,7 @@
2004-01-16 rkrolib
* src/freeglut_main.c: Ammended a comment on fgCheckJoystickCallback().
* src/freeglut_main.c: Amended a comment on fgCheckJoystickCallback().
* src/freeglut_main.c: Minor style normalizations to minimize the diffs
between *now* and from before John's changes. No functional changes:
@ -1563,7 +1563,7 @@
* src/freeglut_main.c, src/freeglut_menu.c, src/freeglut_structure.c:
Split a few overlong lines.
Adjusted some spacing in a few spots to be more consistant with
Adjusted some spacing in a few spots to be more consistent with
freeglut style. Including one unindented if() body.
Eliminated a dead variable.
@ -1779,7 +1779,7 @@
(which during general display callback handling would result in
effectively a glutReshapeWindow()).
The code is now system-dependant. It should be abstracted to a
The code is now system-dependent. It should be abstracted to a
function, but is presently copied in two places. Sorry.
Also, inverted the order of the associated if()/else check (in both
@ -2033,7 +2033,7 @@
file.
NOTE: The prior version of the *.dsw file does not in fact have CRs. I
thought that it did. For consistancy, I am not putting them in in this
thought that it did. For consistency, I am not putting them in in this
version, either. (At least one person said that his MSVC++ system is
happy with the current files. If there are problems, we can easily add
the CRs, but that should be a separate commit...)
@ -2099,14 +2099,14 @@
* src/freeglut_menu.c: A first pass over freeglut_menu.c to bring it in
line with the rest of freeglut's style. Mostly re-indenting and
splitting long lines. For those that may be concerned: No, I didn't do
any more arrangments of the form (CONST == a) rather than (a ==
any more arrangements of the form (CONST == a) rather than (a ==
CONST). (^&
* progs/demos/Fractals_random/fractals_random.c: Altered the way that
the {random} value (from 0..3) is chosen.
Previously, it picked out two adjacent bits in the result of rand().
Unfortunately, these adjacent bits (at least on NetBSD) have a certain
amount of dependance. After a period (perhaps a thousand or so?), it
amount of dependence. After a period (perhaps a thousand or so?), it
starts to repeat the pattern of those two bits. (I think; I haven't
actually tested that directly.) This presumably is locking it into a
an an N-way attractor on the "snowflake", such that if you zoom in a
@ -2116,7 +2116,7 @@
What I've done now is to pick up two widely-spaced bits in a single
rand() call. (Perhaps we would do as well to pick up something like
bit #16 from two consecutive rand() calls?) These widely-spaced bits
have a lower statistical dependance on one another (if I can get away
have a lower statistical dependence on one another (if I can get away
with using that term for an arithmetic operation; though since stats
has more to do with sampling and less to do with true randomness, I
may be safe).
@ -2194,7 +2194,7 @@
* Don't write a == CONST. Instead, write CONST == a. Or, more
generally (in C like languages): Avoid putting an lvalue on the
left-hand side of an == comparison. (For consistancy, I try to avoid
left-hand side of an == comparison. (For consistency, I try to avoid
lvalues on the left- hand side of any comparison---but == is the most
notorious.)
@ -2314,7 +2314,7 @@
* src/freeglut_main.c: Missed a block where one level was 2-space
indented.
Nit-picked a few other lines for consistancy.
Nit-picked a few other lines for consistency.
2003-11-03 rkrolib
@ -2379,9 +2379,9 @@
* src/freeglut_window.c: Missed a few say-nothing-new comments in
fgOpenWindow(). Eeep. Should be better now. (^&
* src/freeglut_window.c: Cleansed fgCloseWindow(): * say-nothing-new
comments axed. * de-TABbed. * Made the white-space to be consistant.
comments axed. * de-TABbed. * Made the white-space to be consistent.
* src/freeglut_window.c: Cleaned up fgOpenWindow(): * Removed TABs. *
Made indentation consistant. * Deleted say-nothing-new comments. *
Made indentation consistent. * Deleted say-nothing-new comments. *
Changed an *error*check* from an assert to an if(). (The error-check
was on window creation; we don't want to lose that if the user
compiles with asserts deactivated. Also, assert()s really tell us more
@ -2390,14 +2390,14 @@
depend upon assert()s never being compiled away to null statements.) *
Added some XXX comments for things that bear some rumination.
* src/freeglut_window.c: Cleanup to fgSetWindow(). The usual suspects: *
Removed tabs. * Made indentation consistant. * Killed off
Removed tabs. * Made indentation consistent. * Killed off
say-nothing-new comments.
* src/freeglut_window.c: Cleanup to fgSetupixelFormat(). Should be no
functional changes.
Code facelift included:
* Consistant indentation. * Removal of all TABs (there were a bunch).
* Consistent indentation. * Removal of all TABs (there were a bunch).
* Fit to 80 columns.
* src/freeglut_window.c: There should be no changes to code
functionality, though a fair bit of little changes to the code
@ -2430,7 +2430,7 @@
In short, the code still has some issues, but I think that it's a bit
better.
(Oh, I also got rid of oustanding TABs.)
(Oh, I also got rid of outstanding TABs.)
* src/freeglut_structure.c: Eliminated most of the say-nothing-new
comments.
@ -2487,7 +2487,7 @@
mode does it. It's not ideal but it works. The glutGet() for the
window border sizes will also have to be fixed at some point.
* src/freeglut_window.c: Rewrote glutFullscreen(). It now correctly
places the window in X11. It now uses system dependant code for more
places the window in X11. It now uses system dependent code for more
efficient use of windowing system calls.
2003-10-29 rkrolib
@ -2497,7 +2497,7 @@
I missed a few lines that went past 80 columns. (^&
Also made formatting more consistant.
Also made formatting more consistent.
Added a couple of XXX comments re. FreeBSD vs. general BSD #ifdef's.
* src/freeglut_joystick.c: Should be entirely superficial changes to
@ -2505,7 +2505,7 @@
* Fit lines to 80 columns. (It does get tiresome seeing long lines
forced to break by the right-hand border of windows...(^&) *
Eliminated say-nothing-new comments. * Made formatting more consistant
Eliminated say-nothing-new comments. * Made formatting more consistent
in spots. * Eliminated some hard TAB characters.
* src/freeglut_joystick.c: Added Thierry's change to include
sys/param.h. This lets us pick out version numbers for OS releases
@ -2535,7 +2535,7 @@
Cleanup of fghGetConfig(). (One return statement, simpler code.)
Made glutSetOption() have a more consistant style---and also got its
Made glutSetOption() have a more consistent style---and also got its
lines to stay under 80 columns.
* src/freeglut_misc.c: Got the last of the say-nothing-new comments in
freeglut_misc.c.
@ -2580,7 +2580,7 @@
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
characters), I had to propagate 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
@ -2636,7 +2636,7 @@
* Expanded a comment re. some #define macros.
* Made colors and font choice system dependant. The UNIX freeglut
* Made colors and font choice system dependent. The UNIX freeglut
menus look more like UNIX GLUT menus, now. (This is PURELY a cosmetic
change. But it achieves better compatibility visually.)
* src/freeglut_main.c: Cleaned up glutMainLoop() a bit:
@ -2650,7 +2650,7 @@
into glutMainLoopEvent() for some reason.
If the X11 code could be tucked into another function,
glutMainLoopEvent() could be platform-independant.
glutMainLoopEvent() could be platform-independent.
2003-10-26 rkrolib
@ -2798,7 +2798,7 @@
Removed depth-buffer usage. (Also done for Fractals in previous
commit...)
* progs/demos/Fractals/fractals.c: A few minor changes: * glutInit*()
calls should preceed glutInit(), per se, generally. This is so that
calls should precede glutInit(), per se, generally. This is so that
glutInit()'s configuration (which picks up on user parameters) can
override application defaults. * glutInit() should be called before
ANY attempt to process {argv, argc}. This is because there may be
@ -2825,7 +2825,7 @@
this fix).
I did not touch the Microsoft side, because I don't know what their OS
does---nor if old GLUT was historically system-dependant about this.
does---nor if old GLUT was historically system-dependent about this.
2003-10-08 Eric Sandall
@ -2839,7 +2839,7 @@
The broad outlines are:
* Color schemes are now in variables, are closer to old GLUT, and are
system dependant (as old GLUT did). * You can change the font to any
system dependent (as old GLUT did). * You can change the font to any
bitmapped font more easily, which can aid in finding a better
approximation. (Old GLUT does not seem to have used a GLUT font for
the menus, which causes problems for us.) The menus rescale
@ -3138,7 +3138,7 @@
* configure.in, src/Makefile.am, src/freeglut_glutfont_definitions.c,
src/freeglut_internal.h: Added autoconf detection for the xf86 vid
mode extentions.
mode extensions.
2003-08-01 Eric Sandall
@ -3713,7 +3713,7 @@
freeglut-1.3/freeglut_structure.c, freeglut-1.3/freeglut_window.c,
genfonts/Makefile.am, genfonts/genfonts.c, genfonts/genstroke.c,
include/GL/freeglut.h, include/GL/freeglut_internal.h: Removed glib
dependancy
dependency
* configure.in, freeglut-1.3/Makefile.am, genfonts/Makefile.am: The
build system now looks for X.

View File

@ -70,7 +70,7 @@ feature hints from opengl-gamedev-l readers have been added.
<p>Somebody (Chris?) hinted me that the stroke fonts can be found in the XFree86
sources. I browsed through it and -- presto. Now I only need to define the stroke fonts
structure (should be very similiar to bitmapped one) and write quite a simple parser.
structure (should be very similar to bitmapped one) and write quite a simple parser.
<p>I've spent the (late) evening doing the init display string parsing and making
my logics classes homework :) Both is harder than I primarily thought, but fortunately

View File

@ -82,7 +82,7 @@ int fghPlatformGlutGetEGL ( GLenum eWhat )
return fghChooseConfig(&config);
}
/* This is system-dependant */
/* This is system-dependent */
case GLUT_WINDOW_FORMAT_ID:
if( fgStructure.CurrentWindow == NULL )
return 0;

View File

@ -38,7 +38,7 @@ int fghChooseConfig(EGLConfig* config) {
if (fgState.MajorVersion >= 2) {
/*
* Khronos does not specify a EGL_OPENGL_ES3_BIT outside of the OpenGL extension "EGL_KHR_create_context" and EGL 1.5. There are numerous references on the internet
* that say to use EGL_OPENGL_ES3_BIT (pre-EGL 1.5), followed by many saying they can't find it in any headers. In fact, the offical updated specification for EGL
* that say to use EGL_OPENGL_ES3_BIT (pre-EGL 1.5), followed by many saying they can't find it in any headers. In fact, the official updated specification for EGL
* does not have any references to OpenGL ES 3.x. Tests have shown that EGL_OPENGL_ES2_BIT will work with ES 3.x.
*/
ATTRIB_VAL(EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT);

View File

@ -378,7 +378,7 @@ struct tagSFG_Timer
/*
* A window and its OpenGL context. The contents of this structure
* are highly dependant on the target operating system we aim at...
* are highly dependent on the target operating system we aim at...
*/
typedef struct tagSFG_Context SFG_Context;
struct tagSFG_Context
@ -902,7 +902,7 @@ extern SFG_State fgState;
}
/*
* Following definitions are somewhat similiar to GLib's,
* Following definitions are somewhat similar to GLib's,
* but do not generate any log messages:
*/
#define freeglut_return_if_fail( expr ) \
@ -1008,7 +1008,7 @@ void fgEnumSubWindows( SFG_Window* window, FGCBWindowEnumerator enumCallback,
SFG_Window* fgWindowByHandle( SFG_WindowHandleType hWindow );
/*
* This function is similiar to the previous one, except it is
* This function is similar to the previous one, except it is
* looking for a specified (sub)window identifier. The function
* is defined in fg_structure.c file.
*/

View File

@ -65,7 +65,7 @@
* These variables are for rendering the freeglut menu items.
*
* The choices are fore- and background, with and without h for Highlighting.
* Old GLUT appeared to be system-dependant for its colors (sigh) so we are
* Old GLUT appeared to be system-dependent for its colors (sigh) so we are
* too. These variables should be stuffed into global state and initialized
* via the glutInit*() system.
*/

View File

@ -100,7 +100,7 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title,
/*
* Open the window now. The fgOpenWindow() function is system
* dependant, and resides in fg_window.c. Uses fgState.
* dependent, and resides in fg_window.c. Uses fgState.
*/
fgOpenWindow( window, title, positionUse, x, y, sizeUse, w, h, gameMode,
(GLboolean)(parent ? GL_TRUE : GL_FALSE) );
@ -332,7 +332,7 @@ void fgDestroyMenu( SFG_Menu* menu )
* This function should be called on glutInit(). It will prepare the internal
* structure of freeglut to be used in the application. The structure will be
* destroyed using fgDestroyStructure() on glutMainLoop() return. In that
* case further use of freeglut should be preceeded with a glutInit() call.
* case further use of freeglut should be preceded with a glutInit() call.
*/
void fgCreateStructure( void )
{

View File

@ -59,7 +59,7 @@
Following this, there is a numbered list of vertices. Following the
vertices are, one per line, a list of indices of vertices, describing
each patch. The first index in each patch is preceeded by the character
each patch. The first index in each patch is preceded by the character
"-" to delimit patch index lists. The patches are all bicubic Bezier
patches, so there are 16 vertices in each patch, and thus the vertex lists
are each 16 entries long. This is analogous to an "indexed polygon", if you

View File

@ -75,7 +75,7 @@ static int xrandr_resize(int xsz, int ysz, int rate, int just_checking)
XRRScreenConfiguration *xrr_config = 0;
Status result = -1;
/* NOTE: we have already determined that XR&R is availble and enabled before calling this */
/* NOTE: we have already determined that XR&R is available and enabled before calling this */
XRRQueryVersion(fgDisplay.pDisplay.Display, &ver_major, &ver_minor);
@ -572,7 +572,7 @@ void fgPlatformEnterGameMode( void )
* more changes and investigation.
*/
/* Get the current postion of the drawable area on screen */
/* Get the current position of the drawable area on screen */
XTranslateCoordinates(
fgDisplay.pDisplay.Display,
fgStructure.CurrentWindow->Window.Handle,

View File

@ -44,7 +44,7 @@
* freeglut_internal.h uses some GL types, but including the GL header portably
* is a bit tricky, so we include freeglut_std.h here, which contains the
* necessary machinery. But this poses another problem, caused by the ugly
* original defintion of the font constants in "classic" GLUT: They are defined
* original definition of the font constants in "classic" GLUT: They are defined
* as void* externally, so we move them temporarily out of the way by AN EXTREME
* CPP HACK.
*/

View File

@ -79,7 +79,7 @@ int fgPlatformGlutGet ( GLenum eWhat )
{
/*
* Those calls are somewhat similiar, as they use XGetWindowAttributes()
* Those calls are somewhat similar, as they use XGetWindowAttributes()
* function
*/
case GLUT_WINDOW_X:

View File

@ -94,7 +94,7 @@ int fghPlatformGlutGetGLX ( GLenum eWhat )
return fghChooseConfig(&config);
}
/* This is system-dependant */
/* This is system-dependent */
case GLUT_WINDOW_FORMAT_ID:
if( fgStructure.CurrentWindow == NULL )
return 0;

View File

@ -93,7 +93,7 @@ PKG_CONFIG_PATH=/tmp/freeglut-native-gles/share/pkgconfig/ cmake ..
<ul>
<li>OpenGL Wikibook's
<a href="https://gitorious.org/wikibooks-opengl/modern-tutorials/source/HEAD:tut04_transform-gles2"><tt>tut04_transform-gles2</tt>
example</a>: it uses a basic Makefile targetting <tt>freeglut-gles</tt></li>
example</a>: it uses a basic Makefile targeting <tt>freeglut-gles</tt></li>
<li><tt>progs/test-shapes-gles1/</tt> in the source distribution:
it is a standalone CMake app that uses FreeGLUT GLES (v1).</li>
</ul>

View File

@ -37,7 +37,7 @@ for developers to help out with further work on the Android and BlackBerry 10
ports. Furthermore, ports to Cocoa/Carbon on OSX, and maybe even Wayland
are planned, along with some enhancements to the API and implementation.
See <a href="progress.php">here</a> for an overview of the major points
on our todo list. You can easily help out by forking the unoffical clone
on our todo list. You can easily help out by forking the unofficial clone
of our <a
href="https://sourceforge.net/p/freeglut/code/HEAD/tree/">sourceforge.net
SVN repository</a> on <a