TerraLib 4.1
__DRIinterfaceMethodsRec Struct Reference

#include <dri_interface.h>

List of all members.

Public Attributes

__DRIfuncPtr(* getProcAddress )(const char *proc_name)
__GLcontextModes *(* createContextModes )(unsigned count, size_t minimum_bytes_per_struct)
void(* destroyContextModes )(__GLcontextModes *modes)
__DRIscreen *(* getScreen )(__DRInativeDisplay *dpy, int screenNum)
Client/server protocol functions.

These functions implement the DRI client/server protocol for context and drawable operations. Platforms that do not implement the wire protocol (e.g., EGL) will implement glorified no-op functions.

GLboolean(* windowExists )(__DRInativeDisplay *dpy, __DRIid draw)
GLboolean(* createContext )(__DRInativeDisplay *dpy, int screenNum, int configID, void *contextID, drm_context_t *hw_context)
GLboolean(* destroyContext )(__DRInativeDisplay *dpy, int screenNum, __DRIid context)
GLboolean(* createDrawable )(__DRInativeDisplay *ndpy, int screen, __DRIid drawable, drm_drawable_t *hHWDrawable)
GLboolean(* destroyDrawable )(__DRInativeDisplay *ndpy, int screen, __DRIid drawable)
GLboolean(* getDrawableInfo )(__DRInativeDisplay *dpy, int scrn, __DRIid draw, unsigned int *index, unsigned int *stamp, int *x, int *y, int *width, int *height, int *numClipRects, drm_clip_rect_t **pClipRects, int *backX, int *backY, int *numBackClipRects, drm_clip_rect_t **pBackClipRects)
Timing related functions.
int(* getUST )(int64_t *ust)
GLboolean(* getMSCRate )(__DRInativeDisplay *dpy, __DRIid drawable, int32_t *numerator, int32_t *denominator)

Member Data Documentation

GLboolean(* __DRIinterfaceMethodsRec::createContext)(__DRInativeDisplay *dpy, int screenNum, int configID, void *contextID, drm_context_t *hw_context)

Create the server-side portion of the GL context.

__GLcontextModes *(* __DRIinterfaceMethodsRec::createContextModes)(unsigned count, size_t minimum_bytes_per_struct)

Create a list of __GLcontextModes structures.

GLboolean(* __DRIinterfaceMethodsRec::createDrawable)(__DRInativeDisplay *ndpy, int screen, __DRIid drawable, drm_drawable_t *hHWDrawable)

Create the server-side portion of the drawable.

Destroy the server-side portion of the GL context.

Destroy a list of __GLcontextModes structures.

Todo:
Determine if the drivers actually need to call this.

Destroy a list of __GLcontextModes structures.

Todo:
Determine if the drivers actually need to call this.

Destroy the server-side portion of the drawable.

GLboolean(* __DRIinterfaceMethodsRec::getDrawableInfo)(__DRInativeDisplay *dpy, int scrn, __DRIid draw, unsigned int *index, unsigned int *stamp, int *x, int *y, int *width, int *height, int *numClipRects, drm_clip_rect_t **pClipRects, int *backX, int *backY, int *numBackClipRects, drm_clip_rect_t **pBackClipRects)

This function is used to get information about the position, size, and clip rects of a drawable.

GLboolean(* __DRIinterfaceMethodsRec::getMSCRate)(__DRInativeDisplay *dpy, __DRIid drawable, int32_t *numerator, int32_t *denominator)

Get the media stream counter (MSC) rate.

Matching the definition in GLX_OML_sync_control, this function returns the rate of the "media stream counter". In practical terms, this is the frame refresh rate of the display.

Get pointer to named function.

Get the __DRIscreen for a given display and screen number.

int(* __DRIinterfaceMethodsRec::getUST)(int64_t *ust)

Get the 64-bit unadjusted system time (UST).

Determine if the specified window ID still exists.

Note:
Implementations may assume that the driver will only pass an ID into this function that actually corresponds to a window. On implementations where windows can only be destroyed by the DRI driver (e.g., EGL), this function is allowed to always return GL_TRUE.

The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines