Bugzilla – Attachment 135 Details for
Bug 365
Bug on javax.media.opengl.glu.GLU.gluBuild2DMipmaps
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
Test case
Mipmap.java (text/plain), 724 bytes, created by
Sven Gothel
on 2008-12-09 12:34:00 CET
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Sven Gothel
Created:
2008-12-09 12:34:00 CET
Size:
724 bytes
patch
obsolete
>import java.awt.BorderLayout; >import java.awt.Frame; >import java.io.File; >import java.io.IOException; > >import javax.media.opengl.GLCanvas; > >import com.sun.opengl.util.texture.TextureIO; > >public class Mipmap { > > public static void main(String[] args) throws IllegalArgumentException, > IOException { > > System.setProperty("jogl.texture.nonpot", "true"); > // System.setProperty("jogl.glu.nojava", "true"); > > GLCanvas canvas = new GLCanvas(); > Frame frame = new Frame(); > frame.add(canvas, BorderLayout.CENTER); > frame.addNotify(); > canvas.getContext().makeCurrent(); > > TextureIO.newTexture(new File("tick_hor_major.png"), true); > > canvas.getContext().release(); > frame.dispose(); > } > >}
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 365
: 135 |
136
|
137
|
459
|
508