Ticket #37043: patch-ARB-glpng.h.diff

File patch-ARB-glpng.h.diff, 2.9 KB (added by mattcottrell, 11 years ago)

Patch for glpng.h

  • GL/glpng/glpng.h

    old new  
    4747#endif
    4848
    4949    /* Mipmapping parameters */
    50 #define PNG_NOMIPMAPS      0 /* No mipmapping                        */
    51 #define PNG_BUILDMIPMAPS  -1 /* Calls a clone of gluBuild2DMipmaps() */
    52 #define PNG_SIMPLEMIPMAPS -2 /* Generates mipmaps without filtering  */
     50#define GLPNG_NOMIPMAPS      0 /* No mipmapping                        */
     51#define GLPNG_BUILDMIPMAPS  -1 /* Calls a clone of gluBuild2DMipmaps() */
     52#define GLPNG_SIMPLEMIPMAPS -2 /* Generates mipmaps without filtering  */
    5353
    5454    /* Who needs an "S" anyway? */
    55 #define PNG_NOMIPMAP     PNG_NOMIPMAPS
    56 #define PNG_BUILDMIPMAP  PNG_BUILDMIPMAPS
    57 #define PNG_SIMPLEMIPMAP PNG_SIMPLEMIPMAPS
     55#define GLPNG_NOMIPMAP     GLPNG_NOMIPMAPS
     56#define GLPNG_BUILDMIPMAP  GLPNG_BUILDMIPMAPS
     57#define GLPNG_SIMPLEMIPMAP GLPNG_SIMPLEMIPMAPS
    5858
    5959    /* Transparency parameters */
    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)                          */
    7272
    7373    typedef struct {
    7474        unsigned int Width;