mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-31 08:57:40 +00:00
Updated source to match SDL function prototype style
This commit is contained in:
parent
737aa881fa
commit
ddbdd73258
173 changed files with 481 additions and 942 deletions
|
@ -175,8 +175,7 @@ typedef struct GLES2_RenderData
|
|||
|
||||
static const float inv255f = 1.0f / 255.0f;
|
||||
|
||||
SDL_FORCE_INLINE const char *
|
||||
GL_TranslateError(GLenum error)
|
||||
static const char *GL_TranslateError(GLenum error)
|
||||
{
|
||||
#define GL_ERROR_TRANSLATE(e) \
|
||||
case e: \
|
||||
|
@ -193,8 +192,7 @@ GL_TranslateError(GLenum error)
|
|||
#undef GL_ERROR_TRANSLATE
|
||||
}
|
||||
|
||||
SDL_FORCE_INLINE void
|
||||
GL_ClearErrors(SDL_Renderer *renderer)
|
||||
static void GL_ClearErrors(SDL_Renderer *renderer)
|
||||
{
|
||||
GLES2_RenderData *data = (GLES2_RenderData *)renderer->driverdata;
|
||||
|
||||
|
@ -206,8 +204,7 @@ GL_ClearErrors(SDL_Renderer *renderer)
|
|||
}
|
||||
}
|
||||
|
||||
SDL_FORCE_INLINE int
|
||||
GL_CheckAllErrors(const char *prefix, SDL_Renderer *renderer, const char *file, int line, const char *function)
|
||||
static int GL_CheckAllErrors(const char *prefix, SDL_Renderer *renderer, const char *file, int line, const char *function)
|
||||
{
|
||||
GLES2_RenderData *data = (GLES2_RenderData *)renderer->driverdata;
|
||||
int ret = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue