manjian's picture

Kid vs. OpenGL 3.0

Err...I can't find a way to create the [tasteless expletive] new context in Windows using OpenTK.Anybody help?


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
manjian's picture

OK...I figure it out myself.Here's the sample code
GLControl c=new GLControl(new GraphicsMode(new ColorFormat(32)), 3, 0, GraphicsContextFlags.Default);

the number 3 and 0 is the opengl version number,indicating major version and minor version respectively.
Thank OpenTK,that save me a lot of effort from writing redundancy code to initialize the 3.0 context.

manjian's picture

Well...I read the source code and I feel suprised by the fact that OpenTK implements the context creation of OpenGL 3.0,but does'nt implement the simple FSAA.Hey,Fiddler are you too lazy?

objarni's picture

Hey manjian, please watch your language! This project is spare-time open source software project, and harsh language will get you nowhere!!

I could have told you how to do this, but I'd rather not.

Inertia's picture

Changed the title of the post to better reflect the value of the information.

Edit: Multisampling is already available through FBOs, creating a multisampled framebuffer is not safe for public consumption, yet.

manjian's picture

I am sorry...I will watch my tongue next time.

manjian's picture

Thanks for your reply.That really helps.I notice my way of thinking is out of date.

objarni's picture

manjian, hope you've grown a little and welcome to OpenTK!

manjian's picture

Hehe.I used to code OpenGL using C/C++ and I am getting annoyed by this old way.When I post this message,I had been angered by my first OGL 3.0 programe still didn't work after I read ogl spec millions of times. I hope my life become easier and try OpenTK.I try to write a OGL programe with it and my program works.Seems I go to right place this time.