JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.demos.graph.ui.UIGraphDemoU01a Class Reference

Res independent Graph + GraphUI integration demo using a GraphUI Shape and Graph text rendering within a regular GLEventListener, attached to a GLWindow. More...

Collaboration diagram for com.jogamp.opengl.demos.graph.ui.UIGraphDemoU01a:

Classes

class  MyRenderer
 

Static Public Member Functions

static void main (final String[] args) throws IOException
 

Detailed Description

Res independent Graph + GraphUI integration demo using a GraphUI Shape and Graph text rendering within a regular GLEventListener, attached to a GLWindow.

This demo showcases how to integrate Graph and GraphUI with different projection variations.

Pass '-projPersp' to main-function to use perspective projection, otherwise orthogonal projection is used.

Pass '-projWin' to main-function to use orthogonal projection with window coordinates, otherwise [-0.5, 0.5] is being used

Default projection is orthogonal with width = 1, world-model range [-0.5, 0.5].

The world-model height is always scaled to window aspect ratio.

0/0 origin in its bottom-left corner, same as GraphUI

Pass '-x <int>' and '-y <int>' widget position in window coordinates (bottom left origin). Default is center, i.e. half window width and height.
Note: Reshape won't adjust and this is merely to demonstrate the coordinate space.

Definition at line 92 of file UIGraphDemoU01a.java.

Member Function Documentation

◆ main()

static void com.jogamp.opengl.demos.graph.ui.UIGraphDemoU01a.main ( final String[]  args) throws IOException
static

Definition at line 103 of file UIGraphDemoU01a.java.

Here is the call graph for this function:

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