---
title: cp_drawable_get_tracking_areas_texture_count
framework: compositorservices
role: symbol
role_heading: Function
path: compositorservices/cp_drawable_get_tracking_areas_texture_count
---

# cp_drawable_get_tracking_areas_texture_count

Returns the number of tracking areas textures available in the drawable.

## Declaration

```occ
size_t cp_drawable_get_tracking_areas_texture_count(cp_drawable_t drawable);
```

## Parameters

- `drawable`: The drawable for a frame.

## Return Value

Return Value The number of textures available for drawing. For example, a return value of 2 indicates there are two tracking areas textures available.

## Discussion

Discussion Use the returned value as the maximum number of textures to retrieve from the cp_drawable_get_tracking_areas_texturefunction. This will be equal to cp_drawable_get_texture_count when tracking areas textures are enabled through the configuration otherwise will be 0.
