Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

26. May 2012, 11:46:39 pm
Xith3D CommunityGeneral CategoryNews (Moderators: Marvin Fröhlich, 'n ddrylliog)TestClasses and Xith3DDemoFolder
Pages: [1]
Print
Author Topic: TestClasses and Xith3DDemoFolder  (Read 1223 times)
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« on: 30. December 2006, 04:13:04 am »

As you may know, there was a class named Xith3DDemoFolder, that I created for easier and common usage of demo resources in the Xith tests. It was never meant to be used outside the xith-tests. Some people did anyway. It doesn't exist anymore. So if you used it and don't wnat to port to the replacement, place save your personal copy before you next checkout from SVN. But I advise you to port, since the new class is much better and designed with extension in mind to better fit your project's needs.

The replacement is org.xith3d.utility.resources.ResourceBag. This time it is meant to be used everywhere. Once initialized it is irrelevant, if your resources come directly from the filesystem of from a jar. Resources are always handled as a URL. It can also be used like a singleton.

It also eases the use of TextureStreamLocators. Just explore its JavaDoc to see its capabilities.

It is used all over xith's test classes now and as a result they are all runnable from jar (all but BSPLoader and Cal3DLoader).

I have relpaced the test-class'es JavaDoc (topmost block) by an Annotation. This looks a little odd, but is still well readable and I can use it to display exaclty this text in the Xith3DTestLauncher. Just run it and see the benefit.

Enjoy Smiley

Marvin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 30. December 2006, 04:58:38 am »

Another new thing:

There's a new class org.xith3d.render.canvas.CanvasConstructionInfo, which holds all information (OpenGLLayer, Resolution, ColorDepth, etc.), that is needed to construct a new Canvas3DWrapper. It is used in Xith3DTestLauncher and passed the the test classes' constructors.

Marvin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #2 on: 03. January 2007, 07:14:55 am »

I'm very sorry. But I had to change this brand new class'es name a last time. It's now called ResourceLocator. The name ResourceBag was a bit confusing and I need the name for another idea. I want to write a class (called ResourceBag), that gets filled with references to models (etc.) and caches Textures and dumps all this to an instance of LoadingScreen. It will manage the LoadingScreen all by itself. When it's ready with loading, it returns a new instance of ResourceBag (the future class) filled with all loaded resources, which you can access through getters.

I think this class may be usefull for many people Smiley.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic