diff --git a/.gitattributes b/.gitattributes index cc41260..9e84916 100644 --- a/.gitattributes +++ b/.gitattributes @@ -85,6 +85,14 @@ freeglut/freeglut/src/templates/cpp_template svn_keywords=Author+Date+Id+Revisio freeglut/freeglut/src/templates/header_template svn_keywords=Author+Date+Id+Revision freeglut/freeglut/stamp-h svn_keywords=Author+Date+Id+Revision freeglut/freeglut/stamp-h.in svn_keywords=Author+Date+Id+Revision +freeglut/web-src/docs/api.php svn_keywords=Author+Date+Id+Revision +freeglut/web-src/docs/install.php svn_keywords=Author+Date+Id+Revision freeglut/web-src/freeglut-style.css svn_keywords=Author+Date+Id+Revision +freeglut/web-src/images/OGL.png svneol=native#unset svn_keywords=Author+Date+Id+Revision +freeglut/web-src/images/chessdemo.png svneol=native#unset svn_keywords=Author+Date+Id+Revision +freeglut/web-src/images/freeglut_logo.png svneol=native#unset svn_keywords=Author+Date+Id+Revision +freeglut/web-src/images/freeglut_logo.xcf svneol=native#unset svn_keywords=Author+Date+Id+Revision +freeglut/web-src/images/freeglut_text.xcf svneol=native#unset svn_keywords=Author+Date+Id+Revision +freeglut/web-src/images/tuxcake.png svneol=native#unset svn_keywords=Author+Date+Id+Revision freeglut/web-src/index.php svn_keywords=Author+Date+Id+Revision freeglut/web-src/template.php svn_keywords=Author+Date+Id+Revision diff --git a/freeglut/web-src/docs/api.php b/freeglut/web-src/docs/api.php new file mode 100644 index 0000000..d704507 --- /dev/null +++ b/freeglut/web-src/docs/api.php @@ -0,0 +1,22 @@ +1; $slashes--) { $require_target .= "../"; } +$require_target .= "template.php"; +require($require_target); + +# Now set the title of the page: +setPageTitle("API Documentation"); + +# Make the header. +generateHeader($_SERVER['PHP_SELF']); +?> + +
Notes on usage
+

freeglut is platform independent, but specific examples here will assume the use of the GNU C compiler and the GNU C library.

+ + + \ No newline at end of file diff --git a/freeglut/web-src/docs/install.php b/freeglut/web-src/docs/install.php new file mode 100644 index 0000000..b120b3e --- /dev/null +++ b/freeglut/web-src/docs/install.php @@ -0,0 +1,50 @@ +1; $slashes--) { $require_target .= "../"; } +$require_target .= "template.php"; +require($require_target); + +# Now set the title of the page: +setPageTitle("Installation Instructions"); + +# Make the header. +generateHeader($_SERVER['PHP_SELF']); +?> + +
How to install freeglut...
+

It's not *that* hard...

+ +
Download freeglut
+

First, you need to download a freeglut release. Newer is generally better, but unless you know what you're doing, you should use a release marked "Stable." So download the newest Stable release that you can.

+ +
Untar and configure the packages
+

Copy the tarball you downloaded into a temporary directory. Untar it as follows:

+
tar -jvxf freeglut-2.X.X.tar.bz2
+ +
Change to the resulting directory:
+
cd freeglut-2.X.X
+ +
Now, configure the packages:
+
./configure
+ +
Build and install freeglut
+

Once that completes, it's time to build and install freeglut (Note that you will have to be the superuser to make install).

+ +

This is as simple as:

+ +
make all +make install
+ + +
(Optional) Making symlinks to replace GLUT
+

Make a symlink from libfreeglut.so.0.2.0 to libglut.so.3, libglut.so.3.7 and libglut.so.3.7.0

