table of contents
SDL_EGLIntArrayCallback(3type) | SDL3 DATATYPES | SDL_EGLIntArrayCallback(3type) |
NAME¶
SDL_EGLIntArrayCallback - EGL surface/context attribute initialization callback types.
HEADER FILE¶
Defined in SDL3/SDL_video.h
SYNOPSIS¶
#include "SDL3/SDL.h"
typedef SDL_EGLint *(SDLCALL *SDL_EGLIntArrayCallback)(void *userdata, SDL_EGLDisplay display, SDL_EGLConfig config);
DESCRIPTION¶
This is called when SDL is attempting to create an EGL surface, to let the app add extra attributes to its eglCreateWindowSurface() or eglCreateContext calls.
For convenience, the EGLDisplay and EGLConfig to use are provided to the callback.
The callback should return a pointer to an EGL attribute array terminated with EGL_NONE . If this function returns NULL, the
SDL_CreateWindow
process will fail gracefully.
The returned pointer should be allocated with SDL_malloc () and will be passed to SDL_free ().
The arrays returned by each callback will be appended to the existing attribute arrays defined by SDL.
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns a newly-allocated array of attributes, terminated with EGL_NONE .
AVAILABILITY¶
This datatype is available since SDL 3.1.3.
SEE ALSO¶
SDL 3.1.6 | Simple Directmedia Layer |