Re: [sdljava-users] sdljava-users Digest, Vol 6, Issue 1
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan G. <iva...@ya...> - 2007-08-03 16:21:48
|
Download any of the source releases (non-binary) and the sources are included. Or just get the sources from CVS. -Ivan/ On 8/3/07, Garry Dias <gar...@gm...> wrote: > > Hi all > > Where can I find the released sdljava source codes??? > > > > > > > > 2007/8/2, sdl...@li... <sdljava-users-requ= es...@li... > >: > > > > Send sdljava-users mailing list submissions to > > sdl...@li... > > > > To subscribe or unsubscribe via the World Wide Web, visit > > https://lists.sourceforge.net/lists/listinfo/sdljava-users > > or, via email, send a message with subject or body 'help' to > > sdl...@li... > > > > You can reach the person managing the list at > > sdl...@li... > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of sdljava-users digest..." > > > > > > Today's Topics: > > > > 1. Re: (no subject) (Ivan Z. Ganza) > > 2. java3d and vecmath licensed as free software (Robert Schuster) > > 3. Re: java3d and vecmath licensed as free software (Robert Schuster) > > 4. Re: java3d and vecmath licensed as free software (Ivan Z. Ganza) > > 5. OT: Invitation to participate in research project (Ben Alex) > > 6. joystick events without framebuffer? (C W) > > 7. Re: joystick events without framebuffer? (Ivan Z. Ganza) > > > > > > ---------------------------------------------------------------------- > > > > Message: 1 > > Date: Sun, 27 May 2007 18:43:58 -0400 > > From: "Ivan Z. Ganza" <iva...@ya... > > > Subject: Re: [sdljava-users] (no subject) > > To: Discussion for users of sdljava > > < sdl...@li...> > > Message-ID: < 465...@ya...> > > Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed > > > > Hi Thomas, > > > > I see the problem. The culprit is the code in SDLSurface.java : > > > > public int blitSurface(SDLRect src, SDLSurface dstSurface, SDLRect dst) > > throws SDLException { > > if(src =3D=3D null) { > > src =3D new SDLRect(0, 0, getWidth(), getHeight()); > > } > > if (dst =3D=3D null) { > > dst =3D new SDLRect(0, 0, -1, -1); > > } > > return SWIG_SDLVideo.SWIG_SDL_BlitSurface_FAST(swigSurface, > > src.getX(), > > src.getY(), > > src.getWidth(), > > src.getHeight(), > > dstSurface.getSwigSurface(), > > dst.getX(), > > dst.getY(), > > dst.getWidth(), > > dst.getHeight() > > ); > > } > > > > As you can see in the code I'm unwrapping the Rect, for speed, and only > > passing the values -- after the call there is only a status of the blit > > returned so SDLJava has no knowledge about updating the positions in th= e > > > > rect that you passed in the call. > > > > Hrrmmm....I have to admit I did not consider your scenerio. However I > > do think we need to support it. If the original SDL works that way, we > > should be doing the same thing in the java world. > > > > Its not clear to me how this can be done while still being fast. If we > > want to update the rect passed intot the java call, the rect has to be > > passed to the C code, _by value_, and then it will be updated in C and > > passed back again to java by value once again. This won't be very > > efficient. I could be wrong but right now I am fairly sure it will all > > by pass by value in this case. > > > > If I can figure out a way to fix this and still be efficient I will get > > the code in within a week or two. Not sure if you have the time but > > feel free to dig into the code if you wish....I'm happy to accept > > contributions. > > > > Cheers, > > -Ivan/ > > > > > > > > > > Thomas Beck wrote: > > > > >Hi @all! > > > > > >My name is Thomas, I'm a german software engeneer and I've got a > > problem with sdljava.I didn't get solved by extensively searching the > > web. > > > > > >Question: > > >Why is it not allowed to blit a surface onto another ( > > surface.blitsurface(SrcRect,screen,DestRect)by giving the rectangle > > negative values. For example: my Position on the main-surface where to = blit > > is DestRect.x=3D-200; DestRect.y=3D-10; DestRect.w=3D100;DestRect.h=3D1= 00 > > > > > >I read in the sdljava-doc that if the blitting succeeds the blitted > > coordinates are written back to the DestRect. When I do the blit, my > > DestRect.x is at -200 so I would think that the blitting was done > > without any errors - but the blitting was done on (0|0) - no matter wha= t > > negative values I choose...it's erverytime on (0|0) > > > > > >This blitting with negative values is very important for scrolling and > > is no problem in the c++ binding or the sdl.net binding..so is there a > > cause to do so? Or is it a bug (and if so.. will it be fixed) > > > > > >Greetings to all of you, Thomas > > > > > > > > > > > > > > > > ------------------------------ > > > > Message: 2 > > Date: Wed, 13 Jun 2007 17:39:38 +0200 > > From: Robert Schuster <the...@gm...> > > Subject: [sdljava-users] java3d and vecmath licensed as free software > > To: sdl...@li... > > Message-ID: < 467...@gm...> > > Content-Type: text/plain; charset=3D"iso-8859-15" > > > > hi, > > unbelievable but true: java3d as well as the vecmath package are now > > licensed under the gpl + linking exception (what gnu classpath & openjd= k > > > > uses). > > > > now the vecmath in sdljava can be replaced with that. > > > > regards > > robert > > > > -------------- next part -------------- > > A non-text attachment was scrubbed... > > Name: signature.asc > > Type: application/pgp-signature > > Size: 252 bytes > > Desc: OpenPGP digital signature > > > > ------------------------------ > > > > Message: 3 > > Date: Wed, 13 Jun 2007 18:08:54 +0200 > > From: Robert Schuster < the...@gm...> > > Subject: Re: [sdljava-users] java3d and vecmath licensed as free > > software > > To: Discussion for users of sdljava > > < sdl...@li...> > > Message-ID: < 467...@gm...> > > Content-Type: text/plain; charset=3D"iso-8859-15" > > > > and here is the link > > > > http://forums.java.net/jive/thread.jspa?threadID=3D27494 > > > > regards > > robert > > > > Robert Schuster schrieb: > > > hi, > > > unbelievable but true: java3d as well as the vecmath package are now > > > licensed under the gpl + linking exception (what gnu classpath & > > openjdk > > > uses). > > > > > > now the vecmath in sdljava can be replaced with that. > > > > > > regards > > > robert > > > > > > > > > > > > > > -----------------------------------------------------------------------= - > > > > > > > > -----------------------------------------------------------------------= -- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > > > > > > > > > -----------------------------------------------------------------------= - > > > > > > _______________________________________________ > > > sdljava-users mailing list > > > sdl...@li... > > > https://lists.sourceforge.net/lists/listinfo/sdljava-users > > > > -------------- next part -------------- > > A non-text attachment was scrubbed... > > Name: signature.asc > > Type: application/pgp-signature > > Size: 252 bytes > > Desc: OpenPGP digital signature > > > > ------------------------------ > > > > Message: 4 > > Date: Wed, 13 Jun 2007 22:32:20 -0400 > > From: "Ivan Z. Ganza" <iva...@ya... > > > Subject: Re: [sdljava-users] java3d and vecmath licensed as free > > software > > To: Discussion for users of sdljava > > < sdl...@li... > > > Message-ID: <467...@ya...> > > Content-Type: text/plain; charset=3DISO-8859-15; format=3Dflowed > > > > Cool! Thanks for sending the info about this! > > > > Robert Schuster wrote: > > > > >and here is the link > > > > > > http://forums.java.net/jive/thread.jspa?threadID=3D27494 > > > > > >regards > > >robert > > > > > >Robert Schuster schrieb: > > > > > > > > >>hi, > > >>unbelievable but true: java3d as well as the vecmath package are now > > >>licensed under the gpl + linking exception (what gnu classpath & > > openjdk > > >>uses). > > >> > > >>now the vecmath in sdljava can be replaced with that. > > >> > > >>regards > > >>robert > > >> > > >> > > >> > > >>---------------------------------------------------------------------= --- > > > > >> > > > > >>---------------------------------------------------------------------= ---- > > >>This SF.net email is sponsored by DB2 Express > > >>Download DB2 Express C - the FREE version of DB2 express and take > > >>control of your XML. No limits. Just data. Click to get it now. > > >> http://sourceforge.net/powerbar/db2/ > > >> > > >> > > >>---------------------------------------------------------------------= --- > > > > >> > > >>_______________________________________________ > > >>sdljava-users mailing list > > >>sdl...@li... > > >> https://lists.sourceforge.net/lists/listinfo/sdljava-users > > >> > > >> > > > > > > > > > > > >----------------------------------------------------------------------= -- > > > > > > > > > >----------------------------------------------------------------------= --- > > >This SF.net email is sponsored by DB2 Express > > >Download DB2 Express C - the FREE version of DB2 express and take > > >control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > > > > > >----------------------------------------------------------------------= -- > > > > > >_______________________________________________ > > >sdljava-users mailing list > > >sdl...@li... > > > https://lists.sourceforge.net/lists/listinfo/sdljava-users > > > > > > > > > > > > > > > > ------------------------------ > > > > Message: 5 > > Date: Mon, 25 Jun 2007 19:28:03 +1000 > > From: Ben Alex < ben...@st... > > > Subject: [sdljava-users] OT: Invitation to participate in research > > project > > To: sdl...@li... > > Message-ID: < E1I...@lu... > > > > > Hello there > > > > I would greatly appreciate a small amount of your time to assist with > > my doctoral research at The University of Newcastle. The research > > concerns open source licensing and we're seeking developers working on > > Java projects. The research is supervised, ethics-approved, anonymous > > and results will be freely available. Participation will also provide a > > custom licensing report for your project. To learn more, please visit: > > > > http://licensing-research.newcastle.edu.au > > > > Thanks for reading this email, and I hope you'll consider participating= . > > > > > > Best regards > > Ben Alex > > > > (My apologies for being off-topic; this list will not be emailed again) > > > > > > > > ------------------------------ > > > > Message: 6 > > Date: Sun, 29 Jul 2007 21:04:33 -0700 (PDT) > > From: C W < wa...@ya...> > > Subject: [sdljava-users] joystick events without framebuffer? > > To: sdl...@li... > > Message-ID: < 644...@we...> > > Content-Type: text/plain; charset=3D"iso-8859-1" > > > > Greetings, > > I just started trying to use sdljava, and I am interested in the > > joystick interface. The test code SDLJoystickTest.java works fine, but > > I'd like to know if I can interface with a joystick without setting up = a > > framebuffer. > > > > If I comment out the lines associated with the framebuffer variable, > > then I get an SDLException when SDLEvent.waitEvent() is called. Is this > > the expected behavior? If so, is there a way I can use the joystick > > interface and events without having the framebuffer. > > > > Thanks, > > Chris > > > > > > --------------------------------- > > Boardwalk for $500? In 2007? Ha! > > Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! > > Games. > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > > > ------------------------------ > > > > Message: 7 > > Date: Thu, 2 Aug 2007 21:47:21 -0400 > > From: "Ivan Z. Ganza" <iva...@gm... > > > Subject: Re: [sdljava-users] joystick events without framebuffer? > > To: "Discussion for users of sdljava" > > < sdl...@li...> > > Message-ID: > > < 818...@ma...> > > Content-Type: text/plain; charset=3D"iso-8859-1" > > > > Greetings, > > > > I think you should be able to but I havn't verified this. > > > > What you want to do is call SDL_INIT with only SDL_INIT_JOYSTICK. > > > > Have a look here: > > http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fInit > > > > Have not tried this myself though. Let me know if it works. I'm no > > sure if > > you are supposed to be able to do this -- but I don't see why not. If > > you > > are able to make it work with a simple C program then it should also be > > possible from sdljava. > > > > -Ivan/ > > > > On 7/30/07, C W < wa...@ya...> wrote: > > > > > > Greetings, > > > I just started trying to use sdljava, and I am interested in the > > > joystick interface. The test code SDLJoystickTest.java works fine, bu= t > > I'd > > > like to know if I can interface with a joystick without setting up a > > > framebuffer. > > > > > > If I comment out the lines associated with the framebuffer variable= , > > > then I get an SDLException when SDLEvent.waitEvent() is called. Is > > this > > > the expected behavior? If so, is there a way I can use the joystick > > > interface and events without having the framebuffer. > > > > > > Thanks, > > > Chris > > > > > > ------------------------------ > > > Boardwalk for $500? In 2007? Ha! > > > Play Monopoly Here and Now<http://us.rd.yahoo.com/evt=3D48223/*http:/= /get.games.yahoo.com/proddesc?gamekey=3Dmonopolyherenow>(it's > > updated for today's economy) at Yahoo! Games. > > > > > > > > > > > -----------------------------------------------------------------------= -- > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a > > browser. > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > _______________________________________________ > > > sdljava-users mailing list > > > sdl...@li... > > > https://lists.sourceforge.net/lists/listinfo/sdljava-users > > > > > > > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > > > ------------------------------ > > > > -----------------------------------------------------------------------= -- > > > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > > ------------------------------ > > > > _______________________________________________ > > sdljava-users mailing list > > sdl...@li... > > https://lists.sourceforge.net/lists/listinfo/sdljava-users > > > > > > End of sdljava-users Digest, Vol 6, Issue 1 > > ******************************************* > > > > > > -- > "N=E3o espero nada cair do c=E9u. Derrubo logo!! > > Garry Dias > Rio de Janeiro, RJ, Brazil > Contacts: > Resid=EAncial (home): 55 21 26575640 > Trabalho (Job): 55 21 25014000 ramal 4038 > E-mails: nin...@ya... > gar...@gm... > gar...@ho... > mag...@ne... > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |