28package com.jogamp.opengl.demos.android;
30import com.jogamp.opengl.GLCapabilities;
31import com.jogamp.opengl.GLProfile;
32import com.jogamp.opengl.demos.graph.ui.UISceneDemo20;
34import jogamp.newt.driver.android.NewtBaseActivity;
36import com.jogamp.newt.event.MonitorEvent;
37import com.jogamp.newt.event.MonitorModeListener;
38import com.jogamp.newt.opengl.GLWindow;
39import com.jogamp.opengl.util.Animator;
41import android.os.Bundle;
42import android.util.Log;
45 static String TAG =
"NEWTGraphUIActivity";
48 public void onCreate(
final Bundle savedInstanceState) {
49 Log.d(TAG,
"onCreate - 0");
50 super.onCreate(savedInstanceState);
57 Log.d(TAG,
"req caps: "+caps);
60 setContentView(getWindow(), glWindow);
65 public void monitorModeChangeNotify(
final MonitorEvent me) { }
67 public void monitorModeChanged(
final MonitorEvent me,
final boolean success) {
68 System.err.println(
"MonitorMode Changed (success "+success+
"): "+me);
78 Log.d(TAG,
"onCreate - X");
void setAlphaBits(final int alphaBits)
Sets the number of bits requested for the color buffer's alpha component.
abstract void addMonitorModeListener(MonitorModeListener sml)
An implementation of GLAutoDrawable and Window interface, using a delegated Window instance,...
final boolean setFullscreen(final boolean fullscreen)
Enable or disable fullscreen mode for this window.
final void setVisible(final boolean visible)
Calls setVisible(true, visible), i.e.
static GLWindow create(final GLCapabilitiesImmutable caps)
Creates a new GLWindow attaching a new Window referencing a new default Screen and default Display wi...
Specifies a set of OpenGL capabilities.
void setNumSamples(final int numSamples)
If sample buffers are enabled, indicates the number of buffers to be allocated.
void setSampleBuffers(final boolean enable)
Defaults to false.
Specifies the the OpenGL profile.
static final String GL2ES2
The intersection of the desktop GL3, GL2 and embedded ES2 profile.
static GLProfile get(final AbstractGraphicsDevice device, String profile)
Returns a GLProfile object.
void onCreate(final Bundle savedInstanceState)
Complex interactive GraphUI Scene demo with different Button and Label Shapes layout on the screen.
final void resetFPSCounter()
Reset all performance counter (startTime, currentTime, frame number)
final void setUpdateFPSFrames(final int frames, final PrintStream out)
void resetFPSCounter()
Reset all performance counter (startTime, currentTime, frame number)
void addGLEventListener(GLEventListener listener)
Adds the given listener to the end of this drawable queue.