JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.nativewindow.SurfaceUpdatedListener Interface Reference

Clients may add their SurfaceUpdateListener implementation to a com.jogamp.nativewindow.NativeSurface allowing to get notified after the surface has been updated, eg. More...

Inheritance diagram for com.jogamp.nativewindow.SurfaceUpdatedListener:
Collaboration diagram for com.jogamp.nativewindow.SurfaceUpdatedListener:

Public Member Functions

void surfaceUpdated (Object updater, NativeSurface ns, long when)
 Notification of a surface update event, eg. More...
 

Detailed Description

Clients may add their SurfaceUpdateListener implementation to a com.jogamp.nativewindow.NativeSurface allowing to get notified after the surface has been updated, eg.

after a swap buffer operation.

Definition at line 41 of file SurfaceUpdatedListener.java.

Member Function Documentation

◆ surfaceUpdated()

void com.jogamp.nativewindow.SurfaceUpdatedListener.surfaceUpdated ( Object  updater,
NativeSurface  ns,
long  when 
)

Notification of a surface update event, eg.

after a swap buffer operation.

Parameters
updateris the caller object who updated the surface, e.g. a JOGL GLDrawable.
nsthe updated NativeSurface
whenthe time in ms, when the surface was updated

Implemented in com.jogamp.nativewindow.awt.JAWTWindow, com.jogamp.newt.opengl.GLWindow, and com.jogamp.opengl.test.junit.jogl.offscreen.Surface2File.


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