Author Topic: OpenGL 3.1+ : Simple example  (Read 14760 times)

0 Members and 1 Guest are viewing this topic.

Offline José Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2480
Re: OpenGL 3.1+ : Simple example
« Reply #15 on: July 11, 2012, 05:33:24 PM »
Patrice, the class allows to check OBJRESULT to know if the call has succeeded. It returns ERROR_PROC_NOT_FOUND (&H8007007F&) if the extension does not exist. Using SUBs, you can't return an error code and you need to check if the exten sion exists before calling it.

Offline Patrice Terrier

  • ROMs
  • Hero Member
  • *****
  • Posts: 936
    • www.zapsolution.com
Re: OpenGL 3.1+ : Simple example
« Reply #16 on: July 11, 2012, 07:06:53 PM »
José

I am also checking if the extension exist with the Flat API, but i am not returning an error, because i check first for the requested OpenGL version.

...

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Petr Schreiber

  • Full Member
  • ***
  • Posts: 183
Re: OpenGL 3.1+ : Simple example
« Reply #17 on: July 11, 2012, 10:03:02 PM »
Thank you very much José!


Petr
AMD Sempron 3400+ | 1GB RAM @ 533MHz | GeForce 6200 / GeForce 9500GT | 32bit Windows XP SP3

psch.thinbasic.com