Table of Contents

Class BackendInfoOpenGL

Namespace
NeoVeldrid
Assembly
NeoVeldrid.dll

Exposes OpenGL-specific functionality, useful for interoperating with native components which interface directly with OpenGL. Can only be used on OpenGL or OpenGLES.

public class BackendInfoOpenGL
Inheritance
BackendInfoOpenGL
Inherited Members

Properties

Extensions

Gets a collection of available OpenGL extensions.

public ReadOnlyCollection<string> Extensions { get; }

Property Value

ReadOnlyCollection<string>

ShadingLanguageVersion

Gets the Shader Language Version string of this OpenGL implementation.

public string ShadingLanguageVersion { get; }

Property Value

string

Remarks

The string begins with a version number. The version number uses one of these forms:

  • major_number.minor_number
  • major_number.minor_number.release_number

Vendor-specific information may follow the version number. Its format depends on the implementation, but a space always separates the version number and the vendor-specific information.

Version

Gets the Version string of this OpenGL implementation.

public string Version { get; }

Property Value

string

Remarks

The string begins with a version number. The version number uses one of these forms:

  • major_number.minor_number
  • major_number.minor_number.release_number

Vendor-specific information may follow the version number. Its format depends on the implementation, but a space always separates the version number and the vendor-specific information.

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.

public void ExecuteOnGLThread(Action action)

Parameters

action Action

FlushAndFinish()

Executes a glFlush and a glFinish command, and waits for their completion.

public void FlushAndFinish()

GetTextureName(Texture)

Gets the name of the OpenGL texture object wrapped by the given NeoVeldrid Texture.

public uint GetTextureName(Texture texture)

Parameters

texture Texture

Returns

uint

The NeoVeldrid Texture's underlying OpenGL texture name.

SetTextureTarget(Texture, uint)

Sets the texture target of the OpenGL texture object wrapped by the given NeoVeldrid Texture to to a custom value. This could be used to set platform specific texture target values like NeoVeldrid.OpenGLBinding.TextureTarget.TextureExternalOes.

public void SetTextureTarget(Texture texture, uint textureTarget)

Parameters

texture Texture
textureTarget uint