glx: indent -br -i3 -npcs --no-tabs glxextensions.h
This commit is contained in:

committed by
Brian Paul

parent
1d0a9e4377
commit
80c83c97fc
@@ -32,7 +32,8 @@
|
|||||||
#ifndef GLX_GLXEXTENSIONS_H
|
#ifndef GLX_GLXEXTENSIONS_H
|
||||||
#define GLX_GLXEXTENSIONS_H
|
#define GLX_GLXEXTENSIONS_H
|
||||||
|
|
||||||
enum {
|
enum
|
||||||
|
{
|
||||||
ARB_get_proc_address_bit = 0,
|
ARB_get_proc_address_bit = 0,
|
||||||
ARB_multisample_bit,
|
ARB_multisample_bit,
|
||||||
ARB_render_texture_bit,
|
ARB_render_texture_bit,
|
||||||
@@ -41,7 +42,7 @@ enum {
|
|||||||
EXT_visual_rating_bit,
|
EXT_visual_rating_bit,
|
||||||
EXT_import_context_bit,
|
EXT_import_context_bit,
|
||||||
MESA_agp_offset_bit,
|
MESA_agp_offset_bit,
|
||||||
MESA_allocate_memory_bit, /* Replaces MESA_agp_offset & NV_vertex_array_range */
|
MESA_allocate_memory_bit, /* Replaces MESA_agp_offset & NV_vertex_array_range */
|
||||||
MESA_copy_sub_buffer_bit,
|
MESA_copy_sub_buffer_bit,
|
||||||
MESA_depth_float_bit,
|
MESA_depth_float_bit,
|
||||||
MESA_pixmap_colormap_bit,
|
MESA_pixmap_colormap_bit,
|
||||||
@@ -68,7 +69,8 @@ enum {
|
|||||||
EXT_texture_from_pixmap_bit
|
EXT_texture_from_pixmap_bit
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum
|
||||||
|
{
|
||||||
GL_ARB_depth_texture_bit = 0,
|
GL_ARB_depth_texture_bit = 0,
|
||||||
GL_ARB_draw_buffers_bit,
|
GL_ARB_draw_buffers_bit,
|
||||||
GL_ARB_fragment_program_bit,
|
GL_ARB_fragment_program_bit,
|
||||||
@@ -231,28 +233,34 @@ enum {
|
|||||||
struct __GLXscreenConfigsRec;
|
struct __GLXscreenConfigsRec;
|
||||||
struct __GLXcontextRec;
|
struct __GLXcontextRec;
|
||||||
|
|
||||||
extern GLboolean __glXExtensionBitIsEnabled( struct __GLXscreenConfigsRec *psc, unsigned bit );
|
extern GLboolean __glXExtensionBitIsEnabled(struct __GLXscreenConfigsRec *psc,
|
||||||
extern const char * __glXGetClientExtensions( void );
|
unsigned bit);
|
||||||
extern void __glXCalculateUsableExtensions( struct __GLXscreenConfigsRec *psc,
|
extern const char *__glXGetClientExtensions(void);
|
||||||
GLboolean display_is_direct_capable, int server_minor_version );
|
extern void __glXCalculateUsableExtensions(struct __GLXscreenConfigsRec *psc,
|
||||||
|
GLboolean
|
||||||
|
display_is_direct_capable,
|
||||||
|
int server_minor_version);
|
||||||
|
|
||||||
extern void __glXCalculateUsableGLExtensions( struct __GLXcontextRec * gc,
|
extern void __glXCalculateUsableGLExtensions(struct __GLXcontextRec *gc,
|
||||||
const char * server_string, int major_version, int minor_version );
|
const char *server_string,
|
||||||
extern void __glXGetGLVersion( int * major_version, int * minor_version );
|
int major_version,
|
||||||
extern char * __glXGetClientGLExtensionString( void );
|
int minor_version);
|
||||||
|
extern void __glXGetGLVersion(int *major_version, int *minor_version);
|
||||||
|
extern char *__glXGetClientGLExtensionString(void);
|
||||||
|
|
||||||
extern GLboolean __glExtensionBitIsEnabled( const struct __GLXcontextRec * gc,
|
extern GLboolean __glExtensionBitIsEnabled(const struct __GLXcontextRec *gc,
|
||||||
unsigned bit );
|
unsigned bit);
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
__glXEnableDirectExtension(struct __GLXscreenConfigsRec *psc, const char *name);
|
__glXEnableDirectExtension(struct __GLXscreenConfigsRec *psc,
|
||||||
|
const char *name);
|
||||||
|
|
||||||
/* Source-level backwards compatibility with old drivers. They won't
|
/* Source-level backwards compatibility with old drivers. They won't
|
||||||
* find the respective functions, though.
|
* find the respective functions, though.
|
||||||
*/
|
*/
|
||||||
typedef void (* PFNGLXENABLEEXTENSIONPROC) ( const char * name,
|
typedef void (*PFNGLXENABLEEXTENSIONPROC) (const char *name,
|
||||||
GLboolean force_client );
|
GLboolean force_client);
|
||||||
typedef void (* PFNGLXDISABLEEXTENSIONPROC) ( const char * name );
|
typedef void (*PFNGLXDISABLEEXTENSIONPROC) (const char *name);
|
||||||
|
|
||||||
/* GLX_ALIAS should be used for functions with a non-void return type.
|
/* GLX_ALIAS should be used for functions with a non-void return type.
|
||||||
GLX_ALIAS_VOID is for functions with a void return type. */
|
GLX_ALIAS_VOID is for functions with a void return type. */
|
||||||
@@ -262,17 +270,17 @@ typedef void (* PFNGLXDISABLEEXTENSIONPROC) ( const char * name );
|
|||||||
#else
|
#else
|
||||||
# if defined(__GNUC__) && !defined(GLX_ALIAS_UNSUPPORTED)
|
# if defined(__GNUC__) && !defined(GLX_ALIAS_UNSUPPORTED)
|
||||||
# define GLX_ALIAS(return_type, real_func, proto_args, args, aliased_func) \
|
# define GLX_ALIAS(return_type, real_func, proto_args, args, aliased_func) \
|
||||||
return_type real_func proto_args \
|
return_type real_func proto_args \
|
||||||
__attribute__ ((alias( # aliased_func ) ));
|
__attribute__ ((alias( # aliased_func ) ));
|
||||||
# define GLX_ALIAS_VOID(real_func, proto_args, args, aliased_func) \
|
# define GLX_ALIAS_VOID(real_func, proto_args, args, aliased_func) \
|
||||||
GLX_ALIAS(void, real_func, proto_args, args, aliased_func)
|
GLX_ALIAS(void, real_func, proto_args, args, aliased_func)
|
||||||
# else
|
# else
|
||||||
# define GLX_ALIAS(return_type, real_func, proto_args, args, aliased_func) \
|
# define GLX_ALIAS(return_type, real_func, proto_args, args, aliased_func) \
|
||||||
return_type real_func proto_args \
|
return_type real_func proto_args \
|
||||||
{ return aliased_func args ; }
|
{ return aliased_func args ; }
|
||||||
# define GLX_ALIAS_VOID(real_func, proto_args, args, aliased_func) \
|
# define GLX_ALIAS_VOID(real_func, proto_args, args, aliased_func) \
|
||||||
void real_func proto_args \
|
void real_func proto_args \
|
||||||
{ aliased_func args ; }
|
{ aliased_func args ; }
|
||||||
# endif /* __GNUC__ */
|
# endif /* __GNUC__ */
|
||||||
#endif /* GLX_NO_STATIC_EXTENSION_FUNCTIONS */
|
#endif /* GLX_NO_STATIC_EXTENSION_FUNCTIONS */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user