|
From: <eli...@us...> - 2004-02-15 15:53:34
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23122/src/java/org/lwjgl/opengl Modified Files: Pbuffer.java Log Message: Added GLX_ARB_multisample support to Pbuffers Index: Pbuffer.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Pbuffer.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- Pbuffer.java 8 Feb 2004 20:35:22 -0000 1.6 +++ Pbuffer.java 15 Feb 2004 15:46:09 -0000 1.7 @@ -81,9 +81,11 @@ * @param alpha Minimum bits per pixel in alpha buffer * @param depth Minimum bits per pixel in depth buffer * @param stencil Minimum bits per pixel in stencil buffer + * @param samples Minimum samples in multisample buffer (corresponds to GL_SAMPLES_ARB in GL_ARB_multisample spec). + Pass 0 to disable multisampling. This parameter is ignored if GL_ARB_multisample is not supported. */ - public Pbuffer(int width, int height, int bpp, int alpha, int depth, int stencil) throws Exception { - handle = nCreate(width, height, bpp, alpha, depth, stencil); + public Pbuffer(int width, int height, int bpp, int alpha, int depth, int stencil, int samples) throws Exception { + handle = nCreate(width, height, bpp, alpha, depth, stencil, samples); vbo_tracker = new VBOTracker(); } @@ -150,7 +152,8 @@ int bpp, int alpha, int depth, - int stencil) throws Exception; + int stencil, + int samples) throws Exception; /** * Destroys the Pbuffer. The buffer must not be current. |