|
Ream v0.1.0-1
C++ graphics library for Linux
|
OpenGL ES pixel format descriptor mapped from a DRM format. More...
#include <RGLFormat.h>
Static Public Member Functions | |
| static const RGLFormat * | FromDRM (RFormat format) noexcept |
| Returns the GL format descriptor for a given DRM fourcc format. | |
Public Attributes | |
| GLint | format |
Client pixel format (e.g. GL_RGBA, GL_BGRA_EXT, GL_ALPHA). | |
| GLint | internalFormat |
Sized internal format (e.g. GL_RGBA8_OES, GL_BGRA8_EXT). | |
| GLint | type |
Component data type (e.g. GL_UNSIGNED_BYTE, GL_HALF_FLOAT_OES). | |
OpenGL ES pixel format descriptor mapped from a DRM format.
Bundles the three arguments GLES needs to describe a pixel layout in calls such as glTexImage2D()/glReadPixels(): the client-side format, the sized internal format, and the component type.
|
staticnoexcept |
Returns the GL format descriptor for a given DRM fourcc format.
| format | A DRM fourcc format code. |
nullptr if the DRM format has no known GL mapping. Some mappings are only available on little-endian hosts. | GLint format |
Client pixel format (e.g. GL_RGBA, GL_BGRA_EXT, GL_ALPHA).
| GLint internalFormat |
Sized internal format (e.g. GL_RGBA8_OES, GL_BGRA8_EXT).
| GLint type |
Component data type (e.g. GL_UNSIGNED_BYTE, GL_HALF_FLOAT_OES).