Exemple #1
0
 /// <summary>
 /// Get a specific buffer within the chain as a GL texture name
 /// </summary>
 /// <param name="index">
 /// Specifies the index within the chain to retrieve. Must be between 0 and length (see GetTextureSwapChainLength)
 /// or may pass -1 to get the buffer at the CurrentIndex location. (Saving a call to GetTextureSwapChainCurrentIndex)
 /// </param>
 /// <param name="textureId">Returns the GL texture object name associated with the specific index requested</param>
 /// <returns>
 /// Returns an Result indicating success or failure. In the case of failure, use
 /// Wrap.GetLastError to get more information.
 /// </returns>
 public Result GetBufferGL(int index, out uint textureId)
 {
     return(_ovr.GetTextureSwapChainBufferGL(_sessionPtr, TextureSwapChainPtr, index, out textureId));
 }