logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_EGL_SetAttributeCallbacks - Sets the callbacks for defining custom EGLAttrib arrays for EGL

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                   SDL_EGL_SetAttributeCallbacks(3)

Description

       Callbacks that aren't needed can be set to NULL.

       NOTE: These callback pointers will be reset after

       SDL_GL_ResetAttributes .

Function Parameters

platformAttribCallback
              callback for attributes to pass to eglGetPlatformDisplay. May be NULL.

       surfaceAttribCallback
              callback for attributes to pass to eglCreateSurface. May be NULL.

       contextAttribCallback
              callback for attributes to pass to eglCreateContext. May be NULL.

       userdata
              a pointer that is passed to the callbacks.

Header File

       Defined in SDL3/SDL_video.h

Name

       SDL_EGL_SetAttributeCallbacks  -  Sets  the  callbacks  for  defining  custom  EGLAttrib  arrays  for EGL
       initialization.

Synopsis

#include"SDL3/SDL.h"voidSDL_EGL_SetAttributeCallbacks(SDL_EGLAttribArrayCallbackplatformAttribCallback,SDL_EGLIntArrayCallbacksurfaceAttribCallback,SDL_EGLIntArrayCallbackcontextAttribCallback,void*userdata);

Thread Safety

       This function should only be called on the main thread.

See Also