wattale's picture

Equivalent OpenTK code for a WebGL function

Hi all,

I'm new to OpenGL and OpenTK. I'm trying to figure out how to convert the following code to OpenTK.

_glExtensionTextureFloat = _gl.getExtension( 'OES_texture_float' );

Please give me some directions to resolve this :)


Comments

Comment viewing options

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

Extensions are available as nested types inside the GL class, i.e.:

using OpenTK.Graphics.ES20;
 
GL.Oes.TexImage3D(...);
wattale's picture

In WebGL we can get a extension object. Can similar thing be done in OpenGL ES ?

As far as I found, it's all about getting supported extensions as a long String.