Bugzilla – Attachment 75 Details for
Bug 203
Missing setup of GL_UNPACK_ALIGNMENT for mipmapped images in TextureIO
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
Test case
TotsTest.java (text/plain), 1004 bytes, created by
Sven Gothel
on 2006-02-09 16:29:00 CET
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Sven Gothel
Created:
2006-02-09 16:29:00 CET
Size:
1004 bytes
patch
obsolete
>import java.io.*; >import javax.media.opengl.*; >import com.sun.opengl.util.texture.*; > >public class TotsTest { > public static class Listener implements GLEventListener { > public void init(GLAutoDrawable drawable) { > try { > Texture texture = TextureIO.newTexture(new File("TotsLogo.gif"), true); > } catch (IOException e) { > e.printStackTrace(); > } > } > > public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { > } > > public void display(GLAutoDrawable drawable) { > } > > public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) { > } > } > > public static void main(String[] args) { > GLCapabilities caps = new GLCapabilities(); > caps.setDoubleBuffered(false); > GLPbuffer pbuffer = GLDrawableFactory.getFactory().createGLPbuffer(caps, null, 2, 2, null); > pbuffer.addGLEventListener(new Listener()); > pbuffer.display(); > System.exit(0); > } >}
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 203
:
74
| 75