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.
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?
Posted Wednesday, 8 April, 2009 - 06:33 by manjian
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.
Comments
Re: OpenGL 3.0
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.
Re: OpenGL 3.0
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?
Re: OpenGL 3.0
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.
Re: Kid vs. OpenGL 3.0
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.
Re: OpenGL 3.0
I am sorry...I will watch my tongue next time.
Re: Kid vs. OpenGL 3.0
Thanks for your reply.That really helps.I notice my way of thinking is out of date.
Re: Kid vs. OpenGL 3.0
manjian, hope you've grown a little and welcome to OpenTK!
Re: Kid vs. OpenGL 3.0
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.