Defines

Texture Operations

Defines

#define  GW_TEX_LEAVE   0
  Use the source pixel value.
#define  GW_TEX_REPLACE   1
  Use the texture pixel value.
#define  GW_TEX_MODULATE   2
  Multiply the source with the texture.
#define  GW_TEX_ADD   3
  Add the source and texture.
#define  GW_TEX_ADD_SIGNED   4
  Add the source and texture with an 0.5 subtraction.
#define  GW_TEX_SUBTRACT   5
  Subtract the source from the texture.
#define  GW_TEX_ADD_SMOOTH   6
  Add the source and the texture then subtract their product.
#define  GW_TEX_ALPHA_BLEND   7
  Alpha blend the texture with the source.
#define  GW_TEX_PREMULT_ALPHA_BLEND   8
  Alpha blend the the source with a premultiplied alpha texture.
#define  GW_TEX_ALPHA_BLEND2   9
  Alpha blend the the source with a premultiplied alpha texture with GL_MODULATE as the tex env instead of GL_DECAL.

Define Documentation

#define GW_TEX_LEAVE   0

Use the source pixel value.

#define GW_TEX_REPLACE   1

Use the texture pixel value.

#define GW_TEX_MODULATE   2

Multiply the source with the texture.

#define GW_TEX_ADD   3

Add the source and texture.

#define GW_TEX_ADD_SIGNED   4

Add the source and texture with an 0.5 subtraction.

#define GW_TEX_SUBTRACT   5

Subtract the source from the texture.

#define GW_TEX_ADD_SMOOTH   6

Add the source and the texture then subtract their product.

#define GW_TEX_ALPHA_BLEND   7

Alpha blend the texture with the source.

#define GW_TEX_PREMULT_ALPHA_BLEND   8

Alpha blend the the source with a premultiplied alpha texture.

#define GW_TEX_ALPHA_BLEND2   9

Alpha blend the the source with a premultiplied alpha texture with GL_MODULATE as the tex env instead of GL_DECAL.