Ream v0.1.0-1
C++ graphics library for Linux
Loading...
Searching...
No Matches
Public Attributes | List of all members
REGLSurfaceInfo Struct Reference

Describes an existing EGLSurface to wrap as an RGLImage. More...

#include <RGLImage.h>

Public Attributes

EGLSurface surface { EGL_NO_SURFACE }
 The EGL surface to render into.
 
SkISize size {}
 Surface size in pixels.
 
RFormat format
 DRM fourcc format of the surface.
 
SkAlphaType alphaType { kUnknown_SkAlphaType }
 Alpha interpretation of the pixels.
 

Detailed Description

Describes an existing EGLSurface to wrap as an RGLImage.

Used by RGLImage::FromEGLSurface() to build an image that renders into a window/pbuffer EGLSurface (e.g. a Wayland swapchain surface).

Member Data Documentation

◆ surface

EGLSurface surface { EGL_NO_SURFACE }

The EGL surface to render into.

◆ size

SkISize size {}

Surface size in pixels.

◆ format

RFormat format

DRM fourcc format of the surface.

◆ alphaType

SkAlphaType alphaType { kUnknown_SkAlphaType }

Alpha interpretation of the pixels.