|
From: Brian M. <ma...@us...> - 2004-03-30 17:30:19
|
Update of /cvsroot/java-game-lib/LWJGL/www/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12642/include Added Files: default.php faq.php news.php Log Message: readded site under www --- NEW FILE: default.php --- <?php // LWJGL menu // ======================================================= $menuItems['LWJGL'] = array( "home", "/", "_top", "about", "about.php", "_top", "download", "download.php", "_top", "installation", "installation.php", "_top", "documentation", "documentation.php", "_top", "forum", "http://forum.lwjgl.org/", "_blank", "faq", "faq.php", "_top", "projects", "projects.php", "_top", // "demos", "demos.php", "_top", "license", "license.php", "_top", "contact", "contact.php", "_top", "credits", "credits.php", "_top"); // Developers $menuItems['Developers'] = array( "CVS tree", "http://cvs.sourceforge.net/viewcvs.py/java-game-lib/", "_blank", "project home", "http://sourceforge.net/projects/java-game-lib", "_blank"); // Developers $menuItems['Miscellaneous'] = array( "links", "links.php", "_top", "changelog", "changelog.php", "_top"); // ------------------------------------------------------- //////////////////////////////////////////////////////////////////////////////// // Prints the left navigation menu, makring $current as selected element //////////////////////////////////////////////////////////////////////////////// function printMenu($current) { // LWJGL menu global $menuItems; // print out beginning echo "<!-- left navigation -->\n"; echo "<div class=\"menu\">\n"; // iterate each array for sub items foreach ($menuItems as $key => $value) { echo " <div class=\"menu_header\">" . $key ."</div>\n"; for ($i = 0; $i < count($value); $i+=3) { echo " "; if (strcmp($current, $value[$i]) == 0) { echo "<div class=\"current_page\">" . $value[$i] . "</div>\n"; } else { echo "<a class=\"menu_item\" href=\"" . $value[$i+1] . "\" target=\"" . $value[$i+2] . "\">" . $value[$i] . "</a>\n"; } } echo " <br>\n\n"; } echo " <!-- icon block -->\n"; echo " <div align=\"center\">\n"; echo " <!-- donation -->\n"; echo " <p> </p>\n"; echo " <a href=\"http://sourceforge.net/donate/index.php?group_id=58488\"><img src=\"http://images.sourceforge.net/images/project-support.jpg\" width=\"88\" height=\"32\" border=\"0\" alt=\"Support This Project\" title=\"Donate to LWJGL\"/></a>\n"; echo " <!-- SF icon -->\n"; echo " <br><br>\n"; echo " <a href=\"http://sourceforge.net\"><img src=\"http://sourceforge.net/sflogo.php?group_id=58488&type=1\" width=\"88\" height=\"31\" border=\"0\" alt=\"SourceForge.net Logo\" title=\"SourceForge.net Logo\"></a>\n"; echo " </div>\n"; echo " <br>\n"; echo "</div>\n\n"; } //////////////////////////////////////////////////////////////////////////////// // Prints the LWJGL header, using $title and $header as supplied name // If no header or title is given, defaults are used //////////////////////////////////////////////////////////////////////////////// function printHeader($title, $header) { // check for title if(!isset($title)) { $title = "LWJGL"; } // check for header if(!isset($header)) { $header = "Lightweight Java Game Library"; } echo "<html>\n"; echo " <head>\n"; echo " <title>" . $title . "</title>\n"; echo " <link type=\"text/css\" rel=\"stylesheet\" href=\"default.css\">\n"; echo " </head>\n"; echo "<body>\n"; echo "<!-- top header -->\n"; echo "<div class=\"header\"><a class=\"header\" href=\"/\">" . $header . "</a></div>\n\n"; } //////////////////////////////////////////////////////////////////////////////// // Prints the LWJGL footer //////////////////////////////////////////////////////////////////////////////// function printFooter() { echo "<div class=\"footer\">this site and its content is © <a class=\"footer\" href=\"mailto:in...@lw...\">lwjgl.org</a>"; echo "<!-- java.net icon -->\n"; echo "<br><br>\n"; echo "</div>\n\n"; echo "</body>"; echo "</html>"; } ?> --- NEW FILE: news.php --- <?php // News // ======================================================= $news[0] = array( "New site!", "Welcome to the grand opening of our new site! Please browse around. Should you find any errors or have trouble finding exactly what your looking for, please email <a href=\"mailto:in...@lw...\">in...@lw...</a>", "Sunday, March 28th, 2004"); // ------------------------------------------------------- ///////////////////////////////////////////////////////////////////////////////// // Prints the news //////////////////////////////////////////////////////////////////////////////// function printNews() { global $news; echo "<!-- news area -->\n "; echo "<div class=\"news\">"; echo "<h2>News</h2>"; // iterate each array for sub items foreach ($news as $item) { echo "\n <div class=\"news_item\">"; echo "<h4>" . $item[0] . "</h4>"; echo "<p>"; echo "$item[1]"; echo "<span class=\"date\"><br><i>$item[2]</i></span>"; echo "</p>"; echo "</div>"; echo "<br>"; } echo "\n </div>\n"; } ?> --- NEW FILE: faq.php --- <?php // News // ======================================================= $faq[0] = array( "java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path.", "When running the examples or my own program I get a 'Exception in thread \"main\" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path.", "The VM cannot locate the lwjgl runtime library. Specify the path to it using -Djava.library.path=<path/to/library>"); $faq[1] = array( "Applets and LWJGL", "Is it possible to use LWJGL from an Applet?", "Unfortunately, no. However you can start a LWJGL application from a webpage using Java WebStart. For more information click <a href=\"http://www.google.com/search?q=java+web+start+tutorial\" target=\"_blank\">here</a>"); $faq[2] = array( "OpenGL ES and LWJGL", "Will LWJGL support OpenGL ES", "OpenGL ES is basically a subset of OpenGL, and we will make the best efforts to get LWJGL running on a device. However we have yet to get our hands on one :("); $faq[3] = array( "ByteBuffer VS. Arrays", "Whats up with all those ByteBuffers? Why not just use arrays?", "Basically because it's the fastest way to transport data to the OpenGL layer. For more indepth discussion, click <a href=\"http://www.puppygames.net/forums/viewtopic.php?t=295\" target=\"_blank\">here</a>"); $faq[4] = array( "Lack of documentation", "I have been looking all around the site, but I can't find any documentation, apart from the javadoc?", "Yes, this is a known \"issue\". We're only a handfull of developers doing this in our sparetime. We therefor tend to prioritize what we need, or want to work on. Documentation, alas, tend to be at the bottom of the chain. We are aware of it though..."); // ------------------------------------------------------- ///////////////////////////////////////////////////////////////////////////////// // Prints the FAQs //////////////////////////////////////////////////////////////////////////////// function printFAQ() { global $faq; echo "<!-- faq area -->\n "; echo "<div class=\"faq\">"; echo "<h2>Frequently Asked Questions</h2>"; // create a list of Q&A // iterate each array for sub items $count = 0; echo "<p><ul>"; foreach ($faq as $item) { echo "<li><a href=\"#" . $count++ . "\">$item[0]</a></li>"; } echo "</ul></p>"; echo "<p>If you have a question which isn't answered here, please post it to the <a href=\"http://forum.lwjgl.org\" target=\"_blank\">forum</a></p>"; echo "<hr>"; // iterate each array for sub items $count = 0; foreach ($faq as $item) { echo "\n <div class=\"faq_item\">"; echo "<p><a name=\"#" . $count++ . "\"></a>"; echo "<font size=\"4\" color=\"ff0000\"><b>Q</b>: </font>" . $item[1]; echo "<br>"; echo "<font size=\"4\" color=\"ff0000\"><b>A</b>: </font>" . $item[2]; echo "</p>"; echo "</div>"; } echo "\n </div>\n"; } ?> |