JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.graph.ui.TooltipShape.DestroyCallback Interface Reference

Optional HUD tip destroy callback for the user provided Shape, see Tooltip#destroyTip(GL2ES2, RegionRenderer, Shape). More...

Collaboration diagram for com.jogamp.graph.ui.TooltipShape.DestroyCallback:

Public Member Functions

void destroy (TooltipShape tts, final GL2ES2 gl, final RegionRenderer renderer, final Shape tip)
 The custom destroy method of DestroyCallback. More...
 

Detailed Description

Optional HUD tip destroy callback for the user provided Shape, see Tooltip#destroyTip(GL2ES2, RegionRenderer, Shape).

In case no callback is being set via TooltipShape#TooltipShape(Vec2f, long, Shape, DestroyCallback) Tooltip#destroyTip(GL2ES2, RegionRenderer, Shape) destroys the shape. Otherwise this callback gets invoked.

In case user provided tip is reused within a DAG, the provided implementation shall do nothing, i.e. use TooltipShape#NoOpDtor.

See also
TooltipShape::TooltipShape(Vec2f, long, Shape, DestroyCallback)
TooltipShape::createTip(Scene, AABBox)

Definition at line 63 of file TooltipShape.java.

Member Function Documentation

◆ destroy()

void com.jogamp.graph.ui.TooltipShape.DestroyCallback.destroy ( TooltipShape  tts,
final GL2ES2  gl,
final RegionRenderer  renderer,
final Shape  tip 
)

The custom destroy method of DestroyCallback.

Parameters
ttsthe {#link TooltipShape} instance
glcurrent GL2ES2
rendererused RegionRenderer
tipthe user provided Shape as passed via TooltipShape#TooltipShape(Vec4f, Vec4f, float, Vec2f, long, int, Shape, DestroyCallback).

The documentation for this interface was generated from the following file: