Class GLImageFormatExtensions
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Maps ImageFormat to OpenGL equivalents, keeping the renderer unaware of API specific formats so they can later map to anything else. Facts that hold for every API live on ImageFormatExtensions.
csharp
public static class GLImageFormatExtensionsInheritance
object ← GLImageFormatExtensions
Methods
ToGLPixelFormat(ImageFormat)
Returns the pixel format for uploads and readbacks. Not valid for block compressed formats.
csharp
public static PixelFormat ToGLPixelFormat(this ImageFormat format)Parameters
format ImageFormat
Returns
PixelFormat
ToGLPixelType(ImageFormat)
Returns the pixel component type for uploads and readbacks. Not valid for block compressed formats.
csharp
public static PixelType ToGLPixelType(this ImageFormat format)Parameters
format ImageFormat
Returns
PixelType
ToGLSizedInternalFormat(ImageFormat, bool)
Returns the sized internal format for texture storage.
csharp
public static SizedInternalFormat ToGLSizedInternalFormat(this ImageFormat format, bool srgb = false)Parameters
format ImageFormat
srgb bool
Returns
SizedInternalFormat

