Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /www/htdocs/w0066001/ : runtime-created function on line 3
XIN suggestions and "bugs"
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Advanced search

12104 Posts in 1606 Topics- by 599 Members - Latest Member: Sethe

16. January 2017, 12:45:08 PM
Xith3D CommunityXith3D InternalsDeveloper discussion (Moderators: Marvin Fröhlich, 'n ddrylliog)XIN suggestions and "bugs"
Pages: [1]
Author Topic: XIN suggestions and "bugs"  (Read 2191 times)
Arne Müller
Enjoying the stay
Offline Offline

Posts: 32

View Profile
« on: 25. April 2007, 01:21:10 PM »


for my JOODE doku, I try to follow the XIN as closely as possible to have as little Xith-overhead as possible. (and because the old ways of setting up xith, aint the ways nowadays Wink )

I had the following problems trying to implement the examples in XIN:

1. import statements aren't given, so I always had to search for those
2. in the src-code example in Chapter 3, the method on line 31 (InputAdapterRenderLoop.registerKeyboardAndMouse(Canvas3D) ), does not exist anymore.
3. Chapter8a: RenderLoop.scheduleOperation(ScheduledOperation) doesn't exist. + why do you have "new MyOperation2" as a parameter instead of "new MyOperation" ?

I haven't progressed further, so other stuff might follow

« Last Edit: 25. April 2007, 08:56:43 PM by Arne Müller » Logged

Marvin Fröhlich
Xith Lord
Offline Offline

Posts: 4416

May the 4th, be with you...

View Profile
« Reply #1 on: 25. April 2007, 04:42:18 PM »

I believe, the import statements would bloat the document. In the xith-tk project there's an package, which contains all the XIN chapters' examples (with imports). And any release is shipped with these examples next to the XIN document. And the examples can be downloaded at next to the document. So I think, having the examples as code is sufficient and even better than bloating the document with the imports, which can at least easily be found by eclipse.

For the registerKeyboardAndMouse() method:
InputAdapterRenderLoop is a convenience extension of RenderLoop. It implements InputListener and its constructor automatically adds itself to the list of input listeners in the InputManager.
To register devices do the following:

In an (InputAdapter)RenderLoop extension:
this.getInputManager().registerKeyboardAndMouse( Canvas3D );

I will fix this in XIN. But I guess, you will find more things to fix and I will want to fix them all at once. So please edit the first posting in this thread any time you find something so that I can get all information from one posting when we're through.

Pages: [1]
Jump to:  

Theme orange-lt created by panic