aik6980's picture

how to use VBO on ES20?

Hi,

I used OpenGL before but this is my first time for OpenTK :) (also ES20)
I'm developing an app using ES20, is it possible to use VBO ext on ES20? I think I found VBO is supported from the ES20 specification, but I cannot find those functions on OpenTK.

Thanks in advance


Comments

Comment viewing options

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

VBOs are core in ES20 (and ES11). The functions you need are:

using OpenTK.Graphics.ES20;
 
int id;
GL.GenBuffers(1, out id);
GL.BindBuffer(...);
GL.BufferData(...);
GL.DrawArrays(...);

Extensions are available through nested classes, e.g. GL.Oes.MapBuffer(...).