Login  Register

Re: Looking for demos.es1.RedSquare source

Posted by Sven Gothel on Oct 25, 2011; 2:19am
URL: https://forum.jogamp.org/Looking-for-demos-es1-RedSquare-source-tp3449870p3450181.html

On Tuesday, October 25, 2011 01:46:12 AM Michael Weber [via jogamp] wrote:

>
> I've just ported an application from JOGL 1.1.1 to JOGL 2.0, and now I'd like
> to investigate using multiple threads with AWT and NEWT. I'm looking for the
> source for the demos.es1.RedSquare class, as invoked in the examples at
> http://jogamp.org/wiki/index.php/Jogl_FAQ#Why_using_AWT_for_high_performance_is_not_a_good_idea_.3F.
>
> I've retrieved the latest source with git (gluegen, jogl, jogl-demos), and
> I've also downloaded the last pre-built signed release (Sept 16 2011).
>
> The signed release contains that demo, so I can execute it, but it cannot
> find the demo source (the jogamp archive includes all jogamp source but not
> demo source, and the demo archive does not include source).
>
> The demo source in my git repository appears to be re-arranged relative to
> the prebuilt demo archive. It contains the test classes etc., but I cannot
> find the source for a RedSquare test or demo class that takes parameters
> like in the example on the FAQ page referenced above (e.g., java
> -Djava.awt.headless=true demos.es1.RedSquare -swapi 0 -GL2 -GL2 -GL2).

The latter one is in the 'jogl-demos' repository.

Hmm .. since it's not in the unit tests,
I haven't tried it for a long time - but should still work.
However .. the NEWT variant today would be coded much easier,
ie. just using one Animator for each window for example.
But give it a shot ..

There is another RedSquare demos (es1/es2) in jogl itself
as demos for the unit tests, but it does not have the multithreaded caller
class as you mention (FAQ .. -GL2 -GL2 ..).

Hope it helps.

>
> Is it still available?
>
> thx
> Michael
>
> btw all the additional documentation available now relative to last year is
> fantastic

thank you .. lets try to maintain them together.

PS: 'last year' was almost our 'birthday' 0 in regards to the JogAmp infrastructure :)

~Sven