Err...I can't find a way to create the [tasteless expletive] new context in Windows using OpenTK.Anybody help?
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?
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.
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.
I am sorry...I will watch my tongue next time.
Thanks for your reply.That really helps.I notice my way of thinking is out of date.
manjian, hope you've grown a little and welcome to OpenTK!
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.
Site design by Stefanos A. Icons courtesy of gnome-colors.