summaryrefslogtreecommitdiffstats
path: root/src/demos/misc
Commit message (Collapse)AuthorAgeFilesLines
* Picking unsigned integer handling fix.Sven Gothel2010-09-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | Julien Gouesse send me this patch to the jogamp ML on 2010-09-09 16:24 Thu +0200: Picking.java is a provided example of JOGL 2 here: http://jogamp.org/jogl-demos/src/demos/misc/Picking.java http://jogamp.org/jogl-demos/src/demos/misc/Picking.java The both lines above are wrong: z1 = (float) buffer.get(offset) / 0x7fffffff; offset++; z2 = (float) buffer.get(offset) / 0x7fffffff; offset++; Actually, the select buffer contains 32-bits unsigned integers stored into 32-bits signed integers. Then, the last digit is wrongly used as a sign bit. As Java has no unsigned type, at least 33 bits are required to store these positive values with their sign. Therefore, the long type (64 bits) should be used. The both lines above often work correctly except when the depth values are bigger than 2^31. I assume that they have been copied from an example written in C++. We should rather do this: z1 = (float) (buffer.get(offset)& 0xffffffffL) / 0x7fffffff; offset++; z2 = (float) (buffer.get(offset)& 0xffffffffL) / 0x7fffffff; offset++;
* Adding GLProfile.initSingleton() call, ensuring [multithreading] ↵Sven Gothel2010-06-102-0/+7
| | | | intitialization can be done in time
* Fixes to match JOGL 2ae28d54858ff684bc2368e0476a7a357dc63432Sven Gothel2010-04-151-1/+1
|
* fixed imports to fix build.Michael Bien2010-04-081-1/+1
|
* modifications due to refactorings in gluegen and jogl.Michael Bien2010-03-291-2/+2
|
* modifications due to refactorings: com.sun.opengl -> com.jogamp.opengl.Michael Bien2010-03-273-7/+7
|
* Copied JOGL_2_SANDBOX r350 on to trunk; JOGL_2_SANDBOX branch is now closedKenneth Russel2009-06-154-0/+833
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@352 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Deleted obsolete source code in preparation for copying JOGL_2_SANDBOXKenneth Russel2009-06-154-796/+0
| | | | | | | on to trunk git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@351 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Attempted fix for NullPointerException pointed out by Michael BienKenneth Russel2008-04-071-2/+2
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@227 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Fixed package name in Picking demo and added Z values to verify Kenneth Russel2007-03-051-0/+5
| | | | | | | correct Z computation git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@208 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Added picking example from Thomas BladhKenneth Russel2006-02-161-0/+265
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@175 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Issue number:gfxadmin2006-02-161-3/+3
| | | | | | | | | | | | | | | Obtained from: Submitted by: Travis Reviewed by: Fixing minor build error due to recent GLCapabilities API renaming. Modified Files: src/demos/misc/GLCapsTableDemo.java git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@174 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Fixed Issue 199: Incorporate tile rendering library Kenneth Russel2006-02-021-0/+146
| | | | | | | | | | | With the permission of the author, Brian Paul, the Mesa tile rendering library has been incorporated under BSD-compatible licensing terms thanks to porting work by user bleb from the javagaming.org forums. Added demos.misc.TiledRendering demo creating a high-resolution screenshot of the Gears demo. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@171 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Issue number: Various -- I will update themgfxadmin2006-01-311-0/+58
| | | | | | | | | | | | | | | | | | | Obtained from: Submitted by: Travis Reviewed by: Committing in . Added Files: src/demos/misc/VersionInfo.java This example uses the java.lang.Package API to query the version and implementation information from the jogl.jar manifest. We will be bumping the manifest info for subsequent releases. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@169 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Fixed Issue 198: Add GLCapsTableDemo Kenneth Russel2006-01-301-0/+322
Added GLCapsTableDemo by user Ka-El from javagaming.org forums with slight modifications by kbr. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@168 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4