JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01 Class Referenceabstract

GPURendererListenerBase01 Keys: More...

Inheritance diagram for com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01:
Collaboration diagram for com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01:

Classes

class  KeyAction
 

Public Member Functions

 GPUTextRendererListenerBase01 (final GLProfile glp, final int renderModes, final int aaQuality, final int sampleCount, final boolean blending, final boolean debug, final boolean trace)
 
int getHeadBoxType ()
 
AABBox getHeadBox ()
 
void setHeadBox (final int choice, final boolean resize)
 
void setHeadBox (final String text, final boolean resize)
 
void init (final GLAutoDrawable drawable)
 Called by the drawable immediately after the OpenGL context is initialized. More...
 
void reshape (final GLAutoDrawable drawable, final int xstart, final int ystart, final int width, final int height)
 Called by the drawable during the first repaint after the component has been resized. More...
 
void dispose (final GLAutoDrawable drawable)
 Notifies the listener to perform the release of all OpenGL resources per GLContext, such as memory buffers and GLSL programs. More...
 
void display (final GLAutoDrawable drawable)
 Called by the drawable to initiate OpenGL rendering by the client. More...
 
Font getFont ()
 
float getFontSizeHead ()
 
void fontBottomIncr (final int v)
 
void fontHeadIncr (final int v)
 
void setFontHeadSize (final int v)
 
boolean nextFontSet ()
 
boolean setFontSet (final int set, final int family, final int stylebits)
 
boolean setFont (final Font _font)
 
boolean isUserInputMode ()
 
void attachInputListenerTo (final GLWindow window)
 Attach the input listener to the window. More...
 
void detachInputListenerFrom (final GLWindow window)
 
void printScreen (final GLAutoDrawable drawable, final String dir, final String tech, final String objName, final boolean exportAlpha) throws GLException, IOException
 
- Public Member Functions inherited from com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01
 GPURendererListenerBase01 (final RegionRenderer renderer, final int renderModes, final boolean debug, final boolean trace)
 
final RegionRenderer getRenderer ()
 
final int getRenderModes ()
 
final float getZTran ()
 
final float getXTran ()
 
final float getYTran ()
 
final float getAngleDeg ()
 
final float getAngleRad ()
 
final float[] getPosition ()
 
void setMatrix (final float xtrans, final float ytrans, final float zTran, final float angle)
 
void init (final GLAutoDrawable drawable)
 Called by the drawable immediately after the OpenGL context is initialized. More...
 
void reshape (final GLAutoDrawable drawable, final int xstart, final int ystart, final int width, final int height)
 Called by the drawable during the first repaint after the component has been resized. More...
 
void dispose (final GLAutoDrawable drawable)
 Notifies the listener to perform the release of all OpenGL resources per GLContext, such as memory buffers and GLSL programs. More...
 
void zoom (final int v)
 
void move (final float x, final float y)
 
void rotate (final float delta)
 
void editGlobalWeight (final float delta)
 
void attachInputListenerTo (final GLWindow window)
 Attach the input listener to the window. More...
 
void detachInputListenerFrom (final GLWindow window)
 
void printScreen (final GLAutoDrawable drawable, final String dir, final String tech, final String objName, final boolean exportAlpha) throws GLException, IOException
 
void printScreenOnGLThread (final GLAutoDrawable drawable, final String dir, final String tech, final String objName, final boolean exportAlpha)
 
void setIgnoreInput (final boolean v)
 
boolean getIgnoreInput ()
 
void init (GLAutoDrawable drawable)
 Called by the drawable immediately after the OpenGL context is initialized. More...
 
void dispose (GLAutoDrawable drawable)
 Notifies the listener to perform the release of all OpenGL resources per GLContext, such as memory buffers and GLSL programs. More...
 
void display (GLAutoDrawable drawable)
 Called by the drawable to initiate OpenGL rendering by the client. More...
 
void reshape (GLAutoDrawable drawable, int x, int y, int width, int height)
 Called by the drawable during the first repaint after the component has been resized. More...
 

Static Public Member Functions

static void upsizeWindowSurface (final Window window, final boolean off_thread, final int w, final int h)
 
- Static Public Member Functions inherited from com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01
static void mapWin2ObjectCoords (final PMVMatrix4f pmv, final Recti view, final float zNear, final float zFar, final float orthoX, final float orthoY, final float orthoDist, final float[] winZ, final Vec3f objPos)
 

