dri_interface.h File Reference

#include <GL/internal/glcore.h>
#include <drm.h>

Go to the source code of this file.

Data Structures

struct  __DRIcontextRec
 Context dependent methods. More...
struct  __DRIdrawableRec
 Drawable dependent methods. More...
struct  __DRIframebufferRec
 Framebuffer information record. More...
struct  __DRIinterfaceMethodsRec
struct  __DRIscreenRec
 Screen dependent methods. More...
struct  __DRIversionRec
 Stored version of some component (i.e., server-side DRI module, kernel-side DRM, etc. More...

DRI interface structures

The following structures define the interface between the GLX client side library and the DRI (direct rendering infrastructure).

typedef struct
__DRIcontextRec 
__DRIcontext
typedef struct
__DRIdisplayRec 
__DRIdisplay
typedef struct
__DRIdrawableRec 
__DRIdrawable
typedef struct
__DRIdriverRec 
__DRIdriver
typedef struct
__DRIframebufferRec 
__DRIframebuffer
typedef unsigned long __DRIid
typedef struct
__DRIinterfaceMethodsRec 
__DRIinterfaceMethods
typedef void __DRInativeDisplay
typedef struct
__DRIscreenRec 
__DRIscreen
typedef struct
__DRIversionRec 
__DRIversion

Functions and data provided by the driver.

typedef void *( CREATENEWSCREENFUNC )(__DRInativeDisplay *dpy, int scrn, __DRIscreen *psc, const __GLcontextModes *modes, const __DRIversion *ddx_version, const __DRIversion *dri_version, const __DRIversion *drm_version, const __DRIframebuffer *frame_buffer, void *pSAREA, int fd, int internal_api_version, const __DRIinterfaceMethods *interface, __GLcontextModes **driver_modes)
typedef
CREATENEWSCREENFUNC
PFNCREATENEWSCREENFUNC
const char __driConfigOptions []
 XML document describing the configuration options supported by the driver.
CREATENEWSCREENFUNC __driCreateNewScreen_20050727

Functions provided by the driver loader.

typedef const char *(* PFNGLXGETDRIVERCONFIGPROC )(const char *driverName)
 Type of a pointer to glXGetDriverConfig, as returned by glXGetProcAddress.
typedef const char *(* PFNGLXGETSCREENDRIVERPROC )(__DRInativeDisplay *dpy, int scrNum)
 Type of a pointer to glXGetScreenDriver, as returned by glXGetProcAddress.
typedef void(* PFNGLXSCRENABLEEXTENSIONPROC )(void *psc, const char *name)
 Type of a pointer to glxEnableExtension, as returned by __DRIinterfaceMethods::getProcAddress.

Typedefs

typedef void(* __DRIfuncPtr )(void)


Typedef Documentation

typedef struct __DRIcontextRec __DRIcontext

Definition at line 53 of file dri_interface.h.

typedef struct __DRIdisplayRec __DRIdisplay

Definition at line 51 of file dri_interface.h.

typedef struct __DRIdrawableRec __DRIdrawable

Definition at line 54 of file dri_interface.h.

typedef struct __DRIdriverRec __DRIdriver

Definition at line 55 of file dri_interface.h.

typedef struct __DRIframebufferRec __DRIframebuffer

Definition at line 56 of file dri_interface.h.

typedef void(* __DRIfuncPtr)(void)

Definition at line 137 of file dri_interface.h.

typedef unsigned long __DRIid

Definition at line 59 of file dri_interface.h.

typedef struct __DRIinterfaceMethodsRec __DRIinterfaceMethods

Definition at line 58 of file dri_interface.h.

typedef void __DRInativeDisplay

Definition at line 60 of file dri_interface.h.

typedef struct __DRIscreenRec __DRIscreen

Definition at line 52 of file dri_interface.h.

typedef struct __DRIversionRec __DRIversion

Definition at line 57 of file dri_interface.h.

typedef void*( CREATENEWSCREENFUNC)(__DRInativeDisplay *dpy, int scrn, __DRIscreen *psc, const __GLcontextModes *modes, const __DRIversion *ddx_version, const __DRIversion *dri_version, const __DRIversion *drm_version, const __DRIframebuffer *frame_buffer, void *pSAREA, int fd, int internal_api_version, const __DRIinterfaceMethods *interface, __GLcontextModes **driver_modes)

Definition at line 101 of file dri_interface.h.

typedef CREATENEWSCREENFUNC* PFNCREATENEWSCREENFUNC

Definition at line 108 of file dri_interface.h.

typedef const char*(* PFNGLXGETDRIVERCONFIGPROC)(const char *driverName)

This function is used to get the XML document describing the configuration options available for the specified driver.

See also:
glXGetDriverConfig, glXGetProcAddress, glXGetScreenDriver

Definition at line 85 of file dri_interface.h.

typedef const char*(* PFNGLXGETSCREENDRIVERPROC)(__DRInativeDisplay *dpy, int scrNum)

This function is used to get the name of the DRI driver for the specified screen of the specified display. The driver name is typically used with glXGetDriverConfig.

See also:
glXGetScreenDriver, glXGetProcAddress, glXGetDriverConfig

Definition at line 76 of file dri_interface.h.

typedef void(* PFNGLXSCRENABLEEXTENSIONPROC)(void *psc, const char *name)

This function is used to enable a GLX extension on the specified screen.

Definition at line 92 of file dri_interface.h.


Variable Documentation

const char __driConfigOptions[]

CREATENEWSCREENFUNC __driCreateNewScreen_20050727


Generated on Sun Jul 29 04:01:30 2012 for TerraLib - Development Source by  doxygen 1.5.3