Contents

CWFillLookupTexture

Fills a 3-D lookup texture from a color world.

Declaration

CMError CWFillLookupTexture (
   CMWorldRef cw,
   UInt32 gridPoints,
   UInt32 format,
   UInt32 dataSize,
   void *data
);

Parameters

  • cw:

    The color world to use.

  • gridPoints:

    The number of grid points per channel in the texture.

  • format:

    The format of pixels in texture; for example, cmTextureRGBtoRGBX8.

  • dataSize:

    The size in bytes of texture data to fill.

  • data:

    On output, points to the texture data to fill.

Return Value

A CMError value. See Result Codes.

Overview

You can use the resulting table in OpenGL to accelerate color management in hardware.

See Also

Working With ColorWorlds