Public Attributes

final TextRegionUtil textRegionUtil
 

Static Public Attributes

static final String text_help
 
static final String textX1
 
static final String textX2
 
static final String textX20
 

Protected Attributes

final AffineTransform tempT1 = new AffineTransform()
 
final AffineTransform tempT2 = new AffineTransform()
 
- Protected Attributes inherited from com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01
GLRegion region
 
final float zNear = 0.1f
 
final float zFar = 7000f
 
final AABBox nearPlane1Box
 Describing the bounding box in model-coordinates of the near-plane parallel at distance one. More...
 
volatile float weight = 1.0f
 

Detailed Description

GPURendererListenerBase01 Keys:

  • 1/2: zoom in/out
  • 6/7: 2nd pass texture size
  • 0/9: rotate
  • v: toggle v-sync
  • s: screenshot

Additional Keys:

  • 3/4: font +/-
  • h: toogle draw 'font set'
  • f: toggle draw fps
  • space: toggle font (ubuntu/java)
  • i: live input text input (CR ends it, backspace supported)

Definition at line 72 of file GPUTextRendererListenerBase01.java.

Constructor & Destructor Documentation

◆ GPUTextRendererListenerBase01()

com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.GPUTextRendererListenerBase01 ( final GLProfile  glp,
final int  renderModes,
final int  aaQuality,
final int  sampleCount,
final boolean  blending,
final boolean  debug,
final boolean  trace 
)

Definition at line 151 of file GPUTextRendererListenerBase01.java.

Here is the call graph for this function:

Member Function Documentation

◆ attachInputListenerTo()

void com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.attachInputListenerTo ( final GLWindow  window)

Attach the input listener to the window.

Reimplemented from com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.

Definition at line 518 of file GPUTextRendererListenerBase01.java.

Here is the call graph for this function:

◆ detachInputListenerFrom()

void com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.detachInputListenerFrom ( final GLWindow  window)

Reimplemented from com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.

Definition at line 527 of file GPUTextRendererListenerBase01.java.

Here is the call graph for this function:

◆ display()

void com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.display ( final GLAutoDrawable  drawable)

Called by the drawable to initiate OpenGL rendering by the client.

After all GLEventListeners have been notified of a display event, the drawable will swap its buffers if setAutoSwapBufferMode is enabled.

Implements com.jogamp.opengl.GLEventListener.

Definition at line 286 of file GPUTextRendererListenerBase01.java.

Here is the call graph for this function:

◆ dispose()

void com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.dispose ( final GLAutoDrawable  drawable)

Notifies the listener to perform the release of all OpenGL resources per GLContext, such as memory buffers and GLSL programs.

Called by the drawable before the OpenGL context is destroyed by an external event, like a reconfiguration of the GLAutoDrawable closing an attached window, but also manually by calling destroy.

Note that this event does not imply the end of life of the application. It could be produced with a followup call to init(GLAutoDrawable) in case the GLContext has been recreated, e.g. due to a pixel configuration change in a multihead environment.

Reimplemented from com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.

Definition at line 277 of file GPUTextRendererListenerBase01.java.

Here is the call graph for this function:

◆ fontBottomIncr()

void com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.fontBottomIncr ( final int  v)

Definition at line 436 of file GPUTextRendererListenerBase01.java.

Here is the caller graph for this function:

◆ fontHeadIncr()

void com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.fontHeadIncr ( final int  v)

Definition at line 441 of file GPUTextRendererListenerBase01.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFont()

Font com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.getFont ( )

Definition at line 433 of file GPUTextRendererListenerBase01.java.

◆ getFontSizeHead()

float com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.getFontSizeHead ( )

Definition at line 434 of file GPUTextRendererListenerBase01.java.

◆ getHeadBox()

AABBox com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.getHeadBox ( )

Definition at line 170 of file GPUTextRendererListenerBase01.java.

◆ getHeadBoxType()

int com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.getHeadBoxType ( )

Definition at line 169 of file GPUTextRendererListenerBase01.java.

Here is the caller graph for this function:

◆ init()

void com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.init ( final GLAutoDrawable  drawable)

Called by the drawable immediately after the OpenGL context is initialized.

