diff src/video/SDL_renderer_gles.c @ 3139:7f684f249ec9

indent
author Sam Lantinga <slouken@libsdl.org>
date Sat, 23 May 2009 22:41:08 +0000
parents 6c98826d88b0
children 494559cc723b
line wrap: on
line diff
--- a/src/video/SDL_renderer_gles.c	Fri May 15 15:47:37 2009 +0000
+++ b/src/video/SDL_renderer_gles.c	Sat May 23 22:41:08 2009 +0000
@@ -34,9 +34,10 @@
 
 /* Empty function stub to get OpenGL ES 1.0 support without  */
 /* OpenGL ES extension GL_OES_draw_texture_supported         */
-GL_API void GL_APIENTRY glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height)
+GL_API void GL_APIENTRY
+glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height)
 {
-   return;
+    return;
 }
 
 #endif /* __QNXNTO__ */
@@ -105,8 +106,7 @@
      {
       /* OpenGL ES 1.x supported formats list */
       SDL_PIXELFORMAT_BGR24,
-      SDL_PIXELFORMAT_ABGR8888
-     },
+      SDL_PIXELFORMAT_ABGR8888},
      0,
      0}
 };
@@ -351,7 +351,7 @@
 }
 
 static int
-GLES_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture)
+GLES_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
 {
     GLES_RenderData *renderdata = (GLES_RenderData *) renderer->driverdata;
     SDL_Window *window = SDL_GetWindowFromID(renderer->window);
@@ -363,15 +363,15 @@
 
     switch (texture->format) {
     case SDL_PIXELFORMAT_BGR24:
-         internalFormat = GL_RGB;
-         format = GL_RGB;
-         type = GL_UNSIGNED_BYTE;
-         break;
+        internalFormat = GL_RGB;
+        format = GL_RGB;
+        type = GL_UNSIGNED_BYTE;
+        break;
     case SDL_PIXELFORMAT_ABGR8888:
-         internalFormat = GL_RGBA;
-         format = GL_RGBA;
-         type = GL_UNSIGNED_BYTE;
-         break;
+        internalFormat = GL_RGBA;
+        format = GL_RGBA;
+        type = GL_UNSIGNED_BYTE;
+        break;
         /*
            These formats would be supported if SDL had the necessary pixel formats
            case SDL_PIXELFORMAT_BGR565:
@@ -389,7 +389,7 @@
            format = GL_RGBA;
            type = GL_UNSIGNED_SHORT_4_4_4_4;
            break;
-        */
+         */
     default:
         SDL_SetError("Unsupported texture format");
         return -1;
@@ -533,8 +533,8 @@
 }
 
 static int
-GLES_UpdateTexture(SDL_Renderer *renderer, SDL_Texture *texture,
-                   const SDL_Rect *rect, const void *pixels, int pitch)
+GLES_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
+                   const SDL_Rect * rect, const void *pixels, int pitch)
 {
     GLES_RenderData *renderdata = (GLES_RenderData *) renderer->driverdata;
     GLES_TextureData *data = (GLES_TextureData *) texture->driverdata;
@@ -858,7 +858,7 @@
 }
 
 static void
-GLES_RenderPresent(SDL_Renderer *renderer)
+GLES_RenderPresent(SDL_Renderer * renderer)
 {
     SDL_GL_SwapWindow(renderer->window);
 }