Author Topic: Hardware renderer frame  (Read 237 times)

Offline Nurd

  • byte
  • *
  • Posts: 1
    • View Profile
Hardware renderer frame
« on: June 18, 2017, 09:24:59 pm »
Hey,

is there any way to control/interact with the frame created by the hardware renderer? I have a fullscreen one and want it to move betweens multiple monitors and resize the buffer to the maximum scrren resolution. Or at least let it appear on a specific one in max size.
I could move it with the windows key combinations but then I dont know how to notice the movement or how to get the current screen. (I know how to do this in swing but I have no idea here)

I hope somebody can help me out. Thanks in advance!

Offline AGP

  • quad
  • ******
  • Posts: 1515
    • View Profile
Re: Hardware renderer frame
« Reply #1 on: June 19, 2017, 04:45:18 am »
I'm sure that getting the output buffer is not the best way to do what you're trying to do, but FrameBuffer.getOutputBuffer will give you the rendered image (although the docs claim that it will be slow for OpenGL).

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Hardware renderer frame
« Reply #2 on: June 19, 2017, 07:59:08 am »
Have a look here: http://legacy.lwjgl.org/javadoc/org/lwjgl/opengl/Display.html

That's what the hardware renderer uses. The methods in it are all static, so you don't need an instance of it.