From: Brian M. <ma...@us...> - 2002-12-20 21:23:33
|
Update of /cvsroot/java-game-lib/LWJGL/website/documents In directory sc8-pr-cvs1:/tmp/cvs-serv9069/documents Added Files: credits.html index.html license.html links.html openal_c-to-java.html readme.html Log Message: website files --- NEW FILE: credits.html --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/website/documents/credits.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>lwjgl</title> <meta http-equiv="content-type" content="text/html; charset=windows-1252"> <style type="text/css"> <!-- A:link { color: #003399; text-decoration: none; } A:visited { color: #003399; text-decoration: none; } A:hover { color: #953206; text-decoration: underline; } --> </style> </head> <body> <font face="Fixedsys"> <p> The following people have helped to make this project what it is today:<br> - Caspian Rychlik-Prince <<a href="mailto:cp...@sh...">cp...@sh...</a>><br> - Brian Matzon <<a href="mailto:br...@ma...">br...@ma...</a>><br> - Niels Jørgensen <<a href="mailto:nj...@ni...">nj...@ni...</a>><br> - Tristan Campbell <<a href="mailto:tr...@ha...">tr...@ha...</a>><br> </p> <p> additional credits goes to:<br> - Joseph I. Valenzuela [OpenAL]<br> - Lev Povalahev [OpenGL Extensions]<br> </p> </font> </body> </html> --- NEW FILE: index.html --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/website/documents/index.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>lwjgl</title> <meta http-equiv="content-type" content="text/html; charset=windows-1252"> <style type="text/css"> <!-- A:link { color: #003399; text-decoration: none; } A:visited { color: #003399; text-decoration: none; } A:hover { color: #953206; text-decoration: underline; } --> </style> </head> <body> <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%"> <tr> <td align="center" valign="middle"> <div align="center"> <a href="../index.html"> <img src="../images/logo.png" alt="lwjgl logo" width="225" height="62" title="Welcome to the lwjgl website!" border="0"></a><br> <table cellpadding="2" cellspacing="2" border="0" width="500" align="center"> <tr> <td colspan="4" valign="top" width="100%" align="left"> <img name="miscellaneous" border="0" src="../images/miscellaneous.png" width="151" height="35" alt="miscellaneous documents"></td> </tr> <tr> <td colspan="4" align="left"> <img border="0" src="../images/bullet.png" align="center" width="22" height="15" hspace="5" vspace="5" alt="bullet"><font face="Fixedsys" size="2"><a href="readme.html">project readme</a></font><br> <img border="0" src="../images/bullet.png" align="center" width="22" height="15" hspace="5" vspace="5" alt="bullet"><font face="Fixedsys" size="2"><a href="credits.html">project credits</a></font><br> <img border="0" src="../images/bullet.png" align="center" width="22" height="15" hspace="5" vspace="5" alt="bullet"><font face="Fixedsys" size="2"><a href="license.html">project license</a></font><br> </td> </tr> <tr> <td colspan="4"> </td> </tr> <tr> <td colspan="4" valign="top" width="100%" align="left"> <img name="lwjgl" border="0" src="../images/lwjgl.png" width="61" height="35" alt="lwjgl documents"></td> </tr> <tr> <td colspan="4" align="left"> <img border="0" src="../images/bullet.png" align="center" width="22" height="15" hspace="5" vspace="5" alt="bullet"><font face="Fixedsys" size="2"><a href="tutorials/intro.html">intro</a> (info about lwjgl)</font><br> <img border="0" src="../images/bullet.png" align="center" width="22" height="15" hspace="5" vspace="5" alt="bullet"><font face="Fixedsys" size="2"><a href="javadoc/">javadoc</a> (javadoc java source files)</font> <br> <img border="0" src="../images/bullet.png" align="center" width="22" height="15" hspace="5" vspace="5" alt="bullet"><font face="Fixedsys" size="2"><a href="openal_c-to-java.html">gl/al conversion document</a> (typical array conversion)</font></td> </tr> <tr> <td colspan="4"> </td> </tr> <tr> <td colspan="4" valign="top" width="100%" align="left"> <img name="opengl" border="0" src="../images/opengl.png" width="73" height="35" alt="opengl documents"></td> </tr> <tr> <td colspan="4" align="left"> <img border="0" src="../images/bullet.png" align="center" width="22" height="15" hspace="5" vspace="5" alt="bullet"><font face="Fixedsys" size="2"><a href="tutorials/opengl/skeleton_code.html">skeleton_code</a></font></td> </tr> <tr> <td colspan="4"> </td> </tr> <tr> <td colspan="4" valign="top" width="100%" align="left"> <img name="openal" border="0" src="../images/openal.png" width="73" height="35" alt="openal documents"></td> </tr> <tr> <td colspan="4" align="left"> <img border="0" src="../images/bullet.png" align="center" width="22" height="15" hspace="5" vspace="5" alt="bullet"><font face="Fixedsys" size="2"><a href="tutorials/openal/openal_basics.html">openal basics</a></font></td> </tr> <tr> <td colspan="4"> </td> </tr> <tr> <td colspan="4" valign="top" width="100%" align="left"> <img name="openal" border="0" src="../images/input.png" width="61" height="35" alt="input documents"></td> </tr> <tr> <td colspan="4" align="left"> <img border="0" src="../images/bullet.png" align="center" width="22" height="15" hspace="5" vspace="5" alt="bullet"><font face="Fixedsys" size="2">no documents yet</font></td> </tr> <tr> <td colspan="4"> </td> </tr> <tr> <td colspan="4" valign="top" width="100%" align="left"> <img name="openal" border="0" src="../images/vector.png" width="73" height="35" alt="vector documents"></td> </tr> <tr> <td colspan="4" align="left"> <img border="0" src="../images/bullet.png" align="center" width="22" height="15" hspace="5" vspace="5" alt="bullet"><font face="Fixedsys" size="2">no documents yet</font></td> </tr> <tr> <td colspan="4"> </td> </tr> <tr> <td colspan="4" align="center"> <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=""></a><br> <font face="Fixedsys" color="#C0C0C0" size="1">this site and its content is © <a href="mailto:ma...@us...?subject=[LWJGL] ">lwjgl.org</a></font><br> </td> </tr> </table> </div> </td> </tr> </table> </body> </html> --- NEW FILE: license.html --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/website/documents/license.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>lwjgl</title> <meta http-equiv="content-type" content="text/html; charset=windows-1252"> <style type="text/css"> <!-- A:link { color: #003399; text-decoration: none; } A:visited { color: #003399; text-decoration: none; } A:hover { color: #953206; text-decoration: underline; } --> </style> </head> <body> <font face="Fixedsys"> /* <br> * Copyright (c) 2002 Light Weight Java Game Library Project<br> * All rights reserved.<br> * <br> * Redistribution and use in source and binary forms, with or without<br> * modification, are permitted provided that the following conditions are<br> * met:<br> * <br> * * Redistributions of source code must retain the above copyright <br> * notice, this list of conditions and the following disclaimer.<br> *<br> * * Redistributions in binary form must reproduce the above copyright<br> * notice, this list of conditions and the following disclaimer in the<br> * documentation and/or other materials provided with the distribution.<br> *<br> * * Neither the name of 'Light Weight Java Game Library' nor the names of <br> * its contributors may be used to endorse or promote products derived <br> * from this software without specific prior written permission.<br> * <br> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS<br> * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED<br> * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR<br> * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR <br> * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,<br> * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, <br> * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR <br> * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF<br> * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING <br> * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS<br> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.<br> */</font><font face="Courier New"><br> </font> </body> </html> --- NEW FILE: links.html --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/website/documents/links.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>lwjgl</title> <meta http-equiv="content-type" content="text/html; charset=windows-1252"> <style type="text/css"> <!-- A:link { color: #003399; text-decoration: none; } A:visited { color: #003399; text-decoration: none; } A:hover { color: #953206; text-decoration: underline; } --> </style> </head> <body> <font face="Fixedsys"> <p> The following list of links are sites that either relate to our effort, or we just think are cool:<br><br> - <a href="http://www.javagaming.org/" target="blank">http://www.javagaming.org/</a><br> Site related to Java gamming <br> <br> - <a href="http://sourceforge.net/projects/spgl/" target="blank">http://sourceforge.net/projects/spgl/</a><br> Game library building on top of lwjgl <br> <br> - <a href="http://www.hardcode.de/jxinput/" target="blank">http://www.hardcode.de/jxinput/</a><br> More feature complete input support for java <br> <br> </font> </body> </html> --- NEW FILE: openal_c-to-java.html --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/website/documents/openal_c-to-java.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>OpenAL Tutoral</title> <meta http-equiv="content-type" content="text/html; charset=windows-1252"> <meta name="author" content="Brian Matzon"> <meta name="description" content="Basic sound using OpenAL"> </head> <body> <h1 align="center">Array Conversion<br> <font size="-1">(by Brian Matzon <<a href="mailto:br...@ma...">br...@ma...</a>>)</font><br> </h1> <b>1.0 About this document</b><br> This document describes the typical rules for converting arrays often used in C/C++ OpenAL (and indeed OpenGL too) code.<br> It is not bullet proof, but should handle most cases.<br> <br> <b>1.1 Array to ByteBuffer<br> </b>When using an array of some data type in C/C++ you will typically convert that<br> to the corresponding ByteBuffer type. ie:<p style="border-style: solid; border-width: 1px; padding: 3px; background-color: rgb(255,255,204);"><tt>ALfloat floatv[3];</tt></p> <p>becomes</p> <p style="border-style: solid; border-width: 1px; padding: 3px; background-color: rgb(255,255,204);"><tt> FloatBuffer floatv = createFloatBuffer(3);</tt></p> <p>In this example, <tt>createFloatBuffer</tt> is this utility method:</p> <p style="border-style: solid; border-width: 1px; padding: 3px; background-color: rgb(255,255,204);"><tt> public FloatBuffer createFloatBuffer(int size) {<br> //allocate bytebuffer, using 4 bytes per float<br> ByteBuffer temp = ByteBuffer.allocateDirect(4*size);<br> temp.order(ByteOrder.nativeOrder());<br> <br> return temp.asFloatBuffer();<br> }</tt></p> <p> <b>1.2 Examples</b><br> Using the above FloatBuffer, you would typically use it like this (examples taken from altest.c/ALTest.java):</p> <p> <b>1.2.1 Example 1</b></p> <p style="border-style: solid; border-width: 1px; padding: 3px; background-color: rgb(255,255,204);"><tt> alGetListenerfv(AL_POSITION, floatv);</tt></p> <p> becomes</p> <p style="border-style: solid; border-width: 1px; padding: 3px; background-color: rgb(255,255,204);"><tt> al.getListenerfv(AL.POSITION, Sys.getDirectBufferAddress(floatv));</tt></p> <p><b>1.2.2 Example 2</b></p> <p style="border-style: solid; border-width: 1px; padding: 3px; background-color: rgb(255,255,204);"><tt> if (floatv[0] != 100.0)) {</tt></p> <p>becomes:</p> <p style="border-style: solid; border-width: 1px; padding: 3px; background-color: rgb(255,255,204);"><tt> if (floatv.get(0) != 100.0f) {</tt></p> <p><b>1.2.3 Example 3</b></p> <p style="border-style: solid; border-width: 1px; padding: 3px; background-color: rgb(255,255,204);"><tt> alGetListener3f(AL_POSITION, &floatv[0], <br> &floatv[1], <br> &floatv[2]);</tt></p> <p>becomes</p> <p style="border-style: solid; border-width: 1px; padding: 3px; background-color: rgb(255,255,204);"><tt> al.getListener3f(AL.POSITION, Sys.getDirectBufferAddress(floatv), <br> Sys.getDirectBufferAddress(floatv) + 4, <br> Sys.getDirectBufferAddress(floatv) + 8);</tt></p> <p>the last case is a bit special, since we start of by getting the base address of the buffer, and then add the datatype size to the base address<br> to get the address of that specific index. This is just how it has to be in Java.</p> </body> </html> --- NEW FILE: readme.html --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/website/documents/readme.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>lwjgl</title> <meta http-equiv="content-type" content="text/html; charset=windows-1252"> <style type="text/css"> <!-- A:link { color: #003399; text-decoration: none; } A:visited { color: #003399; text-decoration: none; } A:hover { color: #953206; text-decoration: underline; } --> </style> </head> <body> <font face="Fixedsys"> <p> This is the official readme file for lwjgl, and is pretty much empty right now :/ </p> <p> Unless otherwise stated, all files distributed or in CVS are covered by <br> the license as stated in the <a href="license.html">LICENSE</a> file. If you have not received this <br> file, please download it from the <a href="http://sourceforge.net/cvs/?group_id=58488">cvs server</a>. </p> <p> Project Webpage: <a href="http://java-game-lib.sourceforge.net/"> http://java-game-lib.sourceforge.net/</a></p> </font> </body> </html> |