29package com.jogamp.opengl.test.junit.jogl.awt.text;
31import com.jogamp.opengl.GLProfile;
32import com.jogamp.opengl.GLCapabilities;
33import com.jogamp.opengl.awt.GLCanvas;
34import com.jogamp.opengl.util.Animator;
35import com.jogamp.opengl.test.junit.jogl.acore.TestSharedContextVBOES2NEWT3;
36import com.jogamp.opengl.test.junit.util.UITestCase;
39import java.io.IOException;
41import org.junit.Assert;
42import org.junit.Assume;
43import org.junit.Before;
44import org.junit.BeforeClass;
45import org.junit.After;
47import org.junit.FixMethodOrder;
48import org.junit.runners.MethodSorters;
66@FixMethodOrder(MethodSorters.NAME_ASCENDING)
77 Assert.assertNotNull(glp);
79 Assert.assertNotNull(caps);
86 frame =
new Frame(
"TextRenderer Test");
87 Assert.assertNotNull(frame);
90 javax.swing.SwingUtilities.invokeAndWait(
new Runnable() {
92 frame.setSize(512, 512);
93 frame.setVisible(
true);
95 }
catch(
final Throwable throwable ) {
96 throwable.printStackTrace();
97 Assume.assumeNoException( throwable );
104 javax.swing.SwingUtilities.invokeAndWait(
new Runnable() {
106 frame.setVisible(
false);
107 frame.remove(glCanvas);
110 }
catch(
final Throwable throwable ) {
111 throwable.printStackTrace();
112 Assume.assumeNoException( throwable );
122 Assert.assertNotNull(listener);
133 if (!disallowedMethods.equals(
"")) {
134 Assert.fail(
"Following VBO-related glMethods have been called: "+ disallowedMethods);
142 Assert.assertNotNull(listener);
153 if (!disallowedMethods.equals(
"")) {
154 Assert.fail(
"Following VBO-related glMethods have been called: "+ disallowedMethods);
158 public static void main(
final String args[])
throws IOException {
Specifies a set of OpenGL capabilities.
Specifies the the OpenGL profile.
static GLProfile get(final AbstractGraphicsDevice device, String profile)
Returns a GLProfile object.
static final String GL2
The desktop OpenGL profile 1.x up to 3.0.
A heavyweight AWT component which provides OpenGL rendering support.
void addGLEventListener(final GLEventListener listener)
Adds the given listener to the end of this drawable queue.
static void main(final String args[])
void testTextRendererDraw3D()
void testTextRendererDraw2D()
String getDisallowedMethodCalls()
final synchronized boolean start()
Starts this animator, if not running.
final synchronized boolean stop()
Stops this animator.