|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [gameprogrammer] Re: A newbie Java Question - GUI/Animation etc...
Java has it's own Java3D interface, found at: http://java.sun.com/products/java-media/3D/ It allows you to do what is called active rendering, which is similar to the c/c++ WinMain/WndProc loops, that uses double-buffering, or you can create the objects you want and allow Java3D to do the looping for you, while doing animation with their Behavior objects. There are some good java examples with source code, at Killer Game Programming with Java, by Andrew Davison O'Reilly, May 2005 ISBN: 0-596-00730-2 http://www.oreilly.com/catalog/killergame/ Web Site for the book: http://fivedots.coe.psu.ac.th/~ad/jg code downloads and instructions at: http://fivedots.coe.psu.ac.th/~ad/jg/code/ Tom C. --- richard sabbarton <richard.sabbarton@gmail.com> wrote: > Hi Guys, > > In C++ on windows I would use animation by creating > a compatible > device context in memory with CreateCompatibleDC(). > I would write my > game and all of its elements to the MemoryDC and > then use something > like BitBlt() to push it to my main DC. > > I have recently started learning Java and I want to > perform a similar > function. I want to write all of the elements to > memory and then > transfer it to the screen every x milliseconds. > This is to eliminate > flicker etc. > > I have been looking online through tutorials etc. > and I can't seem to > find a description of how to do this. Do I need to > use java.awt or > should I use javax.swing. > > Any thoughts on how to do this or suggestions on > greating a game > display in Java? > > Initially this is for display in an Applet in a web > page. > > Regards > > Richard > > --------------------- > To unsubscribe go to > http://gameprogrammer.com/mailinglist.html > > > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html
|
|