Author Topic: Detecting OpneGL capability  (Read 2798 times)

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Detecting OpneGL capability
« on: September 05, 2005, 09:29:11 am »
Hi, when I began trying this engine again, I tried to use the openGL but all what I got was a white screen, so I tried all what was possible, but I just couldnt, then I thought that it could be due to my graphic card, because I lend my GForce 4 to my brother and I was using my sis651 of 64MB that is supposed to have OpenGL compatibility.

When I bring my GForce again it worked perfectly, so I want to know if is there any way that the engine API can detect this capability!!!!!
Nada por ahora

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11965
    • View Profile
    • http://www.jpct.net
Detecting OpneGL capability
« Reply #1 on: September 05, 2005, 06:14:23 pm »
To detect if OpenGL is possible, you may get the video modes by calling
FrameBuffer.getVideoModes(IRenderer.RENDERER_OPENGL);
If it returns a none empty array, OpenGL is supported. But that doesn't mean that your SIS651 correctly supports it. SIS is known for crappy drivers and the SIS651 is a joke of a graphics chipset. I also think some people reported problems with SIS and LWJGL but i'm not sure...

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Detecting OpneGL capability
« Reply #2 on: September 06, 2005, 09:30:35 am »
ok, thanks a lot, I had spent two days after thinking of the graphic card  :oops:

Detecting the hardware aceleration  is very usefull when doing a programm.
Nada por ahora