+ +
ln -s /usr/lib/libfreeglut.so.0.2.0 /usr/lib/libglut.so.3
+ln -s /usr/lib/libfreeglut.so.0.2.0 /usr/lib/libglut.so.3.7
+ln -s /usr/lib/libfreeglut.so.0.2.0 /usr/lib/libglut.so.3.7.0
+ + \ No newline at end of file diff --git a/freeglut/web-src/freeglut-style.css b/freeglut/web-src/freeglut-style.css index 313f7f8..a0b3228 100644 --- a/freeglut/web-src/freeglut-style.css +++ b/freeglut/web-src/freeglut-style.css @@ -1,12 +1,13 @@ BODY { margin-top: 0px ; + margin-left: 140px ; background-color: #FFFFFF; color: #000000; } A { text-decoration: none; - color: #DDAADD; + color: #DD3322; } A.hover { @@ -14,9 +15,9 @@ A.hover { } BLOCKQUOTE { - color: #FFFFFF ; - border: 2px #222222 solid ; - background-color: #333333 ; + color: #000000 ; + border: 1px #0000CC solid ; + background-color: #C0C0FF ; padding: 3px; } @@ -26,64 +27,70 @@ BLOCKQUOTE { width: 100%; } +.indent { + margin-left: 20px; +} + .navbar-left { + font-size: 0.8em color: #000000 ; - background-color: #333333 ; + background-color: #EDEDFF ; position: absolute ; + float: left; left: 0px ; - width: 100px ; - float: left ; - border: 2px #222222 solid ; + width: 130px ; + border: 1px #A0A0A0 solid ; +} + +.navbar-smalltext { + font-size: 0.7em; + text-align: center; + font-style: italic; } .navbar-header { - font-size: 1.2em; - color: #AAAAAA; + font-size: 1.0em; + color: #151111; background-color: transparent; text-align: center; } .navbar-item { font-size: 1.0em ; - color: #FFFF00 ; - background-color: transparent ; - border: 1px #111111 solid ; + color: #303010 ; + background-color: #FFFFFF ; + border: 1px #EDEDFF solid ; margin-top: 0px; - padding: 3px; + padding: 1px; text-align: center; } -.smallblock { - font-size: 1.0em; - color: #FFFFFF; - background-color: #221A22; - border: 1px #111111 solid ; - padding: 2px; -} - -.main-side { - margin-left: 110px; - margin-right: 10px; -} - -.title { - font-size: 1.8em; - color: #FFFFFF; - background-color: transparent; - padding: 5px; +.img-right { + padding: 1px; + float: right; + color: #209040; text-align: center; } -.block { - font-size: 1.0em; - border: 2px #333333 solid ; - padding: 3px; - background-color: #111111; +.news-item { + border: 1px #000000 solid ; + margin-bottom: 5px; + padding: 8px; + background-color: #EFEFFF; + color: #000000; } -.block-title { +.news-header { font-size: 1.4em; - border: 2px #665533 solid ; - padding: 3px; - background-color: #333333; + border: 1px #111166 solid ; + background-color: #FEFEFF; + color: #000000; + padding: 5px; + width: 90%; +} + +.news-subheader { + font-size: 1.1em; + border-bottom: 1px #111166 solid ; + width: 100%; } \ No newline at end of file diff --git a/freeglut/web-src/images/OGL.png b/freeglut/web-src/images/OGL.png new file mode 100644 index 0000000..d6bb741 Binary files /dev/null and b/freeglut/web-src/images/OGL.png differ diff --git a/freeglut/web-src/images/chessdemo.png b/freeglut/web-src/images/chessdemo.png new file mode 100644 index 0000000..96a49a6 Binary files /dev/null and b/freeglut/web-src/images/chessdemo.png differ diff --git a/freeglut/web-src/images/freeglut_logo.png b/freeglut/web-src/images/freeglut_logo.png new file mode 100644 index 0000000..b239f93 Binary files /dev/null and b/freeglut/web-src/images/freeglut_logo.png differ diff --git a/freeglut/web-src/images/freeglut_logo.xcf b/freeglut/web-src/images/freeglut_logo.xcf new file mode 100644 index 0000000..0288216 Binary files /dev/null and b/freeglut/web-src/images/freeglut_logo.xcf differ diff --git a/freeglut/web-src/images/freeglut_text.xcf b/freeglut/web-src/images/freeglut_text.xcf new file mode 100644 index 0000000..c7269de Binary files /dev/null and b/freeglut/web-src/images/freeglut_text.xcf differ diff --git a/freeglut/web-src/images/tuxcake.png b/freeglut/web-src/images/tuxcake.png new file mode 100644 index 0000000..ccb8e66 Binary files /dev/null and b/freeglut/web-src/images/tuxcake.png differ diff --git a/freeglut/web-src/index.php b/freeglut/web-src/index.php index 022328a..1ccae56 100644 --- a/freeglut/web-src/index.php +++ b/freeglut/web-src/index.php @@ -1,9 +1,23 @@ 1; $slashes--) { $require_target .= "../"; } +$require_target .= "template.php"; +require($require_target); + +# Now set the title of the page: +setPageTitle("About"); + +# Make the header. +generateHeader($_SERVER['PHP_SELF']); ?> +

+GLUT's "Chess" demo
+running with freeglut.
+ +
What?

freeglut is a completely OpenSourced alternative to the OpenGL Utility Toolkit (GLUT) library. GLUT was originally written by Mark Kilgard to support the sample programs in the second edition OpenGL 'RedBook'. Since then, GLUT has been used in a wide variety of practical applications because it is simple, universally available and highly portable.

GLUT (and hence freeglut) allows the user to create and manage windows containing OpenGL contexts on a wide range of platforms and also read the mouse, keyboard and joystick functions.

@@ -18,22 +32,38 @@ generateHeader();
When?

Pawel started freeglut development on December 1st, 1999. The project is now a virtually 100% replacement for the original GLUT with only a few departures (such as the abandonment of SGI-specific features such as the Dials&Buttons box and Dynamic Video Resolution).

+
Downloads...

Below are file links for the freeglut project. README files are included, or you can check the install documentation. Have fun!

+
+
Stable Releases
+

+ Freeglut 2.2.0 [Released: 12 December 2003]
+ Freeglut 2.0.1 [Released: 23 October 2003] +

Prepackaged Releases

The freeglut project does not support packaged versions of freeglut excepting, of course, the tarballs distributed here. However, various members of the community have put time and effort into providing source or binary rollups, and we thank them for their efforts. Here's a list which is likely incomplete:

-

Andy Piper's RedHat Fedora RPMs

+

+ Andy Piper's RedHat Fedora RPMs +

If you have problems with these packages, please contact their maintainers - we of the freeglut team probably can't help.

+
Development Releases
+

+ Nightly CVS Tarball
+ Anonymous CVS Instructions +

+
+
Questions?

Don't be afraid to ask for help. We don't bite. Much.

Send freeglut related questions to the appropriate freeglut mailing list:

diff --git a/freeglut/web-src/template.php b/freeglut/web-src/template.php index 943792d..0db00d0 100644 --- a/freeglut/web-src/template.php +++ b/freeglut/web-src/template.php @@ -1,17 +1,41 @@ "Name of Page", page=>"Filename/URL"), +# +$sidebarentries = array(0, # We skip this entry anyway... + array(name=>"About freeglut", page=>"/index.php"), + array(name=>"Latest News", page=>"/news.php"), + array(name=>"Info for Users", page=>"/uinfo.php"), + array(name=>"Info for Developers", page=>"/dinfo.php"), + 1, + array(name=>"Download", page=>"/index.php#download"), + 1, + array(name=>"How You Can Help", page=>"/help.php"), + array(name=>"Look at Progress", page=>"/progress.php"), + 1, + array(name=>"Report a Bug", page=>"http://sourceforge.net/tracker/?func=add&group_id=1032&atid=101032"), + array(name=>"Request a Feature", page=>"http://sourceforge.net/tracker/?func=add&group_id=1032&atid=351032"), + 1, + array(name=>"Go to SourceForge", page=>"http://freeglut.sourceforge.net/fg/index.php?id=408") + +); + +function generateHeader($self) { + global $title; ?> <? echo $title ?> - + "; + else if ($current_page == $item[page]) + echo "
$item[name]
"; + else + echo "
$item[name]
"; +} + +function generateSideBar($current_page) { + global $sidebarentries; + echo "
"; + + echo "
+
The Free OpenGL Utility Toolkit

"; + + reset($sidebarentries); + while (next($sidebarentries)) { + printMenuItem(current($sidebarentries), $current_page); + } + + echo "
+
"; + + echo "
"; +} + +function setPageTitle($title_inc) { + global $site_title, $title; $title = $site_title . " :: " . $title_inc; }