Current News
Archived News
Search News
Discussion Forum


Old Forum
Install Programs More Downloads...
Troubleshooting
Source Code
Format Specs.
Misc. Information
Non-SF Stuff
Links




index 8fc78cb..2f48cef 100644 (file)
@@ -1,6 +1,6 @@
 /*\r
 \r
-  ShadowFlare GRP Library. (c) ShadowFlare Software 2002\r
+  ShadowFlare GRP Library. (c) ShadowFlare Software 2002-2006\r
 \r
   Any comments or suggestions are accepted at blakflare@hotmail.com (ShadowFlare)\r
 */\r
@@ -55,6 +55,30 @@ BOOL   GRPAPI WINAPI DestroyGrp(HANDLE hGrp);
 BOOL   GRPAPI WINAPI DrawGrp(HANDLE hGrp, HDC hdcDest, int nXDest, int nYDest, WORD nFrame, DWORD *dwPalette, DWORD dwFlags, DWORD dwAlpha);\r
 BOOL   GRPAPI WINAPI GetGrpInfo(HANDLE hGrp, GRPHEADER *GrpInfo);\r
 \r
+typedef COLORREF (WINAPI* GETPIXELPROC)(\r
+  HDC hDC, // same value as hdcDest from DrawGrp,\r
+              // does not need to be used as an HDC,\r
+              // can be used for any other type of pointer\r
+  int X,   // x-coordinate of pixel\r
+  int Y    // y-coordinate of pixel\r
+);\r
+typedef void (WINAPI* SETPIXELPROC)(\r
+       HDC hDC,          // same value as hdcDest from DrawGrp,\r
+                         // does not need to be used as an HDC,\r
+                         // can be used for any other type of pointer\r
+       int X,            // x-coordinate of pixel\r
+       int Y,            // y-coordinate of pixel\r
+       COLORREF clrColor // new pixel color\r
+);\r
+\r
+// Call these to have DrawGrp use custom functions for reading and drawing pixels\r
+// so that you can have it read from and write to a buffer, for example.\r
+void GRPAPI WINAPI SetFunctionGetPixel(GETPIXELPROC lpGetPixelProc);\r
+void GRPAPI WINAPI SetFunctionSetPixel(SETPIXELPROC lpSetPixelProc);\r
+\r
+// Call this to make a different Storm.dll-compatible MPQ library be used (like SFMPQ).\r
+BOOL GRPAPI WINAPI SetMpqDll(LPCSTR lpDllFileName);\r
+\r
 // These no longer need to be called\r
 BOOL   GRPAPI WINAPI LoadGrpApi();\r
 void   GRPAPI WINAPI FreeGrpApi();\r