mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
Added two SDL functions needed for GZDoom
This commit is contained in:
parent
efdfeeec90
commit
406ee9234a
1 changed files with 19 additions and 1 deletions
|
@ -1476,8 +1476,13 @@ SDL_Rect** SDL_ListModes(SDL_PixelFormat* format, Uint32 flags)
|
||||||
return &resolutions[0];
|
return &resolutions[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int SDL_ShowCursor(int)
|
||||||
|
{
|
||||||
|
// Does nothing
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//static GLAuxilium::Texture2D* s_softwareTexture;
|
|
||||||
static GLuint s_frameBufferTexture = 0;
|
static GLuint s_frameBufferTexture = 0;
|
||||||
|
|
||||||
static const Uint16 BYTES_PER_PIXEL = 4;
|
static const Uint16 BYTES_PER_PIXEL = 4;
|
||||||
|
@ -1597,6 +1602,19 @@ void SDL_GL_SwapBuffers()
|
||||||
[[NSOpenGLContext currentContext] flushBuffer];
|
[[NSOpenGLContext currentContext] flushBuffer];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int SDL_GL_SetAttribute(SDL_GLattr attr, int value)
|
||||||
|
{
|
||||||
|
if (SDL_GL_MULTISAMPLESAMPLES == attr)
|
||||||
|
{
|
||||||
|
[s_applicationDelegate setMultisample:value];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Not interested in other attributes
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int SDL_LockSurface(SDL_Surface* surface)
|
int SDL_LockSurface(SDL_Surface* surface)
|
||||||
{
|
{
|
||||||
ZD_UNUSED(surface);
|
ZD_UNUSED(surface);
|
||||||
|
|
Loading…
Reference in a new issue