Author Topic: Open GL3  (Read 2950 times)

Hoootie

  • Guest
Open GL3
« on: April 22, 2009, 09:13:53 pm »
I Hope iam in the right section for this question.
searched for this, but diddnt find anything of usage for me.

Iam using CodeBlocks for some time now, and i would like to work with OpenGL 3, but i dont realy know how i manage that. what do i have to load/install?

I have already used OpenGl2 but that was with devcpp some time ago, and it was installed right at the start, so i have no practis with what.

I am runnign Windows Prof, if this is of any use for your answering.

I hope u can help,
thank you.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Open GL3
« Reply #1 on: April 23, 2009, 09:31:18 am »
This has nothing to do with Code::Blocks, really.

You need to resolve function pointers the same way you did for version 2.0. Also, you need to request a 3.0 compatible context via WGL_ARB_create_context, unless you're on nVidia which returns a backwards-compatible 3.0 context by default. Updating your glext.h and wglext.h may be necessary.
You find information as well as the specs and up-to-date headers at opengl.org.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."