Class BackendInfoOpenGL
Exposes OpenGL-specific functionality, useful for interoperating with native components which interface directly with OpenGL. Can only be used on a GraphicsDevice whose GraphicsBackend is OpenGL.
Inheritance
Inherited Members
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
public class BackendInfoOpenGL
Methods
ExecuteOnGLThread(Action)
Executes the given delegate in the OpenGL device's main execution thread. In the delegate, OpenGL commands can be executed directly. This method does not return until the delegate's execution is fully completed.
Declaration
public void ExecuteOnGLThread(Action action)
Parameters
Type | Name | Description |
---|---|---|
System.Action | action |
FlushAndFinish()
Executes a glFlush and a glFinish command, and waits for their completion.
Declaration
public void FlushAndFinish()
GetTextureName(Texture)
Gets the name of the OpenGL texture object wrapped by the given Veldrid Texture.
Declaration
public uint GetTextureName(Texture texture)
Parameters
Type | Name | Description |
---|---|---|
Texture | texture |
Returns
Type | Description |
---|---|
System.UInt32 | The Veldrid Texture's underlying OpenGL texture name. |
SetTextureTarget(Texture, UInt32)
Sets the texture target of the OpenGL texture object wrapped by the given Veldrid Texture to to a custom value. This could be used to set platform specific texture target values like Veldrid.OpenGLBinding.TextureTarget.TextureExternalOes.
Declaration
public void SetTextureTarget(Texture texture, uint textureTarget)
Parameters
Type | Name | Description |
---|---|---|
Texture | texture | |
System.UInt32 | textureTarget |