Available Methods
- glEnd ( )
- glPopMatrix ( )
- glBegin ( )
- glDisable ( )
- glPushMatrix ( )
- glEnable ( )
- glVertex3f ( )
- glClear ( )
- glLoadIdentity ( )
- glTranslatef ( )
- glFlush ( )
- glColor3f ( )
- glVertex3d ( )
- glColor3d ( )
- glVertex2d ( )
- glDepthFunc ( )
- glIsEnabled ( )
- glTexParameteri ( )
- glLineWidth ( )
- glShadeModel ( )
- glMatrixMode ( )
- GL_TRIANGLES
- glTranslated ( )
- glBindTexture ( )
- glClearColor ( )
- glRotatef ( )
- glTexImage2D ( )
- GL_RED
- setSwapInterval ( )
- glRotated ( )
- glBindBuffer ( )
- glMaterialfv ( )
- glGetIntegerv ( )
- glPopName ( )
- glDeleteTextures ( )
- glViewport ( )
Related Classes
- java.io.File
- java.io.InputStream
- java.nio.ByteBuffer
- java.util.logging.Logger
- java.util.logging.Level
- java.util.Scanner
- java.awt.Color
- java.awt.event.ActionEvent
- java.awt.event.ActionListener
- javax.swing.JPanel
- java.awt.Dimension
- javax.swing.JFrame
- javax.swing.JLabel
- javax.swing.JButton
- java.awt.BorderLayout
- java.awt.Rectangle
- javax.swing.JTextField
- java.nio.FloatBuffer
- java.awt.geom.AffineTransform
- java.nio.IntBuffer
- java.awt.FlowLayout
- java.awt.Shape
- javax.swing.WindowConstants
- org.eclipse.swt.graphics.Rectangle
- java.awt.geom.PathIterator
Java Code Examples for com.jogamp.opengl.GL2#setSwapInterval()
The following examples show how to use
com.jogamp.opengl.GL2#setSwapInterval() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DelaunayTriangulationExample.java From delaunay-triangulator with MIT License | 6 votes |
public void init(GLAutoDrawable drawable) { GL2 gl = drawable.getGL().getGL2(); gl.glDisable(GL.GL_CULL_FACE); gl.glShadeModel(GL2.GL_SMOOTH); gl.glClearColor(COLOR_BACKGROUND.getRed() / 255.0f, COLOR_BACKGROUND.getGreen() / 255.0f, COLOR_BACKGROUND.getBlue() / 255.0f, 1); gl.glClearDepth(1.0f); gl.glEnable(GL.GL_DEPTH_TEST); gl.glDepthFunc(GL.GL_LEQUAL); gl.glHint(GL2.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST); gl.setSwapInterval(1); gl.glDisable(GL2.GL_CULL_FACE); delaunayTriangulator = new DelaunayTriangulator(pointSet); }
Example 2
Source File: OpenGLGFXCMD.java From sagetv with Apache License 2.0 | 4 votes |
public void init(GLAutoDrawable drawable) { GL2 gl; gl = drawable.getGL().getGL2(); gl.setSwapInterval(0); }