How to GL.Enable that in OpenTK? thanks
GL.Enable((EnableCap)All.TextureRectangleArb);
By default, OpenTK tries to provide tokens found in the core OpenGL specifications. For extensions, you will have to cast as above.
The All enum contains every single OpenGL token.
All
Thanks Fiddler, I failed to find any documentation (google) on this in relation to OpenTK.
Sorry again, I have hard time understanding which OpenTK.dll to use to get this statement. Is it included in OpenTK?
GLExtensions.inst().isMultisampleOk()
This is not OpenTK code, looks Java-based to me.
You can use regular OpenGL methods to query extensions:
string[] extensions = GL.GetString(StringName.Extensions).Split(new char[] { ' ' });
You can then search the array for the extension you need (GL_ARB_multisample in this case).
Comments
Re: gl.glEnable(GL.GL_TEXTURE_RECTANGLE_EXT)
By default, OpenTK tries to provide tokens found in the core OpenGL specifications. For extensions, you will have to cast as above.
The
Allenum contains every single OpenGL token.Re: gl.glEnable(GL.GL_TEXTURE_RECTANGLE_EXT)
Thanks Fiddler, I failed to find any documentation (google) on this in relation to OpenTK.
Re: gl.glEnable(GL.GL_TEXTURE_RECTANGLE_EXT)
Sorry again, I have hard time understanding which OpenTK.dll to use to get this statement. Is it included in OpenTK?
GLExtensions.inst().isMultisampleOk()Re: gl.glEnable(GL.GL_TEXTURE_RECTANGLE_EXT)
This is not OpenTK code, looks Java-based to me.
You can use regular OpenGL methods to query extensions:
You can then search the array for the extension you need (GL_ARB_multisample in this case).