Add interfaces for overriding texture images with driver specific 'offsets'.

To be used by AIGLX for GLX_EXT_texture_from_pixmap without several
additional data copies.
This commit is contained in:
Michel Dänzer
2007-05-22 14:08:10 +02:00
parent 24d965fab5
commit 043d219b6d
3 changed files with 21 additions and 0 deletions

View File

@@ -189,6 +189,12 @@ struct __DriverAPIRec {
/*@}*/
void (*CopySubBuffer)(__DRIdrawablePrivate *driDrawPriv,
int x, int y, int w, int h);
/**
* See corresponding field in \c __DRIscreenRec.
*/
void (*setTexOffset)(__DRIcontext *pDRICtx, GLint texname,
unsigned long long offset, GLint depth, GLuint pitch);
};