Code::Blocks Forums

User forums => Help => Topic started by: Hoootie on April 22, 2009, 09:13:53 pm

Title: Open GL3
Post by: Hoootie 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.
Title: Re: Open GL3
Post by: thomas 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.