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




ShadowFlare [Wed, 6 Sep 2006 21:28:53 +0000 (21:28 +0000)]
grpapi/grpapi.h
grpapi/grpapi_no-lib.h

index 2f48cef..501253d 100644 (file)
@@ -39,12 +39,20 @@ typedef struct {
                                    // the shadow's color, third byte is green,\r
                                    // fourth byte is blue; like this:\r
                                    // SHADOW_COLOR|0xBBGGRR00\r
+                                   // This can be accomplished by using the left shift\r
+                                   // operator like this:  SHADOW_COLOR|(color << 8)\r
 #define ALPHA_BLEND     0x00000008 // Blends the graphic with what it is being drawn over.\r
                                    // The dwAlpha parameter will only be used when this\r
                                    // flag is specified.  dwAlpha is an RGB value\r
                                    // (0xBBGGRR).\r
                                    // Note: Because of the extra calculations required,\r
                                    // alpha blended graphics take longer to draw\r
+#define USE_INDEX       0x00000010 // Only valid when used with a custom SetPixel function.\r
+                                   // This flag cannot be used in combination with\r
+                                   // ALPHA_BLEND or SHADOW_COLOR\r
+                                   // When this flag is used, the index to a color in the\r
+                                   // palette will be passed to your custom SetPixel\r
+                                   // function instead of the actual color.\r
 \r
 // Palette is an array of 256 DWORD's\r
 // For LoadPalette and LoadGrp, lpFileName may be a file in an open mpq archive\r
index 8698fd1..8ce9772 100644 (file)
@@ -37,12 +37,20 @@ typedef struct {
                                    // the shadow's color, third byte is green,\r
                                    // fourth byte is blue; like this:\r
                                    // SHADOW_COLOR|0xBBGGRR00\r
+                                   // This can be accomplished by using the left shift\r
+                                   // operator like this:  SHADOW_COLOR|(color << 8)\r
 #define ALPHA_BLEND     0x00000008 // Blends the graphic with what it is being drawn over.\r
                                    // The dwAlpha parameter will only be used when this\r
                                    // flag is specified.  dwAlpha is an RGB value\r
                                    // (0xBBGGRR).\r
                                    // Note: Because of the extra calculations required,\r
                                    // alpha blended graphics take longer to draw\r
+#define USE_INDEX       0x00000010 // Only valid when used with a custom SetPixel function.\r
+                                   // This flag cannot be used in combination with\r
+                                   // ALPHA_BLEND or SHADOW_COLOR\r
+                                   // When this flag is used, the index to a color in the\r
+                                   // palette will be passed to your custom SetPixel\r
+                                   // function instead of the actual color.\r
 \r
 // Palette is an array of 256 DWORD's\r
 // For LoadPalette and LoadGrp, lpFileName may be a file in an open mpq archive\r