You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(134) |
Sep
(52) |
Oct
(13) |
Nov
(342) |
Dec
(163) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(44) |
Feb
(62) |
Mar
(158) |
Apr
(38) |
May
(70) |
Jun
(58) |
Jul
(104) |
Aug
(207) |
Sep
(83) |
Oct
(122) |
Nov
(23) |
Dec
(49) |
| 2004 |
Jan
(119) |
Feb
(132) |
Mar
(192) |
Apr
(140) |
May
(77) |
Jun
(74) |
Jul
(201) |
Aug
(63) |
Sep
(102) |
Oct
(70) |
Nov
(173) |
Dec
(78) |
| 2005 |
Jan
(174) |
Feb
(197) |
Mar
(105) |
Apr
(59) |
May
(77) |
Jun
(43) |
Jul
(21) |
Aug
(18) |
Sep
(47) |
Oct
(37) |
Nov
(74) |
Dec
(50) |
| 2006 |
Jan
(44) |
Feb
(19) |
Mar
(32) |
Apr
(24) |
May
(31) |
Jun
(55) |
Jul
(138) |
Aug
(28) |
Sep
(12) |
Oct
(41) |
Nov
(58) |
Dec
(24) |
| 2007 |
Jan
(28) |
Feb
(14) |
Mar
(10) |
Apr
(68) |
May
(30) |
Jun
(26) |
Jul
(18) |
Aug
(63) |
Sep
(19) |
Oct
(29) |
Nov
(20) |
Dec
(10) |
| 2008 |
Jan
(38) |
Feb
(7) |
Mar
(37) |
Apr
(120) |
May
(41) |
Jun
(36) |
Jul
(39) |
Aug
(24) |
Sep
(28) |
Oct
(30) |
Nov
(36) |
Dec
(75) |
| 2009 |
Jan
(46) |
Feb
(22) |
Mar
(50) |
Apr
(70) |
May
(134) |
Jun
(105) |
Jul
(75) |
Aug
(34) |
Sep
(38) |
Oct
(34) |
Nov
(19) |
Dec
(20) |
| 2010 |
Jan
(11) |
Feb
(20) |
Mar
(65) |
Apr
(83) |
May
(104) |
Jun
(73) |
Jul
(78) |
Aug
(57) |
Sep
(43) |
Oct
(35) |
Nov
(9) |
Dec
(4) |
| 2011 |
Jan
(21) |
Feb
(11) |
Mar
(18) |
Apr
(10) |
May
(18) |
Jun
(15) |
Jul
(48) |
Aug
(25) |
Sep
(17) |
Oct
(45) |
Nov
(15) |
Dec
(12) |
| 2012 |
Jan
(21) |
Feb
(9) |
Mar
(12) |
Apr
(9) |
May
(9) |
Jun
(5) |
Jul
(1) |
Aug
(10) |
Sep
(12) |
Oct
(1) |
Nov
(28) |
Dec
(5) |
| 2013 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2016 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
1
(1) |
2
(14) |
3
(4) |
4
|
5
(3) |
6
(1) |
|
7
(9) |
8
(2) |
9
(4) |
10
|
11
(16) |
12
(21) |
13
(14) |
|
14
(12) |
15
(5) |
16
(6) |
17
|
18
(4) |
19
(4) |
20
(3) |
|
21
(2) |
22
(12) |
23
|
24
|
25
(8) |
26
|
27
(25) |
|
28
|
29
(2) |
30
(1) |
|
|
|
|
|
From: Elias N. <eli...@us...> - 2004-11-18 12:10:42
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15320/src/native/win32 Modified Files: org_lwjgl_opengl_Pbuffer.cpp Log Message: Move getPbufferCaps to DisplayImplementation. Mac OS X pbuffer support Index: org_lwjgl_opengl_Pbuffer.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_opengl_Pbuffer.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- org_lwjgl_opengl_Pbuffer.cpp 15 Sep 2004 17:07:06 -0000 1.21 +++ org_lwjgl_opengl_Pbuffer.cpp 18 Nov 2004 12:10:28 -0000 1.22 @@ -40,6 +40,7 @@ */ #include <stdlib.h> +#include "org_lwjgl_opengl_Win32Display.h" #include "org_lwjgl_opengl_Pbuffer.h" #include "Window.h" @@ -54,13 +55,8 @@ HDC Pbuffer_dc; } PbufferInfo; -/* - * Class: org_lwjgl_opengl_Pbuffer - * Method: isPbufferSupported - * Signature: ()Z - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_Pbuffer_getPbufferCaps - (JNIEnv *env, jclass clazz) +JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_Win32Display_getPbufferCaps + (JNIEnv *env, jobject self) { int caps = 0; if ( extgl_Extensions.WGL_ARB_pixel_format && extgl_Extensions.WGL_ARB_pbuffer ) |
|
From: Elias N. <eli...@us...> - 2004-11-18 12:10:38
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/macosx In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15320/src/native/macosx Modified Files: org_lwjgl_opengl_Display.m Added Files: display.h org_lwjgl_opengl_Pbuffer.m Removed Files: org_lwjgl_opengl_Pbuffer.c Log Message: Move getPbufferCaps to DisplayImplementation. Mac OS X pbuffer support --- org_lwjgl_opengl_Pbuffer.c DELETED --- Index: org_lwjgl_opengl_Display.m =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/macosx/org_lwjgl_opengl_Display.m,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- org_lwjgl_opengl_Display.m 16 Nov 2004 14:23:28 -0000 1.4 +++ org_lwjgl_opengl_Display.m 18 Nov 2004 12:10:28 -0000 1.5 @@ -40,23 +40,25 @@ */ #import <Cocoa/Cocoa.h> -#import <OpenGL/OpenGL.h> #import <Carbon/Carbon.h> #import <jawt_md.h> #import <jni.h> #import <unistd.h> +#import "display.h" #import "common_tools.h" #define WAIT_DELAY 100 static NSOpenGLContext *gl_context; -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXDisplay_createContext(JNIEnv *env, jobject this, jobject pixel_format) { - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - - size_t bpp = CGDisplayBitsPerPixel(kCGDirectMainDisplay); - +NSOpenGLContext *createContext(JNIEnv *env, jobject pixel_format, bool double_buffered, bool use_display_bpp, long drawable_type, NSOpenGLContext *share_context) { + int bpp; jclass cls_pixel_format = (*env)->GetObjectClass(env, pixel_format); + if (use_display_bpp) + bpp = CGDisplayBitsPerPixel(kCGDirectMainDisplay); + else + bpp = (int)(*env)->GetIntField(env, pixel_format, (*env)->GetFieldID(env, cls_pixel_format, "bpp", "I")); + int alpha = (int)(*env)->GetIntField(env, pixel_format, (*env)->GetFieldID(env, cls_pixel_format, "alpha", "I")); int depth = (int)(*env)->GetIntField(env, pixel_format, (*env)->GetFieldID(env, cls_pixel_format, "depth", "I")); int stencil = (int)(*env)->GetIntField(env, pixel_format, (*env)->GetFieldID(env, cls_pixel_format, "stencil", "I")); @@ -66,37 +68,45 @@ int accum_alpha = (int)(*env)->GetIntField(env, pixel_format, (*env)->GetFieldID(env, cls_pixel_format, "accum_alpha", "I")); bool stereo = (bool)(*env)->GetBooleanField(env, pixel_format, (*env)->GetFieldID(env, cls_pixel_format, "stereo", "Z")); - NSOpenGLPixelFormatAttribute attribs[] = { - NSOpenGLPFAAccelerated, - NSOpenGLPFADoubleBuffer, - NSOpenGLPFAColorSize, bpp, - NSOpenGLPFAAlphaSize, alpha, - NSOpenGLPFADepthSize, depth, - NSOpenGLPFAStencilSize, stencil, - NSOpenGLPFAAccumSize, accum_bpp + accum_alpha, - NSOpenGLPFASampleBuffers, samples > 0 ? 1 : 0, - NSOpenGLPFASamples, samples, - NSOpenGLPFAAuxBuffers, num_aux_buffers, - NSOpenGLPFAWindow, - 0, - 0 - }; - + attrib_list_t attribs; + initAttribList(&attribs); + putAttrib(&attribs, NSOpenGLPFAAccelerated); + if (double_buffered) + putAttrib(&attribs, NSOpenGLPFADoubleBuffer); + putAttrib(&attribs, NSOpenGLPFAColorSize); putAttrib(&attribs, bpp); + putAttrib(&attribs, NSOpenGLPFAAlphaSize); putAttrib(&attribs, alpha); + putAttrib(&attribs, NSOpenGLPFADepthSize); putAttrib(&attribs, depth); + putAttrib(&attribs, NSOpenGLPFAStencilSize); putAttrib(&attribs, stencil); + putAttrib(&attribs, NSOpenGLPFAAccumSize); putAttrib(&attribs, accum_bpp + accum_alpha); + putAttrib(&attribs, NSOpenGLPFASampleBuffers); putAttrib(&attribs, samples > 0 ? 1 : 0); + putAttrib(&attribs, NSOpenGLPFASamples); putAttrib(&attribs, samples); + putAttrib(&attribs, NSOpenGLPFAAuxBuffers); putAttrib(&attribs, num_aux_buffers); + putAttrib(&attribs, drawable_type); if (stereo) - attribs[19] = NSOpenGLPFAStereo; - NSOpenGLPixelFormat* fmt = [[NSOpenGLPixelFormat alloc] initWithAttributes:attribs]; + putAttrib(&attribs, NSOpenGLPFAStereo); + putAttrib(&attribs, 0); + NSOpenGLPixelFormat* fmt = [[NSOpenGLPixelFormat alloc] initWithAttributes:(NSOpenGLPixelFormatAttribute *)attribs.attribs]; if (fmt == nil) { throwException(env, "Could not create pixel format"); - [pool release]; - return; + return NULL; } - gl_context = [[NSOpenGLContext alloc] initWithFormat:fmt shareContext:nil]; + NSOpenGLContext *context = [[NSOpenGLContext alloc] initWithFormat:fmt shareContext:share_context]; [fmt release]; - if (gl_context == nil) + if (context == nil) throwException(env, "Could not create context"); + return context; +} + +NSOpenGLContext *getDisplayContext() { + return gl_context; +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXDisplay_createContext(JNIEnv *env, jobject this, jobject pixel_format) { + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + gl_context = createContext(env, pixel_format, true, true, NSOpenGLPFAWindow, nil); [pool release]; } --- NEW FILE: display.h --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of 'LWJGL' nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /** * $Id: display.h,v 1.1 2004/11/18 12:10:28 elias_naur Exp $ * * Mac OS Xspecific display functions. * * @author elias_naur <eli...@us...> * @version $Revision: 1.1 $ */ #import <Cocoa/Cocoa.h> #import "common_tools.h" /* Will return NULL and throw exception if it fails */ extern NSOpenGLContext *createContext(JNIEnv *env, jobject pixel_format, bool double_buffered, bool use_display_bpp, long drawable_type, NSOpenGLContext *share_context); extern NSOpenGLContext *getDisplayContext(); --- NEW FILE: org_lwjgl_opengl_Pbuffer.m --- /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of 'LWJGL' nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /** * $Id: org_lwjgl_opengl_Pbuffer.m,v 1.1 2004/11/18 12:10:28 elias_naur Exp $ * * Mac OS X Pbuffer. * * @author elias_naur <eli...@us...> * @version $Revision: 1.1 $ */ #import <jni.h> #import <OpenGL/gl.h> #import "org_lwjgl_opengl_Pbuffer.h" #import "display.h" typedef struct { NSOpenGLPixelBuffer *pbuffer; NSOpenGLContext *context; } PbufferInfo; /* Check capacity and throw i not large enough to hold a PbufferInfo struct */ static bool checkCapacity(JNIEnv *env, jobject pbuffer_handle) { if ((*env)->GetDirectBufferCapacity(env, pbuffer_handle) < sizeof(PbufferInfo)) { throwException(env, "Handle buffer not large enough"); return false; } else return true; } static PbufferInfo *getPbufferInfoFromBuffer(JNIEnv *env, jobject pbuffer_handle) { if (checkCapacity(env, pbuffer_handle)) return (PbufferInfo *)(*env)->GetDirectBufferAddress(env, pbuffer_handle); else return NULL; } JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_Pbuffer_nIsBufferLost(JNIEnv *env, jclass clazz, jobject pbuffer_handle) { return JNI_FALSE; } JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Pbuffer_nMakeCurrent(JNIEnv *env, jclass clazz, jobject pbuffer_handle) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; PbufferInfo *pbuffer_handle_ptr = getPbufferInfoFromBuffer(env, pbuffer_handle); if (pbuffer_handle_ptr == NULL) return; [pbuffer_handle_ptr->context makeCurrentContext]; [pool release]; } static void createPbuffer(JNIEnv *env, jobject pbuffer_handle, jint width, jint height, jobject pixel_format) { if (!checkCapacity(env, pbuffer_handle)) return; NSOpenGLPixelBuffer *pbuffer = [[NSOpenGLPixelBuffer alloc] initWithTextureTarget:GL_TEXTURE_2D textureInternalFormat:GL_RGBA textureMaxMipMapLevel:0 pixelsWide:width pixelsHigh:height]; if (pbuffer == nil) { throwException(env, "Could not allocate Pbuffer"); return; } NSOpenGLContext *display_context = getDisplayContext(); NSOpenGLContext *context = createContext(env, pixel_format, false, false, NSOpenGLPFAPixelBuffer, display_context); if (context == nil) return; int screen; if (display_context != NULL) screen = [display_context currentVirtualScreen]; else screen = 0; [context setPixelBuffer:pbuffer cubeMapFace:0 mipMapLevel:0 currentVirtualScreen:screen]; PbufferInfo *pbuffer_handle_ptr = (PbufferInfo *)(*env)->GetDirectBufferAddress(env, pbuffer_handle); pbuffer_handle_ptr->pbuffer = pbuffer; pbuffer_handle_ptr->context = context; } JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Pbuffer_nCreate(JNIEnv *env, jclass clazz, jobject pbuffer_handle, jint width, jint height, jobject pixel_format, jobject pixelFormatCaps, jobject pBufferAttribs) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; createPbuffer(env, pbuffer_handle, width, height, pixel_format); [pool release]; } JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Pbuffer_nDestroy(JNIEnv *env, jclass clazz, jobject pbuffer_handle) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; PbufferInfo *pbuffer_handle_ptr = getPbufferInfoFromBuffer(env, pbuffer_handle); if (pbuffer_handle_ptr == NULL) return; [pbuffer_handle_ptr->context clearDrawable]; [pbuffer_handle_ptr->context release]; [pbuffer_handle_ptr->pbuffer release]; [pool release]; } |
|
From: Elias N. <eli...@us...> - 2004-11-18 12:10:37
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15320/src/java/org/lwjgl/opengl Modified Files: DisplayImplementation.java LinuxDisplay.java MacOSXDisplay.java Pbuffer.java Win32Display.java Log Message: Move getPbufferCaps to DisplayImplementation. Mac OS X pbuffer support Index: Win32Display.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Win32Display.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Win32Display.java 11 Nov 2004 13:27:58 -0000 1.2 +++ Win32Display.java 18 Nov 2004 12:10:27 -0000 1.3 @@ -102,4 +102,5 @@ } public native void destroyCursor(Object cursorHandle); + public native int getPbufferCaps(); } Index: Pbuffer.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Pbuffer.java,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- Pbuffer.java 9 Nov 2004 21:29:17 -0000 1.31 +++ Pbuffer.java 18 Nov 2004 12:10:27 -0000 1.32 @@ -236,7 +236,9 @@ * * @return a bitmask of Pbuffer capabilities. */ - public static native int getPbufferCaps(); + public static int getPbufferCaps() { + return Display.getImplementation().getPbufferCaps(); + } /** * Native method to create a Pbuffer Index: DisplayImplementation.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/DisplayImplementation.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- DisplayImplementation.java 11 Nov 2004 13:27:58 -0000 1.2 +++ DisplayImplementation.java 18 Nov 2004 12:10:26 -0000 1.3 @@ -234,4 +234,7 @@ public Object createCursor(int width, int height, int xHotspot, int yHotspot, int numImages, IntBuffer images, IntBuffer delays) throws LWJGLException; public void destroyCursor(Object cursor_handle); + + /* Pbuffer caps */ + public int getPbufferCaps(); } Index: MacOSXDisplay.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplay.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- MacOSXDisplay.java 16 Nov 2004 14:08:30 -0000 1.8 +++ MacOSXDisplay.java 18 Nov 2004 12:10:27 -0000 1.9 @@ -376,6 +376,10 @@ public void destroyCursor(Object cursor_handle) { } + public int getPbufferCaps() { + return GL11.glGetString(GL11.GL_EXTENSIONS).indexOf("GL_APPLE_pixel_buffer") != -1 ? Pbuffer.PBUFFER_SUPPORTED : 0; + } + /** * This class captures com.apple.eawt.ApplicationEvents through reflection * to enable compilation on other platforms than Mac OS X Index: LinuxDisplay.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/LinuxDisplay.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- LinuxDisplay.java 11 Nov 2004 13:27:58 -0000 1.2 +++ LinuxDisplay.java 18 Nov 2004 12:10:27 -0000 1.3 @@ -102,4 +102,5 @@ } public native void destroyCursor(Object cursorHandle); + public native int getPbufferCaps(); } |
|
From: Elias N. <eli...@us...> - 2004-11-18 12:10:37
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15320/src/native/linux Modified Files: org_lwjgl_opengl_Pbuffer.c Log Message: Move getPbufferCaps to DisplayImplementation. Mac OS X pbuffer support Index: org_lwjgl_opengl_Pbuffer.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_opengl_Pbuffer.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_Pbuffer.c 10 Sep 2004 08:13:56 -0000 1.1 +++ org_lwjgl_opengl_Pbuffer.c 18 Nov 2004 12:10:27 -0000 1.2 @@ -40,6 +40,7 @@ */ #include <stdlib.h> +#include "org_lwjgl_opengl_LinuxDisplay.h" #include "org_lwjgl_opengl_Pbuffer.h" #include "extgl.h" #include "Window.h" @@ -57,8 +58,8 @@ return JNI_FALSE; } -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_Pbuffer_getPbufferCaps - (JNIEnv *env, jclass clazz) +JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_LinuxDisplay_getPbufferCaps + (JNIEnv *env, jobject this) { // Only support the GLX 1.3 Pbuffers and ignore the GLX_SGIX_pbuffer extension return extgl_Extensions.GLX13 ? org_lwjgl_opengl_Pbuffer_PBUFFER_SUPPORTED : 0; |