Author Topic: Software Renderer in Swing Component and swapping out the jPCT class  (Read 3799 times)

Offline Knuffi

  • byte
  • *
  • Posts: 19
    • View Profile
Re: Software Renderer in Swing Component and swapping out the jPCT class
« Reply #15 on: April 08, 2012, 12:22:10 pm »
With the permission of Egon, I could put it into the wiki.

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: Software Renderer in Swing Component and swapping out the jPCT class
« Reply #16 on: April 08, 2012, 02:23:57 pm »
Quote from: Knuffi
2. Why do the world and the frame buffer to be static?
they dont need to be static

Offline Knuffi

  • byte
  • *
  • Posts: 19
    • View Profile
Re: Software Renderer in Swing Component and swapping out the jPCT class
« Reply #17 on: April 08, 2012, 05:34:02 pm »
Eclipse tells me so, when I write the rotation method and put it in the Actionlistener.

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: Software Renderer in Swing Component and swapping out the jPCT class
« Reply #18 on: April 08, 2012, 05:40:54 pm »
if your ActionListener uses methods of World/FrameBuffer, it should somehow reach them. making them static is a way, but not the only way

Offline Knuffi

  • byte
  • *
  • Posts: 19
    • View Profile
Re: Software Renderer in Swing Component and swapping out the jPCT class
« Reply #19 on: April 08, 2012, 05:54:46 pm »
I could also implement the action listener into the class, where the world and the frame buffer reside?

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: Software Renderer in Swing Component and swapping out the jPCT class
« Reply #20 on: April 08, 2012, 05:56:07 pm »
sure, that's another way..