Class GLGraphicsTypeExtensions
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Maps the engine's own vocabulary to the OpenGL equivalents, the way
does for image formats.csharp
public static class GLGraphicsTypeExtensionsInheritance
object ← GLGraphicsTypeExtensions
Methods
ToGLBufferUsageHint(BufferUsage)
Returns the usage hint for this access pattern. GL takes a frequency and a direction where other APIs take a heap, so the hint is the closest pair rather than an exact equivalent.
csharp
public static BufferUsageHint ToGLBufferUsageHint(this BufferUsage usage)Parameters
usage BufferUsage
Returns
BufferUsageHint
ToGLShaderType(ShaderProgramType)
Returns the shader object type for this pipeline stage.
csharp
public static ShaderType ToGLShaderType(this ShaderProgramType stage)Parameters
stage ShaderProgramType
Returns
ShaderType
ToGLTextureWrapMode(RsTextureAddressMode)
Returns the wrap mode for this addressing mode.
csharp
public static TextureWrapMode ToGLTextureWrapMode(this RsTextureAddressMode mode)Parameters
mode RsTextureAddressMode
Returns
TextureWrapMode

