st/wgl: Add a few more comments.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 26 Jun 2012 09:13:28 +0000 (10:13 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 26 Jun 2012 09:15:36 +0000 (10:15 +0100)
src/gallium/state_trackers/wgl/stw_icd.h
src/gallium/state_trackers/wgl/stw_wgl.c

index 02eb543fef020ab0dc2bee6c4de0878d3490c6c5..9f386c9c10469babbc244f46407369fd6177a19f 100644 (file)
  *
  **************************************************************************/
 
+/**
+ * @file
+ *
+ * This header defines the interface used by the system's opengl32.dll and the
+ * Installable Client Driver (ICD).
+ */
+
 #ifndef STW_ICD_H
 #define STW_ICD_H
 
@@ -447,14 +454,26 @@ typedef struct _GLCBPRESENTBUFFERSDATA
  */
 typedef struct _GLCALLBACKTABLE
 {
-   /** Unused */
-   PROC wglCbSetCurrentValue;
+   /**
+    * Set per-thread driver private data.
+    *
+    * Unused.
+    **/
+   void (APIENTRY *wglCbSetCurrentValue)(void *pvData);
 
-   /** Unused */
-   PROC wglCbGetCurrentValue;
+   /**
+    * Get per-thread private data.
+    *
+    * Unused.
+    */
+   void * (APIENTRY *wglCbGetCurrentValue)(void);
 
-   /** Unused */
-   PROC wglCbGetDhglrc;
+   /**
+    * Get the ICD GHGLRC handle corresponding to the specified hglrc handle.
+    *
+    * Currently unused.
+    */
+   DHGLRC (APIENTRY *wglCbGetDhglrc)(HGLRC hglrc);
 
    /** Unused */
    PROC wglCbGetDdHandle;
index d38bfbefdd79fea5356e518174ccb8552a4b18f2..17b6da8528b67e3660b9c14d7068d74a0c3434e9 100644 (file)
  *
  **************************************************************************/
 
+/**
+ * @file
+ *
+ * Fake WGL API implementation.
+ *
+ * These functions implement the WGL API, on top of the ICD DDI, so that the
+ * resulting DLL can be used as a drop-in replacement for the system's
+ * opengl32.dll.
+ *
+ * These functions never get called for ICD drivers, which use exclusively the
+ * ICD DDI, i.e., the Drv* entrypoints.
+ */
+
 #include <windows.h>
 
 #include "util/u_debug.h"