---
title: CWFillLookupTexture
framework: Application Services
role: pseudoSymbol
platforms: []
path: applicationservices/colorsync_manager/1805126-cwfilllookuptexture
---

# CWFillLookupTexture

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

## Declaration

```occ
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](../colorsync_manager.md). 

## Overview

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

## See Also

### Working With ColorWorlds

- [NCWNewColorWorld](1805079-ncwnewcolorworld.md)
- [CWConcatColorWorld](1805087-cwconcatcolorworld.md)
- [NCWConcatColorWorld](1805091-ncwconcatcolorworld.md)
- [CMGetCWInfo](1805097-cmgetcwinfo.md)
- [CWDisposeColorWorld](1805102-cwdisposecolorworld.md)
- [CWMatchColors](1805108-cwmatchcolors.md)
- [CWCheckColors](1805111-cwcheckcolors.md)
- [CWMatchBitmap](1805116-cwmatchbitmap.md)
- [CWCheckBitmap](1805121-cwcheckbitmap.md)
