60 | | #define PNG_CALLBACK -3 /* Call the callback function to generate alpha */ |
61 | | #define PNG_ALPHA -2 /* Use alpha channel in PNG file, if there is one */ |
62 | | #define PNG_SOLID -1 /* No transparency */ |
63 | | #define PNG_STENCIL 0 /* Sets alpha to 0 for r=g=b=0, 1 otherwise */ |
64 | | #define PNG_BLEND1 1 /* a = r+g+b */ |
65 | | #define PNG_BLEND2 2 /* a = (r+g+b)/2 */ |
66 | | #define PNG_BLEND3 3 /* a = (r+g+b)/3 */ |
67 | | #define PNG_BLEND4 4 /* a = r*r+g*g+b*b */ |
68 | | #define PNG_BLEND5 5 /* a = (r*r+g*g+b*b)/2 */ |
69 | | #define PNG_BLEND6 6 /* a = (r*r+g*g+b*b)/3 */ |
70 | | #define PNG_BLEND7 7 /* a = (r*r+g*g+b*b)/4 */ |
71 | | #define PNG_BLEND8 8 /* a = sqrt(r*r+g*g+b*b) */ |
| 60 | #define GLPNG_CALLBACK -3 /* Call the callback function to generate alpha */ |
| 61 | #define GLPNG_ALPHA -2 /* Use alpha channel in GLPNG file, if there is one */ |
| 62 | #define GLPNG_SOLID -1 /* No transparency */ |
| 63 | #define GLPNG_STENCIL 0 /* Sets alpha to 0 for r=g=b=0, 1 otherwise */ |
| 64 | #define GLPNG_BLEND1 1 /* a = r+g+b */ |
| 65 | #define GLPNG_BLEND2 2 /* a = (r+g+b)/2 */ |
| 66 | #define GLPNG_BLEND3 3 /* a = (r+g+b)/3 */ |
| 67 | #define GLPNG_BLEND4 4 /* a = r*r+g*g+b*b */ |
| 68 | #define GLPNG_BLEND5 5 /* a = (r*r+g*g+b*b)/2 */ |
| 69 | #define GLPNG_BLEND6 6 /* a = (r*r+g*g+b*b)/3 */ |
| 70 | #define GLPNG_BLEND7 7 /* a = (r*r+g*g+b*b)/4 */ |
| 71 | #define GLPNG_BLEND8 8 /* a = sqrt(r*r+g*g+b*b) */ |