29package com.jogamp.opengl.test.junit.jogl.offscreen;
31import com.jogamp.opengl.test.junit.util.*;
33import org.junit.Assert;
35import com.jogamp.opengl.*;
36import com.jogamp.nativewindow.*;
37import com.jogamp.newt.*;
38import com.jogamp.newt.event.*;
39import com.jogamp.newt.opengl.*;
52 Assert.assertNotNull(demo);
53 Assert.assertNotNull(window);
66 Assert.assertNotNull(windowOffScreen);
67 Assert.assertNotNull(demo);
72 if (
null != windowOnScreenBlit ) {
83 if (
null != windowOnScreenBlit ) {
97 System.err.println(
"+++++++++++++++++++++++++++ "+testName);
98 System.err.println(windowOffScreen);
99 System.err.println(
"+++++++++++++++++++++++++++ "+testName);
void setOnscreen(final boolean onscreen)
Sets whether the surface shall be on- or offscreen.
An implementation of GLAutoDrawable and Window interface, using a delegated Window instance,...
final void addMouseListener(final MouseListener l)
Appends the given MouseListener to the end of the list.
final void removeSurfaceUpdatedListener(final SurfaceUpdatedListener l)
Remove the specified SurfaceUpdatedListener from the list.
final void setVisible(final boolean visible)
Calls setVisible(true, visible), i.e.
final void addWindowListener(final WindowListener l)
Appends the given com.jogamp.newt.event.WindowListener to the end of the list.
final void addSurfaceUpdatedListener(final SurfaceUpdatedListener l)
Appends the given SurfaceUpdatedListener to the end of the list.
Specifies a set of OpenGL capabilities.
void setPBuffer(final boolean enable)
Requesting offscreen pbuffer mode.
void setDoubleBuffered(final boolean enable)
Enables or disables double buffering.
abstract GLDrawable getGLDrawable()
Returns the write-drawable this context uses for framebuffer operations.
static void setDemoFields(final GLEventListener demo, final Window window, final GLWindow glWindow, final boolean debug)
static void run(final String testName, final GLWindow windowOffScreen, final GLEventListener demo, final GLWindow windowOnScreenBlit, final WindowListener wl, final MouseListener ml, final SurfaceUpdatedListener ul, final int frames, final boolean snapshot, final boolean debug)
static GLCapabilities fixCaps(final GLCapabilities caps, final boolean onscreen, final boolean pbuffer, final boolean undecorated)
static boolean setFieldIfExists(final Object instance, final String fieldName, final Object value)
int getAlphaBits()
Returns the number of bits for the color buffer's alpha component.
Clients may add their SurfaceUpdateListener implementation to a com.jogamp.nativewindow....
Specifying NEWT's Window functionality:
Listener for MouseEvents.
NEWT WindowEvent listener.
void addGLEventListener(GLEventListener listener)
Adds the given listener to the end of this drawable queue.
GLContext getContext()
Returns the context associated with this drawable.
An abstraction for an OpenGL rendering target.
GLCapabilitiesImmutable getChosenGLCapabilities()
Fetches the GLCapabilitiesImmutable corresponding to the chosen OpenGL capabilities (pixel format / v...
Declares events which client code can use to manage OpenGL rendering into a GLAutoDrawable.