Author Topic: Engine Limitations?  (Read 13474 times)

Offline bgilb

  • byte
  • *
  • Posts: 21
    • View Profile
Engine Limitations?
« Reply #15 on: January 18, 2005, 11:02:01 pm »
quick question .. how do i enable Opengl properly? It seems the way im doing it isnt working because i dont get any fps gain at all, heres what i call:

Code: [Select]

buffer.enableRenderer(IRenderer.RENDERER_SOFTWARE, IRenderer.MODE_OPENGL);
buffer.usesRenderer(IRenderer.RENDERER_OPENGL);

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Engine Limitations?
« Reply #16 on: January 18, 2005, 11:36:54 pm »
Try:
Code: [Select]
 
buffer.enableRenderer(IRenderer.RENDERER_OPENGL);
buffer.disableRenderer(IRenderer.RENDERER_SOFTWARE);


But be sure that your current FrameBuffer size is supported by your hardware. That not  important in software, but it is in OpenGL.

Anonymous

  • Guest
Engine Limitations?
« Reply #17 on: January 19, 2005, 12:02:27 am »
okay i tried that, it half worked but i get the runtime error "PixelFormat" and then i tried importing the lwjgl library but then it said "Unsatisfied link error"

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Engine Limitations?
« Reply #18 on: January 19, 2005, 12:37:09 am »
You have to set both, the jar and the dll (assuming that you are using Windows). The dll is set by setting the library.path (similar to the -Xmx stuff before) to the directory where the dll is stored. Have a look at the examples' batchfiles that come with jPCT to see how to set the library.path correctly.

Offline bgilb

  • byte
  • *
  • Posts: 21
    • View Profile
Engine Limitations?
« Reply #19 on: January 19, 2005, 09:54:04 pm »
it almost works, it just creates 2 windows now ( one thats empty but still has action listiner for mouse ) and then the graphics are in the new window ..

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Engine Limitations?
« Reply #20 on: January 20, 2005, 12:30:25 am »
jPCT doesn't create a window for you in software mode, but it has to in hardware mode. Simply because the used OpenGL binding can render into its own window only. The second window must be opened by your application. Just don't do that and use the lwjgl window instead. You can't use mouse or keylisteners on this one though. You have to use the means that lwjgl provides for keyboard and mouse or use the KeyMapper from jpct.util.