BUMPDATA (original) (raw)
Summary
The BUMPDATA structure contains information about the bump map parameter.
Syntax
Members
uStructSize
Size of this structure, in bytes. Use the sizeof operator to calculate this value.
nAzimuth
The Azimuth describes the light source's angular position in the horizontal plane. The valid range is between −360 to 360.
uElevation
The elevation describes the light source's angular position in the vertical plane. The valid range is between 0 to 180.
uDepth
The apparent depth of this three-dimensional effect. Valid values are 0 to 1000, with 500 as normal.
nXOffset
The X coordinate of the origin of the Bump rectangle.
nYOffset
The Y coordinate of the origin of the Bump rectangle.
nXDst
The X coordinate of the origin of the destination rectangle.
nYDst
The Y coordinate of the origin of the destination rectangle.
bTile
Boolean flag that indicates whether to use tiling. Possible values are:
Value | Meaning |
---|---|
TRUE | Use tiling. |
FALSE | Do not to use tiling. |
nBright
Amount to change the intensity. The intensity ranges from -1000 to 1000. A positive value increases (or lightens) the brightness of the resulting image. A negative value decreases (or darkens) the brightness of the resulting image.
nIntensity
Amount to change the intensity. The intensity ranges from -1000 to 1000. A positive value increases (or lightens) the brightness of the destination image. A negative value decreases (or darkens) the brightness of the destination image.
pLut
Table of 256 integers containing lookup values that re-map bump bitmap data.
Comments
If the bTile
member is set to:
- TRUE, the
nXOffset
andnYOffset
members represent the offset in the bump image. If there is a region on the bump image, this region rectangle will represent the bump bitmap. - FALSE, the
nXOffset
andnYOffset
members represent the position in the bump image. If a region is defined for either the bump or destination bitmap, or both bitmaps, the effect applies only to the intersection of regions.