PrevUpHomeNext

Configs

#include <eglplus/config.hpp>

Config attributes

typedef AttributeList<ConfigAttrib, ...> ConfigAttribs; 1

typedef FinishedAttributeList<ConfigAttrib, ...> FinishedConfigAttribs; 2

1

Attribute list type for config attributes.

2

Finished attribute list type for config attributes.

Config

config is a wrapper for a single egl configuration.

class Config
{
public:
	EGLint GetAttrib(ConfigAttrib attrib) const; 1

	EGLint ConfigId(void) const; 2
	EGLint Id(void) const;

	EGLint BufferSize(void) const; 3

	EGLint RedSize(void) const; 4
	EGLint GreenSize(void) const; 5
	EGLint BlueSize(void) const; 6
	EGLint LuminanceSize(void) const; 7
	EGLint AlphaSize(void) const; 8

	EGLint DepthSize(void) const; 9
	EGLint StencilSize(void) const; 10

	EGLint MaxPbufferWidth(void) const; 11
	EGLint MaxPbufferHeight(void) const; 12
	EGLint MaxPbufferPixels(void) const; 13

1

Returns the value of a specified attribute. See eglGetConfigAttrib.

2

Returns the unique configuration identifier. See eglGetConfigAttrib, EGL_CONFIG_ID.

3

Returns the total component bits of the color buffer. See eglGetConfigAttrib, EGL_BUFFER_SIZE.

4

Returns the number of bits of the red color component. See eglGetConfigAttrib, EGL_RED_SIZE.

5

Returns the number of bits of the green color component. See eglGetConfigAttrib, EGL_GREEN_SIZE.

6

Returns the number of bits of the blue color component. See eglGetConfigAttrib, EGL_BLUE_SIZE.

7

Returns the number of bits of the luminance component. See eglGetConfigAttrib, EGL_LUMINANCE_SIZE.

8

Returns the number of bits of the alpha component. See eglGetConfigAttrib, EGL_ALPHA_SIZE.

9

Returns the number of bits of the depth buffer. See eglGetConfigAttrib, EGL_DEPTH_SIZE.

10

Returns the number of bits of the stencil buffer. See eglGetConfigAttrib, EGL_STENCIL_SIZE.

11

Returns the maximum width of Pbuffers in pixels. See eglGetConfigAttrib, EGL_MAX_PBUFFER_WIDTH.

12

Returns the maximum height of Pbuffers in pixels. See eglGetConfigAttrib, EGL_MAX_PBUFFER_HEIGHT.

13

Returns the maximum size (number of pixels) of Pbuffers. See eglGetConfigAttrib, EGL_MAX_PBUFFER_PIXELS.

	EGLint MinSwapInterval(void) const; 1
	EGLint MaxSwapInterval(void) const; 2

	Boolean NativeRenderable(void) const; 3

	ConfigCaveat ConfigCaveat(void) const; 4
	ConfigCaveat Caveat(void) const;

	ColorBufferType ColorBufferType(void) const; 5

	TransparentType TransparentType(void) const; 6

	Bitfield<RenderableTypeBit> RenderableTypes(void) const; 7
	bool HasRenderableType(RenderableTypeBit type) const; 8

	Bitfield<SurfaceTypeBit> SurfaceTypes(void) const; 9
	bool HasSurfaceType(SurfaceTypeBit type) const; 10

	Bitfield<RenderableTypeBit> Conformant(void) const; 11
	bool IsConformantTo(RenderableTypeBit type) const; 12
};

::EGLConfig GetEGLHandle(const Config& config)
noexcept;

1

Returns the minimum swap interval. See eglGetConfigAttrib, EGL_MIN_SWAP_INTERVAL.

2

Returns the maximum swap interval. See eglGetConfigAttrib, EGL_MAX_SWAP_INTERVAL.

3

Returns true if native rendering API can render to surface. See eglGetConfigAttrib, EGL_NATIVE_RENDERABLE.

4

Returns the caveat for this config. See eglGetConfigAttrib, EGL_CONFIG_CAVEAT.

5

Returns the color buffer type. See eglGetConfigAttrib, EGL_COLOR_BUFFER_TYPE.

6

Returns the transparency type. See eglGetConfigAttrib, EGL_TRANSPARENT_TYPE.

7

Returns the renderable type bits. See eglGetConfigAttrib, EGL_RENDERABLE_TYPE.

8

Returns true if a specified renderable type is supported.

9

Returns the surface type bits. See eglGetConfigAttrib, EGL_SURFACE_TYPE.

10

Returns true if a specified surface type is supported.

11

Returns the conformant bits for this config. See eglGetConfigAttrib, EGL_CONFORMANT.

12

Returns true if the config is conformant to a renderable type.

Configs

Configs is a class that provides access to all configurations of a Display.

class Configs
{
public:
	Configs(const Display& display); 1

	Configs(
		const Display& display,
		const FinishedConfigAttribs& attribs
	); 2

	Range<Config> All(void) const; 3

	bool Empty(void) const; 4

	Config First(void) const; 5
};

1

Gets the configurations for the specified display.

2

Gets configurations for the specified display matching the specified attribute values.

3

Returns a range of all supported configurations.

4

Returns true if there are no matching configs.

5

Returns the first config in this set of configurations if it is not empty.


PrevUpHomeNext