Software Renderer in Swing Component and swapping out the jPCT class

Started by Knuffi, April 05, 2012, 03:55:33 PM

Previous topic - Next topic

Knuffi

With the permission of Egon, I could put it into the wiki.

raft

Quote from: Knuffi
2. Why do the world and the frame buffer to be static?
they dont need to be static

Knuffi

Eclipse tells me so, when I write the rotation method and put it in the Actionlistener.

raft

if your ActionListener uses methods of World/FrameBuffer, it should somehow reach them. making them static is a way, but not the only way

Knuffi

I could also implement the action listener into the class, where the world and the frame buffer reside?

raft