FIXED: Re: [sdljava-users] Problem with sdl_gfx -> aaPolygonRGBA
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan Z. G. <iva...@ya...> - 2005-03-01 23:28:37
|
I've finally tracked down the cause of this bug and fixed it! You can now pass ShortBuffers into all the functions which took short* as a long of co-ordinates and it will work properly. The problem was in my SWIG typemap... Please let me know if this works for you now. I have tested here and all is working. -Ivan/ Goliat Skipson wrote: > First hello to the list :) > > i've played around with sdljava for some time and now i have a little > problem ... > the method aaPolygonRGBA in SDLGfx seems to be broken somehow > > by using this (sample) call to the method: > > short[] sx = { 10, 10, 105, 10 }; > short[] sy = { 5, 7, 100, 5 }; > SDLGfx.aapolygonRGBA( surface , sx, sy, (short)255, (short)255, > (short)255, (short)255 ); > > i get my gamescreen but no drawn polygon and after a while some lines > which cover the whole surface appear, additionally they seem to appear > spontaniously after some frames more or less everytime i restart the > whole thing > > unfortunatly i just tried to do a screenshot of the lines ... but they > didn't appear at all ... neither the polygon was drawn > > i'm using sdljava-0.9.0 and the sun jdk 5.0 running on a gentoo system > with a current 2.6.10 kernel (with those thousand gentoo patches) > > greetz Goliat > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users |