LikeKT's picture

gl.glEnable(GL.GL_TEXTURE_RECTANGLE_EXT)

How to GL.Enable that in OpenTK?
thanks


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture
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.

LikeKT's picture

Thanks Fiddler, I failed to find any documentation (google) on this in relation to OpenTK.

LikeKT's picture

Sorry again, I have hard time understanding which OpenTK.dll to use to get this statement. Is it included in OpenTK?

GLExtensions.inst().isMultisampleOk()

the Fiddler's picture

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).