public void ClientCaptureCallback ( byte[] bgrData, int imageWidth, int imageHeight ) { // Copy the captured data to a local buffer this.CopyDataFromCaptureDataToLocalBuffer(bgrData, imageWidth, imageHeight); // Process the image data this.ClassifyRegion( ); // Update the associated texture GR gr = this.mGR; gr.glBindTexture(GR.GL_TEXTURE_2D, this.mTextureOpenGLHandleBGR256x256); gr.glTexSubImage2D ( GR.GL_TEXTURE_2D, // target 0, // level 0, // xoffset 0, // yoffset 256, // width 256, // height GR.GL_BGR_EXT, // format GR.GL_UNSIGNED_BYTE, // type this.mTextureDataBGR256x256 // texel data ); }