Closed noloop closed 4 years ago
How do I get an opengl ES 2.0 context with cl-sdl2?
I thought of using as in C:
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
But I don't find any key for "SDL_GL_CONTEXT_PROFILE_ES":
(sdl2:gl-set-attr :context-profile-mask ?) (sdl2:gl-set-attr :context-major-version 2) (sdl2:gl-set-attr :context-minor-version 0)
The value you are looking for is sdl2-ffi:+sdl-gl-context-profile-es+.
sdl2-ffi:+sdl-gl-context-profile-es+
How do I get an opengl ES 2.0 context with cl-sdl2?
I thought of using as in C:
But I don't find any key for "SDL_GL_CONTEXT_PROFILE_ES":