public void Initialize()
{
if (!this.initialized)
{
if (glGenQueries == null)
{
glGenQueries = OpenGL.GetDelegateFor<OpenGL.glGenQueries>();
glDeleteQueries = OpenGL.GetDelegateFor<OpenGL.glDeleteQueries>();
glIsQuery = OpenGL.GetDelegateFor<OpenGL.glIsQuery>();
glBeginQuery = OpenGL.GetDelegateFor<OpenGL.glBeginQuery>();
glEndQuery = OpenGL.GetDelegateFor<OpenGL.glEndQuery>();
glGetQueryiv = OpenGL.GetDelegateFor<OpenGL.glGetQueryiv>();
glGetQueryObjectiv = OpenGL.GetDelegateFor<OpenGL.glGetQueryObjectiv>();
glGetQueryObjectuiv = OpenGL.GetDelegateFor<OpenGL.glGetQueryObjectuiv>();
glBeginConditionalRender = OpenGL.GetDelegateFor<OpenGL.glBeginConditionalRender>();
glEndConditionalRender = OpenGL.GetDelegateFor<OpenGL.glEndConditionalRender>();
}
glGenQueries(1, this.ids);
this.initialized = true;
}
}