28package com.jogamp.opengl.demos.android;
30import com.jogamp.opengl.GLCapabilities;
31import com.jogamp.opengl.GLProfile;
32import com.jogamp.opengl.demos.es2.RedSquareES2;
34import jogamp.newt.driver.android.NewtBaseActivity;
36import com.jogamp.newt.event.MonitorEvent;
37import com.jogamp.newt.event.MonitorModeListener;
38import com.jogamp.newt.opengl.GLWindow;
40import com.jogamp.opengl.util.Animator;
42import android.os.Bundle;
43import android.util.Log;
46 static String TAG =
"NEWTGearsES2Activity";
49 public void onCreate(
final Bundle savedInstanceState) {
50 Log.d(TAG,
"onCreate - 0");
51 super.onCreate(savedInstanceState);
55 Log.d(TAG,
"req caps: "+caps);
60 setContentView(getWindow(), glWindow);
67 public void monitorModeChangeNotify(
final MonitorEvent me) { }
69 public void monitorModeChanged(
final MonitorEvent me,
final boolean success) {
70 System.err.println(
"MonitorMode Changed (success "+success+
"): "+me);
82 Log.d(TAG,
"onCreate - X");
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.
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)
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.