src/video/ataricommon/SDL_atarigl_c.h
changeset 1895 c121d94672cb
parent 1402 d910939febfa
child 2033 b657f0bc72c2
     1.1 --- a/src/video/ataricommon/SDL_atarigl_c.h	Thu Jul 06 18:01:37 2006 +0000
     1.2 +++ b/src/video/ataricommon/SDL_atarigl_c.h	Mon Jul 10 21:04:37 2006 +0000
     1.3 @@ -35,47 +35,54 @@
     1.4  /* Hidden "this" pointer for the video functions */
     1.5  #define _THIS   SDL_VideoDevice *this
     1.6  
     1.7 -struct SDL_PrivateGLData {
     1.8 +struct SDL_PrivateGLData
     1.9 +{
    1.10  
    1.11 -    int gl_active; 	/* to stop switching drivers while we have a valid context */
    1.12 -	
    1.13 -	int gl_oldmesa;	/* Old OpenGL support ? */
    1.14 +    int gl_active;              /* to stop switching drivers while we have a valid context */
    1.15  
    1.16 -	int	gl_pixelsize;	/* for CopyShadow functions */
    1.17 +    int gl_oldmesa;             /* Old OpenGL support ? */
    1.18 +
    1.19 +    int gl_pixelsize;           /* for CopyShadow functions */
    1.20  
    1.21 -	SDL_bool gl_upsidedown; /* Some implementations draw upside down */
    1.22 +    SDL_bool gl_upsidedown;     /* Some implementations draw upside down */
    1.23  
    1.24 -	Uint8 *gl_shadow;	/* Shadow buffer for old implementations */
    1.25 +    Uint8 *gl_shadow;           /* Shadow buffer for old implementations */
    1.26  
    1.27 -	/* for unsupported OSMesa buffer formats */
    1.28 -	void (*ConvertSurface)(_THIS, SDL_Surface *surface);	
    1.29 +    /* for unsupported OSMesa buffer formats */
    1.30 +    void (*ConvertSurface) (_THIS, SDL_Surface * surface);
    1.31  
    1.32 -	/* to convert the shadow buffer to the screen format */
    1.33 -	void (*CopyShadow)(_THIS, SDL_Surface *surface);	
    1.34 +    /* to convert the shadow buffer to the screen format */
    1.35 +    void (*CopyShadow) (_THIS, SDL_Surface * surface);
    1.36  
    1.37  #if SDL_VIDEO_OPENGL
    1.38 -	OSMesaContext	ctx;
    1.39 +    OSMesaContext ctx;
    1.40  
    1.41 -	/* OpenGL functions */
    1.42 -	void (*glGetIntegerv)( GLenum pname, GLint *value );
    1.43 -	void (*glFinish)(void);
    1.44 -	void (*glFlush)(void);
    1.45 +    /* OpenGL functions */
    1.46 +    void (*glGetIntegerv) (GLenum pname, GLint * value);
    1.47 +    void (*glFinish) (void);
    1.48 +    void (*glFlush) (void);
    1.49  
    1.50 -	/* osmesa.ldg */
    1.51 -	OSMesaContext (*OSMesaCreateContextExt)( GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, OSMesaContext sharelist);
    1.52 -	void (*OSMesaDestroyContext)( OSMesaContext ctx );
    1.53 -	GLboolean (*OSMesaMakeCurrent)( OSMesaContext ctx, void *buffer, GLenum type, GLsizei width, GLsizei height );
    1.54 -	void (*OSMesaPixelStore)( GLint pname, GLint value );
    1.55 -	void * (*OSMesaGetProcAddress)( const char *funcName );
    1.56 +    /* osmesa.ldg */
    1.57 +      OSMesaContext(*OSMesaCreateContextExt) (GLenum format, GLint depthBits,
    1.58 +                                              GLint stencilBits,
    1.59 +                                              GLint accumBits,
    1.60 +                                              OSMesaContext sharelist);
    1.61 +    void (*OSMesaDestroyContext) (OSMesaContext ctx);
    1.62 +      GLboolean(*OSMesaMakeCurrent) (OSMesaContext ctx, void *buffer,
    1.63 +                                     GLenum type, GLsizei width,
    1.64 +                                     GLsizei height);
    1.65 +    void (*OSMesaPixelStore) (GLint pname, GLint value);
    1.66 +    void *(*OSMesaGetProcAddress) (const char *funcName);
    1.67  
    1.68 -	/* mesa_gl.ldg, tiny_gl.ldg */
    1.69 -	void *(*OSMesaCreateLDG)( long format, long type, long width, long height );
    1.70 -	void (*OSMesaDestroyLDG)(void);
    1.71 +    /* mesa_gl.ldg, tiny_gl.ldg */
    1.72 +    void *(*OSMesaCreateLDG) (long format, long type, long width,
    1.73 +                              long height);
    1.74 +    void (*OSMesaDestroyLDG) (void);
    1.75  
    1.76 -	/* Info needed to compare existing context with new asked one */
    1.77 -	int width, height;
    1.78 -	GLenum format;
    1.79 -	GLint depth,stencil,accum;
    1.80 +    /* Info needed to compare existing context with new asked one */
    1.81 +    int width, height;
    1.82 +    GLenum format;
    1.83 +    GLint depth, stencil, accum;
    1.84  #endif
    1.85  };
    1.86  
    1.87 @@ -96,14 +103,15 @@
    1.88  #define gl_curheight	(this->gl_data->height)
    1.89  
    1.90  /* OpenGL functions */
    1.91 -extern int SDL_AtariGL_Init(_THIS, SDL_Surface *current);
    1.92 +extern int SDL_AtariGL_Init(_THIS, SDL_Surface * current);
    1.93  extern void SDL_AtariGL_Quit(_THIS, SDL_bool unload);
    1.94  extern void SDL_AtariGL_InitPointers(_THIS);
    1.95  
    1.96  extern int SDL_AtariGL_LoadLibrary(_THIS, const char *path);
    1.97  extern void *SDL_AtariGL_GetProcAddress(_THIS, const char *proc);
    1.98 -extern int SDL_AtariGL_GetAttribute(_THIS, SDL_GLattr attrib, int* value);
    1.99 +extern int SDL_AtariGL_GetAttribute(_THIS, SDL_GLattr attrib, int *value);
   1.100  extern int SDL_AtariGL_MakeCurrent(_THIS);
   1.101  extern void SDL_AtariGL_SwapBuffers(_THIS);
   1.102  
   1.103  #endif /* _SDL_ATARIGL_H_ */
   1.104 +/* vi: set ts=4 sw=4 expandtab: */