Bugzilla – Attachment 618 Details for
Bug 1027
Atomics seem to be somewhat broken with NEWT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
Simple test program
TestGL3.java (text/x-java), 1.34 KB, created by
Mark Raynsford
on 2014-06-27 15:00:01 CEST
(
hide
)
Description:
Simple test program
Filename:
MIME Type:
Creator:
Mark Raynsford
Created:
2014-06-27 15:00:01 CEST
Size:
1.34 KB
patch
obsolete
>import javax.media.opengl.GL; >import javax.media.opengl.GLAutoDrawable; >import javax.media.opengl.GLCapabilities; >import javax.media.opengl.GLEventListener; >import javax.media.opengl.GLProfile; > >import com.jogamp.newt.opengl.GLWindow; >import com.jogamp.opengl.util.Animator; > >public final class TestGL3 >{ > public static void main( > final String args[]) > { > final GLProfile pro = GLProfile.get(GLProfile.GL3); > final GLCapabilities caps = new GLCapabilities(pro); > final GLWindow window = GLWindow.create(caps); > > window.setSize(640, 480); > window.addGLEventListener(new GLEventListener() { > @Override public void reshape( > final GLAutoDrawable drawable, > final int w, > final int h, > final int x, > final int y) > { > // Nothing > } > > @Override public void init( > final GLAutoDrawable drawable) > { > // Nothing > } > > @Override public void dispose( > final GLAutoDrawable drawable) > { > // Nothing > } > > @Override public void display( > final GLAutoDrawable drawable) > { > final GL gl = drawable.getGL(); > gl.glClearColor(0.0f, 0.0f, 1.0f, 1.0f); > gl.glClear(GL.GL_COLOR_BUFFER_BIT); > } > }); > > final Animator animator = new Animator(window); > animator.start(); > window.setVisible(true); > } >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1027
:
617
| 618