Contents

cp_drawable_get_texture_count

Returns the number of color and depth textures available in the drawable.

Declaration

size_t cp_drawable_get_texture_count(cp_drawable_t drawable);

Parameters

  • drawable:

    The drawable for a frame.

Return Value

The number of textures available for drawing. For example, a return value of 2 indicates there are two color textures and two depth textures available.

Discussion

Use the returned value as the maximum number of textures to retrieve from the cp_drawable_get_color_texture or cp_drawable_get_depth_texture functions.

See Also

Getting the render textures