Can be used to perform one-time OpenGL initialization per GLContext, such as setup of lights and display lists.

Note that this method may be called more than once if the underlying OpenGL context for the GLAutoDrawable is destroyed and recreated, for example if a GLCanvas is removed from the widget hierarchy and later added again.

Reimplemented from com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.

Definition at line 230 of file GPUTextRendererListenerBase01.java.

Here is the call graph for this function:

◆ isUserInputMode()

boolean com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.isUserInputMode ( )

Definition at line 505 of file GPUTextRendererListenerBase01.java.

◆ nextFontSet()

boolean com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.nextFontSet ( )

Definition at line 459 of file GPUTextRendererListenerBase01.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ printScreen()

void com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.printScreen ( final GLAutoDrawable  drawable,
final String  dir,
final String  tech,
final String  objName,
final boolean  exportAlpha 
) throws GLException, IOException

Reimplemented from com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.

Definition at line 536 of file GPUTextRendererListenerBase01.java.

Here is the call graph for this function:

◆ reshape()

void com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.reshape ( final GLAutoDrawable  drawable,
final int  x,
final int  y,
final int  width,
final int  height 
)

Called by the drawable during the first repaint after the component has been resized.

The client can update it's viewport associated data and view volume of the window appropriately.

For efficiency the GL viewport has already been updated via glViewport(x, y, width, height) when this method is called.

Parameters
drawablethe triggering GLAutoDrawable
xlower left corner of the viewport rectangle in pixel units
ylower left corner of the viewport rectangle in pixel units
widthwidth of the viewport rectangle in pixel units
heightheight of the viewport rectangle in pixel units

Reimplemented from com.jogamp.opengl.test.junit.graph.GPURendererListenerBase01.

Definition at line 257 of file GPUTextRendererListenerBase01.java.

Here is the call graph for this function:

◆ setFont()

boolean com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.setFont ( final Font  _font)

Definition at line 490 of file GPUTextRendererListenerBase01.java.

◆ setFontHeadSize()

void com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.setFontHeadSize ( final int  v)

Definition at line 449 of file GPUTextRendererListenerBase01.java.

Here is the call graph for this function:

◆ setFontSet()

boolean com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.setFontSet ( final int  set,
final int  family,
final int  stylebits 
)

Definition at line 475 of file GPUTextRendererListenerBase01.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setHeadBox() [1/2]

void com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.setHeadBox ( final int  choice,
final boolean  resize 
)

Definition at line 171 of file GPUTextRendererListenerBase01.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setHeadBox() [2/2]

void com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.setHeadBox ( final String  text,
final boolean  resize 
)

Definition at line 200 of file GPUTextRendererListenerBase01.java.

Here is the call graph for this function:

◆ upsizeWindowSurface()

static void com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.upsizeWindowSurface ( final Window  window,
final boolean  off_thread,
final int  w,
final int  h 
)
static

Definition at line 211 of file GPUTextRendererListenerBase01.java.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ tempT1

final AffineTransform com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.tempT1 = new AffineTransform()
protected

Definition at line 93 of file GPUTextRendererListenerBase01.java.

◆ tempT2

final AffineTransform com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.tempT2 = new AffineTransform()
protected

Definition at line 94 of file GPUTextRendererListenerBase01.java.

◆ text_help

final String com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.text_help
static
Initial value:
=
"JOGL: Java™ Binding for OpenGL®, providing hardware-accelerated 3D graphics.\n\n"+
"JOGAMP graph demo using Resolution Independent NURBS\n"+
"JOGAMP JOGL - OpenGL ES2 profile\n"+
"Press 1/2 to zoom in/out the below text\n"+
"Press 3/4 to incr/decs font size (alt: head, w/o bottom)\n"+
"Press 6/7 to edit texture size if using VBAA\n"+
"Press 0/9 to rotate the below string\n"+
"Press s to screenshot\n"+
"Press v to toggle vsync\n"+
"Press i for live input text input (CR ends it, backspace supported)\n"+
"Press f to toggle fps. H for different text, space for font type\n"

Definition at line 97 of file GPUTextRendererListenerBase01.java.

◆ textRegionUtil

final TextRegionUtil com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.textRegionUtil

Definition at line 73 of file GPUTextRendererListenerBase01.java.

◆ textX1

