summaryrefslogtreecommitdiffstats
path: root/src/demos
Commit message (Collapse)AuthorAgeFilesLines
* - Fixed rootrel.build usage, this works properly through gluegen, jogl-demos ↵Sven Gothel2009-03-0548-330/+453
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and this build. You can say -Drootrel.build=build-x86_64 for example. - Fixed jogl-demos in regard to this changeset - Gluegen - Fixed gluegen BuildComposablePipeline's 'getGL*' methods. Now they return 'this', otherwise the pipeline would be broken/removed. - Add BuildComposablePipeline CustomPipeline, which allows customized class composition with an interface (to be wrapped), prolog class and the downstream class. - Add GlueGen (incl. ant task) 'outputRootDir' to be able to set a top output root dir via ant / commandline. - GL fixed function - Package 'javax.media.opengl.sub.fixed.*' defines some fixed function interfaces. This allows partitioning of custom implementation. - Using gluegen's new CustomPipeline to compose a GLFixedFuncIf implementation, using a GL downstream and a GLFixedFuncHookIf prolog. The latter implements the fixed functionality. Example is the GLFixedFuncImpl. gl.getContext().setGL( new GLFixedFuncImpl(gl, new FixedFuncHook(gl.getGL2ES2())) ) ; or gl.getContext().setGL( new GLFixedFuncImpl(gl, gl.getGL2ES1()) ) ; - The example GLFixedFuncHookIf impl FixedFuncPipeline/ can be instantiated with custom shader code. - ES2 and all other interfaces only contain the original functionality, besides minor convenient data access methods. - Fix: GL2ES2 createCompileShader() and createLoadShader() is moved to ShaderCode util class. - Updated PMVMatrix - Add: GLAutoDrawable.setContext() .. and all it's implementations Necessary to set a new GLContext. - Add: GLContext getAttachedObject(int) and putAttachedObject(int, Object), to allow the user to attach application specific and TLS sensitive objects to the GLContext. - git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@316 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Fixed ArgumentIsString directive for glProgramStringARB (nowKenneth Russel2009-01-123-5/+4
| | | | | | | | | | glProgramString) and updated demos. Added FIXME to gl-ignore-gl2_es12-special.cfg about definitions that it seems should be in the GL interface (such as the GL_ARB_imaging definitions) as they are replicated in the GL2ES1 and GL2ES2 interfaces. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@315 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Changed Angeles to quit when clickCount is greater than 1.Kenneth Russel2009-01-051-1/+3
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@314 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Moved javax.media.opengl.glsl.* and javax.media.opengl.sdk.* classesKenneth Russel2009-01-037-7/+8
| | | | | | | | | into com.sun.opengl.util.* hierarchy in preparation for refactoring of fixed function emulation into utility classes. Updated dependencies and demos. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@313 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Moved FileUtil and StreamUtil classes back into com.sun.opengl.utilKenneth Russel2008-12-304-5/+5
| | | | | | | | | package. Moved TGAWriter back into com.sun.opengl.util package to prevent creating a new package for a single class. Updated implementation and demos. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@312 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Refactored AWT dependencies in Animator class differently to allowKenneth Russel2008-12-3025-29/+29
| | | | | | | | | | | both Animator and FPSAnimator to pick up AWT behavior when available. Moved Animator and FPSAnimator back to com.sun.opengl.util package as it is unclear whether these classes are useful enough on all platforms and profiles to warrant inclusion in the public specification. Updated demos. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@311 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Moved GLUT into com.sun.opengl.util.gl2 package and renamed to JOGLKenneth Russel2008-12-304-12/+12
| | | | | | | | | 1.0 naming convention. Moved associated font classes into same package and made them package-private again to reduce the number of classes in the public API. Updated demos. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@310 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Renamed TileRenderer back to JOGL 1.0 naming convention. Updated demos.Kenneth Russel2008-12-301-2/+2
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@309 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Moved GL2- and AWT-specific utility classes into the AWT packageKenneth Russel2008-12-308-27/+25
| | | | | | | | | because the expectation is that the AWT implementation will only be used on the desktop, where the GL2 profile is always available, and renamed the classes to their JOGL 1.0 naming convention. Updated demos. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@308 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Fixed bug in setup of key handlingKenneth Russel2008-12-201-7/+10
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@307 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Factored out the remaining toolkit, and specifically AWT, dependenciesKenneth Russel2008-12-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from GLDrawableFactory implementations into NativeWindowFactory implementations. These dependencies were the up-front selection of the GraphicsConfiguration and the locking and unlocking of the toolkit, which are both currently needed only on X11 platforms due to how OpenGL and the window system interact there. Added X11GraphicsDevice and X11GraphicsConfiguration classes which are intended to be used by Newt or potentially other third-party window toolkits. Unified the separate NativeWindow and AWT GLDrawableFactory implementations in the GLDrawableFactory class. Exposed the toolkit locking mechanism through the NativeWindowFactory and introduced the concept of a default NativeWindowFactory which is used by the X11 drawable and context implementations. Removed unnecessary toolkit locking calls from Mac OS X and Windows drawable and context implementations. Added a registration mechanism for new NativeWindowFactories, allowing third parties to plug in new window toolkits orthogonally to the OpenGL drawable and context code. The public APIs for the NativeWindowFactory and the GLDrawableFactory, in particular how they are fetched, changed as a result of these refactorings. Updated all uses. Fixed bug in X11OffscreenGLXDrawable introduced during last set of changes. Tested demos on Solaris, Mac OS X and Windows. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@306 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Fixed bug in glMapBuffer native code generation and bug inKenneth Russel2008-12-161-2/+2
| | | | | | | VertexBufferObject demo git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@305 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Moved javax.media.opengl.awt.gl2.GL2JPanel (back) toKenneth Russel2008-12-164-13/+13
| | | | | | | | | javax.media.opengl.awt.GLJPanel because the expectation is that the AWT-based implementation will never need to run on only the ES1 or ES2 subset, and to conform to earlier releases' naming convention. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@304 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Fixed breakage of GLJPanel caused by confusion between requested and Kenneth Russel2008-12-121-3/+6
| | | | | | | | | | | | | chosen GLCapabilities. Separated these out and refactored requested GLCapabilities into GLDrawableImpl superclass. Removed setChosenGLCapabilities from the public API and made it protected on GLDrawableImpl. Removed it from all public GLDrawable implementations such as GLCanvas and GLJPanel. Fixed bug in Gears demo where mouse listener was not being hooked up correctly. Tested so far on Windows; testing on other platforms to follow. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@303 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* OMX cleanupSven Gothel2008-12-012-21/+32
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@302 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Add MovieCubeSven Gothel2008-11-294-16/+607
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@301 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Adding OpenMAX ES2 demoSven Gothel2008-11-276-0/+353
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@300 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Reflect JOGL2 NEWT changesSven Gothel2008-11-269-64/+65
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@298 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Incooperate cleaned up pathSven Gothel2008-11-212-2/+2
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@297 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Commented out reference to HDR demo to get JRefract to compileKenneth Russel2008-11-211-13/+16
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@293 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Fixed bugs in extension query and exception reportingKenneth Russel2008-11-211-8/+7
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@292 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Changed gleem to explicitly declare AWT dependencies. Updated allKenneth Russel2008-11-2110-44/+53
| | | | | | | demos. All demos now build cleanly. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@291 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Applied second jogl-demos patch from Michael Bien. Adjusted build.xmlKenneth Russel2008-11-2023-318/+347
| | | | | | | | | | to not try to compile jbullet sources, and to merge the ES1 and ES2 targets. To build the full set of demos (including the OpenGL ES demos), run "ant". To build just the OpenGL ES demos, run "ant -Djogl.es=1". git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@290 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* GLInfo: Print drawable capabilitiesSven Gothel2008-11-191-0/+2
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@289 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Added details to GLInfo / some function availibility checksSven Gothel2008-11-141-0/+11
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@288 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Incorporated patch from Michael Bien fixing roughly 80% of compilation errorsKenneth Russel2008-10-3058-1718/+2171
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@287 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Perftst: Texture (GL2 ok, ES2 ok)Sven Gothel2008-09-021-2/+4
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@286 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Perftst: Texture (GL2 ok, ES2 nok)Sven Gothel2008-09-025-32/+44
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@285 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* PerfTextLoad (wip)Sven Gothel2008-08-304-85/+132
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@283 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Angeles VBO interleave test, 1 VBO per object; PerfTest Texture; misc changesSven Gothel2008-08-297-89/+1263
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@282 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* ES2.PerfTst: Uni - fixSven Gothel2008-08-211-1/+2
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@281 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* ES2.PerfTst: VBO-1-obj - skip enable/disableSven Gothel2008-08-211-3/+9
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@280 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* ES2.PerfTst: Fix avg fpsSven Gothel2008-08-212-12/+14
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@279 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Fix ES2 PerfTst for APXSven Gothel2008-08-214-9/+20
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@278 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* ES2 performance test: 1st draftSven Gothel2008-08-2115-23/+769
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@277 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Some performance test changesSven Gothel2008-08-191-0/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@276 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Fix Angeles blend and no-blend mode, ..Sven Gothel2008-08-145-58/+116
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@275 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Working: Angeles on ES2Sven Gothel2008-08-133-116/+106
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@274 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Proper ES2 demo with precompiled shader (adding script)Sven Gothel2008-08-121-0/+9
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@273 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Proper ES2 demo with precompiled shaderSven Gothel2008-08-127-479/+106
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@272 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Ragdoll: drop gnu/trove; All: Enabling perf loggingSven Gothel2008-08-126-68/+38
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@270 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* update Cube and jbullet to work with ES20 fixed function pipelineSven Gothel2008-08-046-16/+447
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@266 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Cube@ES2: use the texture shader, alwaysSven Gothel2008-07-251-2/+2
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@265 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* ES 2:Sven Gothel2008-07-256-50/+486
| | | | | | | | | | | | | | | | | | Working: demo.es2.RedSquare (gl2/es2 shader+PMVMatrix) +++ ES2 Fixed Function: Working on all profiles: demo.es1.RedSquare demo.es1.cube.Cube demo.es1.cubefbo.Main (buggy .. invisible - texture shader problem !) javabullet.demos.genericjoint.GenericJointDemo (buggy .. invisible !) git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@264 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Initial jbullet commit - workin ragdoll for profiles (GLES1, GL2ES12 and GL2)Sven Gothel2008-07-211-0/+2
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@262 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* sync with new profile, more generic shell-scriptSven Gothel2008-07-211-0/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@261 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* Sync against JOGL2 changesSven Gothel2008-07-184-25/+25
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@260 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* adding InfoSven Gothel2008-07-111-0/+83
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@258 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* cubefbo workingSven Gothel2008-07-117-420/+353
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@257 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
* cubefbo cleanSven Gothel2008-07-104-179/+131
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@256 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4