|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Res independent Graph + GraphUI integration demo using a GraphUI Shape and Graph text rendering within a regular GLEventListener, attached to a GLWindow. More...
Classes | |
| class | MyRenderer |
Static Public Member Functions | |
| static void | main (final String[] args) throws IOException |
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.
|
static |