final String com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.textX1
static
Initial value:
=
"JOGL: Java™ Binding for OpenGL®, providing hardware-accelerated 3D graphics.\n\n"+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec sapien tellus. \n"+
"Ut purus odio, rhoncus sit amet commodo eget, ullamcorper vel urna. Mauris ultricies \n"+
"quam iaculis urna cursus ornare. Nullam ut felis a ante ultrices ultricies nec a elit. \n"+
"In hac habitasse platea dictumst. Vivamus et mi a quam lacinia pharetra at venenatis est. \n"+
"Morbi quis bibendum nibh. Donec lectus orci, sagittis in consequat nec, volutpat nec nisi. \n"+
"Donec ut dolor et nulla tristique varius. In nulla magna, fermentum id tempus quis, semper \n"+
"in lorem. Maecenas in ipsum ac justo scelerisque sollicitudin. Quisque sit amet neque lorem, \n" +
"-------Press H to change text---------"

Definition at line 110 of file GPUTextRendererListenerBase01.java.

◆ textX2

final String com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.textX2
static
Initial value:
=
"I “Ask Jeff” or ‘Ask Jeff’. Take the chef d’œuvre! Two of [of] (of) ‘of’ “of” of? of! of*.\n"+
"Les Woëvres, the Fôret de Wœvres, the Voire and Vauvise. Yves is in heaven; D’Amboise is in jail.\n"+
"Lyford’s in Texas & L’Anse-aux-Griffons in Québec; the Łyna in Poland. Yriarte, Yciar and Ysaÿe are at Yale.\n"+
"Kyoto and Ryotsu are both in Japan, Kwikpak on the Yukon delta, Kvæven in Norway, Kyulu in Kenya, not in Rwanda.…\n"+
"Von-Vincke-Straße in Münster, Vdovino in Russia, Ytterbium in the periodic table. Are Toussaint L’Ouverture, Wölfflin, Wolfe,\n"+
"Miłosz and Wū Wŭ all in the library? 1510–1620, 11:00 pm, and the 1980s are over. X\n"+
"-------Press H to change text---------"

Definition at line 121 of file GPUTextRendererListenerBase01.java.

◆ textX20

final String com.jogamp.opengl.test.junit.graph.GPUTextRendererListenerBase01.textX20
static
Initial value:
=
"I “Ask Jeff” or ‘Ask Jeff’. Take the chef d’œuvre! Two of [of] (of) ‘of’ “of” of? of! of*.\n"+
"Two of [of] (of) ‘of’ “of” of? of! of*. Ydes, Yffignac and Ygrande are in France: so are Ypres,\n"+
"Les Woëvres, the Fôret de Wœvres, the Voire and Vauvise. Yves is in heaven; D’Amboise is in jail.\n"+
"Lyford’s in Texas & L’Anse-aux-Griffons in Québec; the Łyna in Poland. Yriarte, Yciar and Ysaÿe are at Yale.\n"+
"Kyoto and Ryotsu are both in Japan, Kwikpak on the Yukon delta, Kvæven in Norway, Kyulu in Kenya, not in Rwanda.…\n"+
"Walton’s in West Virginia, but «Wren» is in Oregon. Tlálpan is near Xochimilco in México.\n"+
"The Zygos & Xylophagou are in Cyprus, Zwettl in Austria, Fænø in Denmark, the Vøringsfossen and Værøy in Norway.\n"+
"Tchula is in Mississippi, the Tittabawassee in Michigan. Twodot is here in Montana, Ywamun in Burma.\n"+
"Yggdrasil and Ymir, Yngvi and Vóden, Vídrið and Skeggjöld and Týr are all in the Eddas.\n"+
"Tørberget and Våg, of course, are in Norway, Ktipas and Tmolos in Greece, but Vázquez is in Argentina, Vreden in Germany,\n"+
"Von-Vincke-Straße in Münster, Vdovino in Russia, Ytterbium in the periodic table. Are Toussaint L’Ouverture, Wölfflin, Wolfe,\n"+
"Miłosz and Wū Wŭ all in the library? 1510–1620, 11:00 pm, and the 1980s are over.\n"+
"Ut purus odio, rhoncus sit amet commodo eget, ullamcorper vel urna. Mauris ultricies \n"+
"-------Press H to change text---------"

Definition at line 130 of file GPUTextRendererListenerBase01.java.


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