cp_drawable_get_tracking_areas_texture
Returns the tracking areas texture at the specified index in the drawable.
Declaration
id<MTLTexture> cp_drawable_get_tracking_areas_texture(cp_drawable_t drawable, size_t index);Parameters
- drawable:
The drawable for a frame.
- index:
The index of the texture you want. The index must be greater than or equal to
0and less than the value that Cp_drawable_get_tracking_areas_texture_count returns.
Return Value
The Metal object index texture at the specified index.
Discussion
Use the returned texture in your render pipeline to store the tracking areas ID used for hover effects and indirect gestures. The layer’s texture topology determines the layout and content for each texture. The drawable’s views contain information about how those views map to the textures.