plib-cvs Mailing List for PLIB (Page 14)
Brought to you by:
sjbaker
You can subscribe to this list here.
2002 |
Jan
(25) |
Feb
(10) |
Mar
(60) |
Apr
(49) |
May
(54) |
Jun
(94) |
Jul
(82) |
Aug
(251) |
Sep
(366) |
Oct
(17) |
Nov
(20) |
Dec
(14) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(12) |
Feb
(8) |
Mar
(2) |
Apr
(4) |
May
(5) |
Jun
(8) |
Jul
(23) |
Aug
(8) |
Sep
(7) |
Oct
(5) |
Nov
(20) |
Dec
(20) |
2004 |
Jan
(19) |
Feb
(70) |
Mar
(108) |
Apr
(24) |
May
(6) |
Jun
(5) |
Jul
|
Aug
(8) |
Sep
(18) |
Oct
(27) |
Nov
|
Dec
(13) |
2005 |
Jan
(19) |
Feb
(13) |
Mar
(1) |
Apr
|
May
(10) |
Jun
(1) |
Jul
(10) |
Aug
(5) |
Sep
(2) |
Oct
(2) |
Nov
(6) |
Dec
(4) |
2006 |
Jan
(9) |
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Nick M. <nm...@us...> - 2004-02-23 12:06:02
|
Update of /cvsroot/plib/plib/examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26034/examples Modified Files: plib_examples.dsw Log Message: Added PW demo Index: plib_examples.dsw =================================================================== RCS file: /cvsroot/plib/plib/examples/plib_examples.dsw,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- plib_examples.dsw 31 Jul 2003 11:54:36 -0000 1.23 +++ plib_examples.dsw 23 Feb 2004 11:52:30 -0000 1.24 @@ -273,6 +273,30 @@ ############################################################################### +Project: "pw_demo"=".\src\pw\pw_demo.dsp" - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "pw_pui"=".\src\pw\pw_pui.dsp" - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + Project: "save"=".\src\ssg\load_save\save.dsp" - Package Owner=<4> Package=<5> |
From: Nick M. <nm...@us...> - 2004-02-23 12:04:27
|
Update of /cvsroot/plib/plib/examples/src/pw In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25755/examples/src/pw Modified Files: pw_demo.cxx pw_pui.cxx Added Files: pw_demo.dsp pw_pui.dsp Log Message: Added PW demo --- NEW FILE: pw_demo.dsp --- # Microsoft Developer Studio Project File - Name="pw_demo" - Package Owner=<4> # Microsoft Developer Studio Generated Build File, Format Version 6.00 # ** DO NOT EDIT ** # TARGTYPE "Win32 (x86) Console Application" 0x0103 CFG=pw_demo - Win32 Debug !MESSAGE This is not a valid makefile. To build this project using NMAKE, !MESSAGE use the Export Makefile command and run !MESSAGE !MESSAGE NMAKE /f "pw_demo.mak". !MESSAGE !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE !MESSAGE NMAKE /f "pw_demo.mak" CFG="pw_demo - Win32 Debug" !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE [...63 lines suppressed...] # Name "pw_demo - Win32 Release" # Name "pw_demo - Win32 Debug" # Begin Group "Source Files" # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File SOURCE=.\pw_demo.cxx # End Source File # End Group # Begin Group "Header Files" # PROP Default_Filter "h;hpp;hxx;hm;inl" # End Group # Begin Group "Resource Files" # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" # End Group # End Target # End Project --- NEW FILE: pw_pui.dsp --- # Microsoft Developer Studio Project File - Name="pw_pui" - Package Owner=<4> # Microsoft Developer Studio Generated Build File, Format Version 6.00 # ** DO NOT EDIT ** # TARGTYPE "Win32 (x86) Console Application" 0x0103 CFG=pw_pui - Win32 Debug !MESSAGE This is not a valid makefile. To build this project using NMAKE, !MESSAGE use the Export Makefile command and run !MESSAGE !MESSAGE NMAKE /f "pw_pui.mak". !MESSAGE !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE !MESSAGE NMAKE /f "pw_pui.mak" CFG="pw_pui - Win32 Debug" !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE [...63 lines suppressed...] # Name "pw_pui - Win32 Release" # Name "pw_pui - Win32 Debug" # Begin Group "Source Files" # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File SOURCE=.\pw_pui.cxx # End Source File # End Group # Begin Group "Header Files" # PROP Default_Filter "h;hpp;hxx;hm;inl" # End Group # Begin Group "Resource Files" # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" # End Group # End Target # End Project Index: pw_demo.cxx =================================================================== RCS file: /cvsroot/plib/plib/examples/src/pw/pw_demo.cxx,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- pw_demo.cxx 16 Feb 2004 02:26:27 -0000 1.1 +++ pw_demo.cxx 23 Feb 2004 11:50:50 -0000 1.2 @@ -1,4 +1,9 @@ +#ifdef WIN32 +#define WIN32_LEAN_AND_MEAN +#include <windows.h> +#endif + #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -57,6 +62,8 @@ glClear ( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ) ; pwSwapBuffers () ; } + + return 0; } Index: pw_pui.cxx =================================================================== RCS file: /cvsroot/plib/plib/examples/src/pw/pw_pui.cxx,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- pw_pui.cxx 17 Feb 2004 01:43:21 -0000 1.1 +++ pw_pui.cxx 23 Feb 2004 11:50:50 -0000 1.2 @@ -1,4 +1,9 @@ +#ifdef WIN32 +#define WIN32_LEAN_AND_MEAN +#include <windows.h> +#endif + #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -63,6 +68,8 @@ puDisplay () ; pwSwapBuffers () ; } + + return 0; } |
From: Nick M. <nm...@us...> - 2004-02-23 12:01:53
|
Update of /cvsroot/plib/plib/src/pui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25347/src/pui Modified Files: pui.dsp Log Message: Added puPW.h Index: pui.dsp =================================================================== RCS file: /cvsroot/plib/plib/src/pui/pui.dsp,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- pui.dsp 16 Feb 2004 22:08:18 -0000 1.26 +++ pui.dsp 23 Feb 2004 11:48:21 -0000 1.27 @@ -54,7 +54,7 @@ # Begin Special Build Tool SOURCE="$(InputPath)" PostBuild_Desc=Copy Library to plib directory -PostBuild_Cmds=copy release\*.lib ..\..\*.* copy pu.h ..\..\pu.h copy puGLUT.h "..\..\" copy puFLTK.h "..\..\" copy puSDL.h "..\..\" copy puNative.h "..\..\" +PostBuild_Cmds=copy release\*.lib ..\..\*.* copy pu.h ..\..\pu.h copy puGLUT.h "..\..\" copy puFLTK.h "..\..\" copy puSDL.h "..\..\" copy puNative.h "..\..\" copy puPW.h ..\..\ # End Special Build Tool !ELSEIF "$(CFG)" == "pui - Win32 Debug" @@ -83,7 +83,7 @@ # Begin Special Build Tool SOURCE="$(InputPath)" [...78 lines suppressed...] # Begin Source File +SOURCE=.\puPW.h +# End Source File +# Begin Source File + SOURCE=.\puRange.cxx # End Source File # Begin Source File @@ -222,6 +222,10 @@ # End Source File # Begin Source File +SOURCE=.\puSDL.h +# End Source File +# Begin Source File + SOURCE=.\puSelectBox.cxx # End Source File # Begin Source File |
From: Nick M. <nm...@us...> - 2004-02-23 11:57:55
|
Update of /cvsroot/plib/plib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24651 Modified Files: plib.dsw Log Message: Added pw Index: plib.dsw =================================================================== RCS file: /cvsroot/plib/plib/plib.dsw,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- plib.dsw 25 Aug 2003 13:10:05 -0000 1.14 +++ plib.dsw 23 Feb 2004 11:44:24 -0000 1.15 @@ -7,10 +7,6 @@ Package=<5> {{{ - begin source code control - fnt - .\src\fnt - end source code control }}} Package=<4> @@ -35,10 +31,6 @@ [...79 lines suppressed...] Package=<5> {{{ - begin source code control - ssgAux - .\src\ssgaux - end source code control }}} Package=<4> @@ -189,10 +169,6 @@ Package=<5> {{{ - begin source code control - ul - .\src\util - end source code control }}} Package=<4> |
From: Nick M. <nm...@us...> - 2004-02-23 11:57:06
|
Update of /cvsroot/plib/plib/src/pw In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24522/src/pw Modified Files: pwWindows.cxx Added Files: pw.dsp Log Message: Added pw for windows --- NEW FILE: pw.dsp --- # Microsoft Developer Studio Project File - Name="pw" - Package Owner=<4> # Microsoft Developer Studio Generated Build File, Format Version 6.00 # ** DO NOT EDIT ** # TARGTYPE "Win32 (x86) Static Library" 0x0104 CFG=pw - Win32 Debug !MESSAGE This is not a valid makefile. To build this project using NMAKE, !MESSAGE use the Export Makefile command and run !MESSAGE !MESSAGE NMAKE /f "pw.mak". !MESSAGE !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE !MESSAGE NMAKE /f "pw.mak" CFG="pw - Win32 Debug" !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE [...69 lines suppressed...] # Name "pw - Win32 Release" # Name "pw - Win32 Debug" # Begin Group "Source Files" # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File SOURCE=.\pwWindows.cxx # End Source File # End Group # Begin Group "Header Files" # PROP Default_Filter "h;hpp;hxx;hm;inl" # Begin Source File SOURCE=.\pw.h # End Source File # End Group # End Target # End Project Index: pwWindows.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pw/pwWindows.cxx,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- pwWindows.cxx 16 Feb 2004 02:26:28 -0000 1.1 +++ pwWindows.cxx 23 Feb 2004 11:43:36 -0000 1.2 @@ -5,8 +5,27 @@ #ifdef UL_WIN32 +#define WIN32_LEAN_AND_MEAN +#include <windows.h> +#include <GL/gl.h> + #include "pw.h" +static int origin [2] = { 0, 0 } ; +static int size [2] = { 640, 480 } ; [...322 lines suppressed...] + } } void pwSwapBuffers () { + glFlush () ; + SwapBuffers ( currDC ) ; + getEvents () ; } void pwCleanup () { + wglMakeCurrent ( NULL, NULL ) ; + wglDeleteContext ( currGLRC ) ; + DestroyWindow ( currWnd ) ; } |
From: Steve B. <sj...@us...> - 2004-02-23 04:30:11
|
Update of /cvsroot/plib/plib/src/pui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11363/plib/src/pui Modified Files: puComboBox.cxx puGroup.cxx puInput.cxx puLargeInput.cxx puSelectBox.cxx Log Message: Make PUI ignore key-up events in puKeyboard. Index: puComboBox.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puComboBox.cxx,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- puComboBox.cxx 21 Sep 2002 17:47:09 -0000 1.14 +++ puComboBox.cxx 23 Feb 2004 04:16:52 -0000 1.15 @@ -192,7 +192,7 @@ int puComboBox::checkKey ( int key, int updown ) { - if ( ! input -> isAcceptingInput () || ! isVisible () || ! isActive () || ( window != puGetWindow () ) ) + if ( updown == PU_UP || ! input -> isAcceptingInput () || ! isVisible () || ! isActive () || ( window != puGetWindow () ) ) return FALSE ; switch ( key ) Index: puGroup.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puGroup.cxx,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- puGroup.cxx 16 Dec 2003 23:14:18 -0000 1.27 +++ puGroup.cxx 23 Feb 2004 04:16:52 -0000 1.28 @@ -149,7 +149,7 @@ int puGroup::checkKey ( int key, int updown ) { - if ( dlist == NULL || ! isVisible () || ! isActive () ) + if ( updown == PU_UP || dlist == NULL || ! isVisible () || ! isActive () ) return FALSE ; puObject *bo ; Index: puInput.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puInput.cxx,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- puInput.cxx 12 Nov 2003 19:02:02 -0000 1.33 +++ puInput.cxx 23 Feb 2004 04:16:52 -0000 1.34 @@ -269,9 +269,9 @@ } -int puInput::checkKey ( int key, int /* updown */ ) +int puInput::checkKey ( int key, int updown ) { - if ( ! isAcceptingInput() || ! isActive () || ! isVisible () || ( window != puGetWindow () ) ) + if ( updown == PU_UP || ! isAcceptingInput() || ! isActive () || ! isVisible () || ( window != puGetWindow () ) ) return FALSE ; if ( puActiveWidget() && ( this != puActiveWidget() ) ) Index: puLargeInput.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puLargeInput.cxx,v retrieving revision 1.47 retrieving revision 1.48 diff -u -d -r1.47 -r1.48 --- puLargeInput.cxx 28 Apr 2003 20:28:28 -0000 1.47 +++ puLargeInput.cxx 23 Feb 2004 04:16:52 -0000 1.48 @@ -844,9 +844,9 @@ lowlight () ; } -int puLargeInput::checkKey ( int key, int /* updown */ ) +int puLargeInput::checkKey ( int key, int updown ) { - if ( !isAcceptingInput () || !isActive () || !isVisible () || ( window != puGetWindow () ) ) + if ( updown == PU_UP || !isAcceptingInput () || !isActive () || !isVisible () || ( window != puGetWindow () ) ) return FALSE ; if ( puActiveWidget() && ( this != puActiveWidget() ) ) Index: puSelectBox.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puSelectBox.cxx,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- puSelectBox.cxx 2 Sep 2002 06:05:46 -0000 1.8 +++ puSelectBox.cxx 23 Feb 2004 04:16:52 -0000 1.9 @@ -114,7 +114,7 @@ int puSelectBox::checkKey ( int key, int updown ) { - if ( ! input -> isAcceptingInput () || ! isVisible () || ! isActive () || ( window != puGetWindow () ) ) + if ( updown == PU_UP || ! input -> isAcceptingInput () || ! isVisible () || ! isActive () || ( window != puGetWindow () ) ) return FALSE ; switch ( key ) |
From: Steve B. <sj...@us...> - 2004-02-18 00:38:20
|
Update of /cvsroot/plib/plib/src/pw In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32239/plib/src/pw Modified Files: pwX11.cxx Log Message: Fixed a couple of portability issues. Index: pwX11.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pw/pwX11.cxx,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- pwX11.cxx 16 Feb 2004 02:26:28 -0000 1.1 +++ pwX11.cxx 18 Feb 2004 00:28:58 -0000 1.2 @@ -18,7 +18,6 @@ #include <X11/Xatom.h> #include <X11/keysym.h> #include <X11/cursorfont.h> -#include <X11/extensions/xf86vmode.h> #include <X11/Xlib.h> #include <X11/Xatom.h> } @@ -333,7 +332,9 @@ pwSetCursor ( PW_CURSOR_LEFT ) ; +#ifdef GL_MULTISAMPLE_FILTER_HINT_NV glHint ( GL_MULTISAMPLE_FILTER_HINT_NV, multisample ) ; +#endif kbCB = kb ; msCB = ms ; |
From: Steve B. <sj...@us...> - 2004-02-17 01:51:50
|
Update of /cvsroot/plib/plib/src/pui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26747/plib/src/pui Modified Files: Makefile.am pu.h Added Files: puPW.h Log Message: Added support for PW into PUI - and provided a demo of it working! --- NEW FILE: puPW.h --- /* PLIB - A Suite of Portable Game Libraries Copyright (C) 1998,2002 Steve Baker This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For further information visit http://plib.sourceforge.net $Id: puPW.h,v 1.1 2004/02/17 01:43:21 sjbaker Exp $ */ #ifndef _PU_PW_H_ #define _PU_PW_H_ #include "pu.h" #define PUPW_WINDOW_MAGIC 0x3DEB4938 /* Random! */ inline int puGetWindowPW() { return PUPW_WINDOW_MAGIC ; } inline void puSetWindowPW ( int window ) { // Not possible because PW is a single-window library. // But we can at least check that the handle matches. assert ( window == PUPW_WINDOW_MAGIC ) ; } inline void puGetWindowSizePW ( int *width, int *height ) { pwGetSize ( width, height ) ; } inline void puSetWindowSizePW ( int width, int height ) { pwSetSize ( width, height ) ; } inline void puInitPW () { puSetWindowFuncs ( puGetWindowPW, puSetWindowPW, puGetWindowSizePW, puSetWindowSizePW ) ; puRealInit () ; } #endif Index: Makefile.am =================================================================== RCS file: /cvsroot/plib/plib/src/pui/Makefile.am,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- Makefile.am 16 Feb 2004 13:49:02 -0000 1.20 +++ Makefile.am 17 Feb 2004 01:43:21 -0000 1.21 @@ -2,7 +2,7 @@ lib_LIBRARIES = libplibpu.a -include_HEADERS = pu.h puGLUT.h puFLTK.h puSDL.h puNative.h +include_HEADERS = pu.h puGLUT.h puFLTK.h puSDL.h puNative.h puPW.h libplibpu_a_SOURCES = \ pu.cxx puBox.cxx puButton.cxx puButtonBox.cxx \ Index: pu.h =================================================================== RCS file: /cvsroot/plib/plib/src/pui/pu.h,v retrieving revision 1.143 retrieving revision 1.144 diff -u -d -r1.143 -r1.144 --- pu.h 16 Feb 2004 13:49:03 -0000 1.143 +++ pu.h 17 Feb 2004 01:43:21 -0000 1.144 @@ -2024,7 +2024,7 @@ * Window System Integration * ------------------------- * - * PUI has direct support for GLUT, FLTK, SDL and GTK. All code is provided + * PUI has direct support for GLUT, PW, FLTK, SDL and GTK. All code is provided * inline, making PUI itself independent. There are several ways to choose * implementation, for instance: * @@ -2062,13 +2062,16 @@ // Choose implementation #if !defined(PU_USE_GLUT) && \ + !defined(PU_USE_PW) && \ !defined(PU_USE_FLTK) && \ !defined(PU_USE_SDL) && \ !defined(PU_USE_NATIVE) && \ !defined(PU_USE_NONE) // Nothing selected. Try to figure out which one to use. -#if defined(FL_MAJOR_VERSION) +#if defined(PW_IS_PRESENT) +# define PU_USE_PW +#elif defined(FL_MAJOR_VERSION) # define PU_USE_FLTK #elif defined(SDL_MAJOR_VERSION) # define PU_USE_SDL @@ -2084,6 +2087,9 @@ #if defined(PU_USE_GLUT) # include "puGLUT.h" # define puInit puInitGLUT +#elif defined(PU_USE_PW) +# include "puPW.h" +# define puInit puInitPW #elif defined(PU_USE_FLTK) # include "puFLTK.h" # define puInit puInitFLTK |
From: Steve B. <sj...@us...> - 2004-02-17 01:51:50
|
Update of /cvsroot/plib/plib/src/pw In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26747/plib/src/pw Modified Files: pw.h Log Message: Added support for PW into PUI - and provided a demo of it working! Index: pw.h =================================================================== RCS file: /cvsroot/plib/plib/src/pw/pw.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- pw.h 16 Feb 2004 02:26:28 -0000 1.1 +++ pw.h 17 Feb 2004 01:43:21 -0000 1.2 @@ -1,6 +1,8 @@ #ifndef _PW_H_ #define _PW_H_ 1 +#define PW_IS_PRESENT 1 + typedef void pwResizeCB ( int w, int h ) ; typedef void pwExitCB () ; typedef void pwKeybdFunc ( int key, int updown, int x, int y ) ; |
From: Steve B. <sj...@us...> - 2004-02-17 01:51:50
|
Update of /cvsroot/plib/plib/examples/src/pw In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26747/plib/examples/src/pw Modified Files: Makefile.am Added Files: pw_pui.cxx Log Message: Added support for PW into PUI - and provided a demo of it working! --- NEW FILE: pw_pui.cxx --- #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <GL/gl.h> #include <plib/ul.h> #include <plib/pw.h> // This needs to be before <plib/pu.h> #include <plib/pu.h> void exFunc () { fprintf ( stderr, "Exiting.\n" ) ; pwCleanup () ; exit ( 0 ) ; } void rsFunc ( int w, int h ) { fprintf ( stderr, "Resized to %d x %d\n", w, h ) ; } void mpFunc ( int x, int y ) { puMouse ( x, y ) ; } void msFunc ( int button, int updn, int x, int y ) { puMouse ( button, updn, x, y ) ; } void kbFunc ( int key, int updn, int x, int y ) { puKeyboard ( key, updn, x, y ) ; } void button_cb ( puObject * ) { fprintf ( stderr, "Hello World.\n" ) ; } int main ( int, char ** ) { pwInit ( 100, 100, 640, 480, false, "PLIB Window Demo", true, 0, kbFunc, msFunc, mpFunc, rsFunc, exFunc ) ; puInit () ; puOneShot *b = new puOneShot ( 50, 50, 200, 80 ) ; b -> setLegend ( "Say Hello" ) ; b -> setCallback ( button_cb ) ; while ( 1 ) { glClearColor ( 0.5, 0.1, 0.1, 1.0 ) ; glClear ( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ) ; puDisplay () ; pwSwapBuffers () ; } } Index: Makefile.am =================================================================== RCS file: /cvsroot/plib/plib/examples/src/pw/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.am 16 Feb 2004 02:26:27 -0000 1.1 +++ Makefile.am 17 Feb 2004 01:43:21 -0000 1.2 @@ -1,10 +1,12 @@ if BUILD_PW -noinst_PROGRAMS = pw_demo +noinst_PROGRAMS = pw_demo pw_pui pw_demo_SOURCES = pw_demo.cxx +pw_pui_SOURCES = pw_pui.cxx pw_demo_LDADD = -lplibpw -lplibul $(OGL_LIBS) +pw_pui_LDADD = -lplibpw -lplibpu -lplibfnt -lplibsg -lplibul $(OGL_LIBS) endif |
From: M?rten Str?m. <str...@us...> - 2004-02-16 22:17:56
|
Update of /cvsroot/plib/plib/src/pui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17722 Modified Files: pu.cxx Log Message: Fixed typo in new puKeyboard function. Index: pu.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/pu.cxx,v retrieving revision 1.66 retrieving revision 1.67 diff -u -d -r1.66 -r1.67 --- pu.cxx 16 Feb 2004 13:49:03 -0000 1.66 +++ pu.cxx 16 Feb 2004 22:09:34 -0000 1.67 @@ -324,7 +324,7 @@ int puKeyboard ( int key, int updown, int, int ) { - puKeyboard ( key, updown ) ; + return puKeyboard ( key, updown ) ; } |
From: M?rten Str?m. <str...@us...> - 2004-02-16 22:16:43
|
Update of /cvsroot/plib/plib/src/pui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17441 Modified Files: pui.dsp Log Message: Added new headers to copy rules. Index: pui.dsp =================================================================== RCS file: /cvsroot/plib/plib/src/pui/pui.dsp,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- pui.dsp 16 Feb 2004 13:49:03 -0000 1.25 +++ pui.dsp 16 Feb 2004 22:08:18 -0000 1.26 @@ -54,7 +54,7 @@ # Begin Special Build Tool SOURCE="$(InputPath)" PostBuild_Desc=Copy Library to plib directory -PostBuild_Cmds=copy release\*.lib ..\..\*.* copy pu.h ..\..\pu.h +PostBuild_Cmds=copy release\*.lib ..\..\*.* copy pu.h ..\..\pu.h copy puGLUT.h "..\..\" copy puFLTK.h "..\..\" copy puSDL.h "..\..\" copy puNative.h "..\..\" # End Special Build Tool !ELSEIF "$(CFG)" == "pui - Win32 Debug" @@ -83,7 +83,7 @@ # Begin Special Build Tool SOURCE="$(InputPath)" PostBuild_Desc=Copy Library to plib directory -PostBuild_Cmds=copy debug\*.lib ..\..\*.* copy pu.h ..\..\pu.h +PostBuild_Cmds=copy debug\*.lib ..\..\*.* copy pu.h ..\..\pu.h copy puGLUT.h "..\..\" copy puFLTK.h "..\..\" copy puSDL.h "..\..\" copy puNative.h "..\..\" # End Special Build Tool !ENDIF |
From: M?rten Str?m. <str...@us...> - 2004-02-16 20:59:33
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31192 Modified Files: ssgBranch.cxx Log Message: Fixed memory leak and some compiler warnings. Index: ssgBranch.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgBranch.cxx,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- ssgBranch.cxx 17 Jan 2004 21:50:25 -0000 1.25 +++ ssgBranch.cxx 16 Feb 2004 20:51:12 -0000 1.26 @@ -411,7 +411,7 @@ { float * pfDest = pDest->getVertex(iDest); #define MYABS(x) ((x>0)?(x):(-(x))) if (MYABS(pfSrc[0]-pfDest[0])+MYABS(pfSrc[1]-pfDest[1])+ - MYABS(pfSrc[2]-pfDest[2]) < 0.0001 /* kludge * /) + MYABS(pfSrc[2]-pfDest[2]) < 0.0001) { bFound = TRUE; aiOld2NewIndex[iSrc] = iDest; } @@ -424,17 +424,14 @@ pDest->normals->add(f); else { - float *f = new sgVec3(); - f[0] = 0; f[1] = 0; f[2]=0; - pDest->normals->add(f); + pDest->normals->add(_ssgNormalUp); } f = pSrc->getTexCoord(iSrc); if (f) pDest->texcoords->add(f); else - { float *f = new sgVec2(); - f[0] = 0; f[1] = 0; - pDest->texcoords->add(f); + { + pDest->texcoords->add(_ssgTexCoord00); } // assert(pSrc->colours->getNum()==0); } @@ -622,7 +619,7 @@ 10 ,1 ,2 ,1 ,2 ,11 ,1 ,12 ,1 ,2 ,13 ,1 ,2 ,14 ,2 ,1 ,1 ,15 ,1 ,16 ,1 ,17 ,2 ,1 ,18 ,1 ,22 ,2 ,25 , 2 ,1 ,30 ,2 ,1 ,2 ,1 ,13 ,2 ,1 ,2 ,1 }; noOfMergedNodes = 0; - for(int i=0; i < sizeof(deltas)/sizeof(int); i++) + for(unsigned i=0; i < sizeof(deltas)/sizeof(int); i++) { recursiveMergeHNodes ( this, deltas[i] ); #ifdef VERBOSE |
From: M?rten Str?m. <str...@us...> - 2004-02-16 14:20:23
|
Update of /cvsroot/plib/plib/examples/src/ssg/shrubs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12703 Modified Files: Makefile.am Log Message: Fixed strange link error. Index: Makefile.am =================================================================== RCS file: /cvsroot/plib/plib/examples/src/ssg/shrubs/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.am 30 Nov 2003 21:03:24 -0000 1.1 +++ Makefile.am 16 Feb 2004 14:12:15 -0000 1.2 @@ -4,7 +4,7 @@ shrubs_SOURCES = shrubs.cxx -shrubs_LDADD = -lplibssgaux -lplibssg -lplibfnt -lplibpu -lplibsg -lplibul $(GLUT_LIBS) $(OGL_LIBS) +shrubs_LDADD = -lplibssgaux -lplibssg -lplibpu -lplibfnt -lplibsg -lplibul $(GLUT_LIBS) $(OGL_LIBS) endif |
From: M?rten Str?m. <str...@us...> - 2004-02-16 13:57:28
|
Update of /cvsroot/plib/plib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7989 Modified Files: configure.in Log Message: Removed checks for the GLUT library. Index: configure.in =================================================================== RCS file: /cvsroot/plib/plib/configure.in,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- configure.in 16 Feb 2004 02:26:26 -0000 1.54 +++ configure.in 16 Feb 2004 13:49:23 -0000 1.55 @@ -36,12 +36,6 @@ [ --with-GL=DIR set the prefix directory where GL resides], GL_PREFIX=$withval, GL_PREFIX=auto) - -AC_ARG_WITH(glut, -[ --without-glut build GLUT-free PUI library (highly experimental!)],, -with_glut=yes) - - AC_ARG_ENABLE(fnt, [ --enable-fnt build FNT library (OpenGL needed) default: yes],, [...116 lines suppressed...] - fi -else - if test "x$with_glut" = "xno"; then - glut_msg="no (experimental GLUT-free PUI, see README.GLUT)" - else - glut_msg="no" - fi -fi - AC_MSG_RESULT( [PLIB configuration information: @@ -456,7 +384,5 @@ Building ssgAux library: $enable_ssgaux Building PW library: $enable_pw Building UTIL library: $enable_ul - - Need GLUT: $glut_msg ]) |
Update of /cvsroot/plib/plib/src/pui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7916 Modified Files: Makefile.am pu.cxx pu.h puFont.cxx puLocal.h puMenuBar.cxx pui.dsp Added Files: puFLTK.h puGLUT.h puNative.h puSDL.h Log Message: Removed dependence on the GLUT library. --- NEW FILE: puFLTK.h --- /* PLIB - A Suite of Portable Game Libraries Copyright (C) 1998,2002 Steve Baker This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For further information visit http://plib.sourceforge.net $Id: puFLTK.h,v 1.1 2004/02/16 13:49:03 stromberg Exp $ */ #ifndef _PU_FLTK_H_ #define _PU_FLTK_H_ #ifndef PU_USE_FLTK # define PU_USE_FLTK #endif #include "pu.h" #include <FL/Fl_Gl_Window.H> inline int puGetWindowFLTK () { return (int) Fl_Window::current () ; } inline void puSetWindowFLTK ( int window ) { ((Fl_Gl_Window *) window) -> make_current () ; } inline void puGetWindowSizeFLTK ( int *width, int *height ) { Fl_Window * window = Fl_Window::current () ; *width = window->w() ; *height = window->h() ; } inline void puSetWindowSizeFLTK ( int width, int height ) { Fl_Window * window = Fl_Window::current () ; window -> resize ( window->x(), window->y(), width, height ) ; } inline void puInitFLTK () { puSetWindowFuncs ( puGetWindowFLTK, puSetWindowFLTK, puGetWindowSizeFLTK, puSetWindowSizeFLTK ) ; puRealInit () ; } #endif --- NEW FILE: puGLUT.h --- /* PLIB - A Suite of Portable Game Libraries Copyright (C) 1998,2002 Steve Baker This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For further information visit http://plib.sourceforge.net $Id: puGLUT.h,v 1.1 2004/02/16 13:49:03 stromberg Exp $ */ #ifndef _PU_GLUT_H_ #define _PU_GLUT_H_ #ifndef PU_USE_GLUT # define PU_USE_GLUT #endif #include "pu.h" #ifdef UL_MAC_OSX # include <GLUT/glut.h> #else # include <GL/glut.h> #endif inline int puGetWindowGLUT() { return glutGetWindow () ; } inline void puSetWindowGLUT ( int window ) { glutSetWindow ( window ) ; } inline void puGetWindowSizeGLUT ( int *width, int *height ) { *width = glutGet ( (GLenum) GLUT_WINDOW_WIDTH ) ; *height = glutGet ( (GLenum) GLUT_WINDOW_HEIGHT ) ; } inline void puSetWindowSizeGLUT ( int width, int height ) { glutReshapeWindow ( width, height ) ; } inline void puInitGLUT () { puSetWindowFuncs ( puGetWindowGLUT, puSetWindowGLUT, puGetWindowSizeGLUT, puSetWindowSizeGLUT ) ; puRealInit () ; } #endif --- NEW FILE: puNative.h --- /* PLIB - A Suite of Portable Game Libraries Copyright (C) 1998,2002 Steve Baker This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For further information visit http://plib.sourceforge.net [...62 lines suppressed...] GLint vp[4] ; glGetIntegerv ( GL_VIEWPORT, vp ) ; *width = vp[0] + vp[2] ; *height = vp[1] + vp[3] ; // Note: puSetOpenGLState calls glViewport(0, 0, w, h). #endif } inline void puInitNative () { puSetWindowFuncs ( puGetWindowNative, NULL, puGetWindowSizeNative, NULL ) ; puRealInit () ; } #endif --- NEW FILE: puSDL.h --- /* PLIB - A Suite of Portable Game Libraries Copyright (C) 1998,2002 Steve Baker This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For further information visit http://plib.sourceforge.net $Id: puSDL.h,v 1.1 2004/02/16 13:49:03 stromberg Exp $ */ #ifndef _PU_SDL_H_ #define _PU_SDL_H_ #ifndef PU_USE_SDL # define PU_USE_SDL #endif #include "pu.h" #include <SDL/SDL.h> inline int puGetWindowSDL () { return 0; } inline void puGetWindowSizeSDL ( int *width, int *height ) { SDL_Surface *display = SDL_GetVideoSurface () ; *width = display->w ; *height = display->h ; } inline void puInitSDL () { puSetWindowFuncs ( puGetWindowSDL, NULL, puGetWindowSizeSDL, NULL ) ; puRealInit () ; } #endif Index: Makefile.am =================================================================== RCS file: /cvsroot/plib/plib/src/pui/Makefile.am,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- Makefile.am 27 Sep 2002 23:53:52 -0000 1.19 +++ Makefile.am 16 Feb 2004 13:49:02 -0000 1.20 @@ -2,7 +2,7 @@ lib_LIBRARIES = libplibpu.a -include_HEADERS = pu.h +include_HEADERS = pu.h puGLUT.h puFLTK.h puSDL.h puNative.h libplibpu_a_SOURCES = \ pu.cxx puBox.cxx puButton.cxx puButtonBox.cxx \ @@ -15,11 +15,9 @@ puFileSelector.cxx puComboBox.cxx puSelectBox.cxx puRange.cxx \ puSpinBox.cxx puScrollBar.cxx puInputBase.cxx -INCLUDES = -I$(top_srcdir)/src/sg -I$(top_srcdir)/src/fnt -INCLUDES += -I$(top_srcdir)/src/util +AM_CPPFLAGS = -I$(top_srcdir)/src/sg -I$(top_srcdir)/src/fnt +AM_CPPFLAGS += -I$(top_srcdir)/src/util -DPU_USE_NONE endif EXTRA_DIST = pui.dsp - - Index: pu.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/pu.cxx,v retrieving revision 1.65 retrieving revision 1.66 diff -u -d -r1.65 -r1.66 --- pu.cxx 16 Feb 2004 02:26:28 -0000 1.65 +++ pu.cxx 16 Feb 2004 13:49:03 -0000 1.66 @@ -23,49 +23,80 @@ #include "puLocal.h" -#if defined(UL_MACINTOSH) +#if defined(UL_AGL) # include <agl.h> -#elif defined(UL_MAC_OSX) +#elif defined(UL_CGL) # include <OpenGL/CGLCurrent.h> -#elif defined(UL_WIN32) - /* Nothing */ [...203 lines suppressed...] - - return glutGet ( (GLenum) GLUT_WINDOW_HEIGHT ) ; -} - - -int puGetWindowWidth ( void ) +void puSetResizeMode ( int mode ) { - if ( openGLSize ) - return puWindowWidth ; - - return glutGet ( (GLenum) GLUT_WINDOW_WIDTH ) ; + static int last = 0; + if ( last == 0 && mode != 0 ) + ulSetError ( UL_WARNING, "puSetResizeMode is deprecated!" ) ; + last = mode ; } - -#endif - Index: pu.h =================================================================== RCS file: /cvsroot/plib/plib/src/pui/pu.h,v retrieving revision 1.142 retrieving revision 1.143 diff -u -d -r1.142 -r1.143 --- pu.h 16 Feb 2004 02:26:28 -0000 1.142 +++ pu.h 16 Feb 2004 13:49:03 -0000 1.143 @@ -31,11 +31,6 @@ Configuration */ -#ifndef PU_NOT_USING_GLUT -#define _PU_USE_GLUT 1 -#define _PU_USE_GLUT_FONTS 1 -#endif - #define PU_NOBUTTON -1 #define PU_LEFT_BUTTON 0 #define PU_MIDDLE_BUTTON 1 [...153 lines suppressed...] + + +// Roll out the code and define puInit + +#if defined(PU_USE_GLUT) +# include "puGLUT.h" +# define puInit puInitGLUT +#elif defined(PU_USE_FLTK) +# include "puFLTK.h" +# define puInit puInitFLTK +#elif defined(PU_USE_SDL) +# include "puSDL.h" +# define puInit puInitSDL +#elif defined(PU_USE_NATIVE) +# include "puNative.h" +# define puInit puInitNative #endif + +#endif Index: puFont.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puFont.cxx,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- puFont.cxx 19 Sep 2002 23:32:58 -0000 1.22 +++ puFont.cxx 16 Feb 2004 13:49:03 -0000 1.23 @@ -24,47 +24,21 @@ #include "puLocal.h" -#ifdef _PU_USE_GLUT_FONTS - -/* - A set of puFont's to implement the GLUT BitMap set... -*/ - -puFont PUFONT_8_BY_13 ( GLUT_BITMAP_8_BY_13 ) ; -puFont PUFONT_9_BY_15 ( GLUT_BITMAP_9_BY_15 ) ; [...140 lines suppressed...] - - while ( *str != '\0' ) - { - if (*str == '\n') - { - y -= getStringHeight () + getStringDescender () ; - glRasterPos2f( (float)x, (float)y ) ; - } - else - glutBitmapCharacter ( glut_font_handle, *str ) ; - - str++ ; - } - return ; - } -#endif // #ifdef _PU_USE_GLUT_FONTS - if ( fnt_font_handle != NULL ) { sgVec3 curpos ; Index: puLocal.h =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puLocal.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- puLocal.h 30 Nov 2002 00:41:49 -0000 1.12 +++ puLocal.h 16 Feb 2004 13:49:03 -0000 1.13 @@ -24,29 +24,6 @@ #include "pu.h" -/* - Include GLUT - */ - -#ifndef PU_NOT_USING_GLUT -# ifdef FREEGLUT_IS_PRESENT -# include <GL/freeglut.h> -# else -# ifdef UL_MAC_OSX -# include <GLUT/glut.h> -# else -# include <GL/glut.h> -# endif -# endif -#endif - - -#ifndef _PU_USE_GLUT_FONTS -extern fntTexFont _puCourierFont ; -extern fntTexFont _puTimesFont ; -extern fntTexFont _puHelveticaFont ; -#endif - void puSetPasteBuffer ( const char *ch ) ; char *puGetPasteBuffer () ; Index: puMenuBar.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puMenuBar.cxx,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- puMenuBar.cxx 7 Feb 2003 17:01:03 -0000 1.20 +++ puMenuBar.cxx 16 Feb 2004 13:49:03 -0000 1.21 @@ -46,13 +46,13 @@ // If the parent floats in its own window, and the submenu drops off the window, // expand the window to fit. -#ifndef PU_NOT_USING_GLUT +#if 1 puGroup *parent = p -> getParent () ; if ( ( parent != parent -> getParent () ) && parent -> getFloating () ) // DEPRECATED! -- we need to replace this code. { int temp_window = puGetWindow () ; - glutSetWindow ( parent -> getWindow () ) ; + puSetWindow ( parent -> getWindow () ) ; puBox *par_box = parent -> getBBox () ; puBox *cur_box = p -> getBBox () ; @@ -62,12 +62,11 @@ int y_min = (cur_box->min[1] < 0) ? par_box->min[1] + cur_box->min[1] : par_box->min[1] ; int y_max = (par_box->max[1] > par_box->min[1] + cur_box->max[1]) ? par_box->max[1] : par_box->min[1] + cur_box->max[1] ; - int x_siz = glutGet ( (GLenum)GLUT_WINDOW_WIDTH ) ; - int y_siz = glutGet ( (GLenum)GLUT_WINDOW_HEIGHT ) ; + int x_siz, y_siz; + puGetWindowSize ( &x_siz, &y_siz ) ; if ( x_siz < (x_max - x_min) ) x_siz = x_max - x_min ; // Adjust the present size if ( y_siz < (y_max - y_min) ) y_siz = y_max - y_min ; - - glutReshapeWindow ( x_siz, y_siz ) ; + puSetWindowSize ( x_siz, y_siz ) ; x_min = par_box->min[0] - x_min ; y_min = y_siz - ( par_box->max[1] - par_box->min[1] ) ; @@ -77,7 +76,7 @@ if (parent -> getVStatus () == 1) parent -> setPosition ( x_min, y_min ) ; - glutSetWindow ( temp_window ) ; + puSetWindow ( temp_window ) ; } #endif } Index: pui.dsp =================================================================== RCS file: /cvsroot/plib/plib/src/pui/pui.dsp,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- pui.dsp 27 Sep 2002 23:53:53 -0000 1.24 +++ pui.dsp 16 Feb 2004 13:49:03 -0000 1.25 @@ -41,7 +41,7 @@ # PROP Intermediate_Dir "Release" # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c -# ADD CPP /nologo /MT /W3 /GX /Zi /O2 /I "..\fnt" /I "..\sg" /I "..\util" /I "../../../glut/include" /I "../../glut/include" /I ".." /I "../glut/include" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "GLUT_IS_PRESENT" /FD /c +# ADD CPP /nologo /MT /W3 /GX /Zi /O2 /I "..\fnt" /I "..\sg" /I "..\util" /I ".." /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "PU_USE_NONE" /FD /c # SUBTRACT CPP /YX # ADD BASE RSC /l 0x409 /d "NDEBUG" # ADD RSC /l 0x409 /d "NDEBUG" @@ -70,7 +70,7 @@ # PROP Intermediate_Dir "Debug" # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c -# ADD CPP /nologo /MTd /W3 /GX /Zi /Od /I "..\fnt" /I "..\sg" /I "..\util" /I "../../../glut/include" /I "../../glut/include" /I ".." /I "../glut/include" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "GLUT_IS_PRESENT" /FR /FD /GZ /c +# ADD CPP /nologo /MTd /W3 /GX /Zi /Od /I "..\fnt" /I "..\sg" /I "..\util" /I ".." /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "PU_USE_NONE" /FR /FD /GZ /c # SUBTRACT CPP /YX # ADD BASE RSC /l 0x409 /d "_DEBUG" # ADD RSC /l 0x409 /d "_DEBUG" @@ -102,6 +102,22 @@ # End Source File # Begin Source File +SOURCE=.\puGLUT.h +# End Source File +# Begin Source File + +SOURCE=.\puFLTK.h +# End Source File +# Begin Source File + +SOURCE=.\puSDL.h +# End Source File +# Begin Source File + +SOURCE=.\puNative.h +# End Source File +# Begin Source File + SOURCE=.\puArrowButton.cxx # End Source File # Begin Source File |
From: Steve B. <sj...@us...> - 2004-02-16 02:34:44
|
Update of /cvsroot/plib/plib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20530/plib Modified Files: configure.in Log Message: Added the 'PW' library. Added some functionality to the ssgAux screen dump facility so you can dump to an array in memory as an alternative to dumping it straight to disk. Index: configure.in =================================================================== RCS file: /cvsroot/plib/plib/configure.in,v retrieving revision 1.53 retrieving revision 1.54 diff -u -d -r1.53 -r1.54 --- configure.in 2 Feb 2004 01:35:15 -0000 1.53 +++ configure.in 16 Feb 2004 02:26:26 -0000 1.54 @@ -50,6 +50,10 @@ [ --enable-js build JS library default: yes],, enable_js=yes) +AC_ARG_ENABLE(pw, +[ --enable-pw build PW library default: yes],, +enable_pw=yes) + AC_ARG_ENABLE(net, [ --enable-net build NET library default: yes],, enable_net=yes) @@ -98,6 +102,13 @@ fi fi +if test "x$enable_pw" = "xyes"; then + if test "x$enable_ul" = "xno"; then + AC_MSG_WARN([cannot build PW library without UL library enabled]) + dependancy_problem=yes + fi +fi + if test "x$enable_js" = "xyes"; then if test "x$enable_ul" = "xno"; then AC_MSG_WARN([cannot build JS library without UL library enabled]) @@ -194,6 +205,7 @@ AM_CONDITIONAL(BUILD_FNT, test "x$enable_fnt" = "xyes") AM_CONDITIONAL(BUILD_JS, test "x$enable_js" = "xyes") +AM_CONDITIONAL(BUILD_PW, test "x$enable_pw" = "xyes") AM_CONDITIONAL(BUILD_NET, test "x$enable_net" = "xyes") AM_CONDITIONAL(BUILD_PUI, test "x$enable_pui" = "xyes") AM_CONDITIONAL(BUILD_SG, test "x$enable_sg" = "xyes") @@ -413,6 +425,7 @@ src/ssg/Makefile \ src/ssgAux/Makefile \ src/fnt/Makefile \ + src/pw/Makefile \ src/net/Makefile ) if test "x$need_glut" = "xyes"; then @@ -441,6 +454,7 @@ Building SL library: $enable_sl Building SSG library: $enable_ssg Building ssgAux library: $enable_ssgaux + Building PW library: $enable_pw Building UTIL library: $enable_ul Need GLUT: $glut_msg |
From: Steve B. <sj...@us...> - 2004-02-16 02:34:16
|
Update of /cvsroot/plib/plib/src/ssgAux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20530/plib/src/ssgAux Modified Files: ssgaScreenDump.cxx ssgaScreenDump.h Log Message: Added the 'PW' library. Added some functionality to the ssgAux screen dump facility so you can dump to an array in memory as an alternative to dumping it straight to disk. Index: ssgaScreenDump.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssgAux/ssgaScreenDump.cxx,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ssgaScreenDump.cxx 4 Jul 2003 13:50:56 -0000 1.2 +++ ssgaScreenDump.cxx 16 Feb 2004 02:26:28 -0000 1.3 @@ -48,7 +48,7 @@ } -void ssgaScreenDump ( char *filename, int xsize, int ysize ) +void ssgaScreenDump ( char *filename, int xsize, int ysize, int frontBuffer ) { FILE *fd = fopen ( filename, "wb" ) ; @@ -59,13 +59,8 @@ return ; } - unsigned char *buffer = new unsigned char [ xsize * ysize * 3 ] ; unsigned char *row = new unsigned char [ xsize ] ; - - glReadBuffer ( GL_FRONT ) ; - glReadPixels( 0, 0, xsize, ysize, GL_RGB, GL_UNSIGNED_BYTE, - (void *) buffer ) ; - glReadBuffer ( GL_BACK ) ; + unsigned char *buffer = ssgaScreenDump ( xsize, ysize, frontBuffer ) ; char type = 0 /* RGB_IMG_VERBATIM */ ; short dim = 3 ; @@ -113,3 +108,19 @@ } +unsigned char *ssgaScreenDump ( int xsize, int ysize, int frontBuffer ) +{ + unsigned char *buffer = new unsigned char [ xsize * ysize * 3 ] ; + + if ( frontBuffer ) + glReadBuffer ( GL_FRONT ) ; + + glReadPixels( 0, 0, xsize, ysize, GL_RGB, GL_UNSIGNED_BYTE, + (void *) buffer ) ; + if ( frontBuffer ) + glReadBuffer ( GL_BACK ) ; + + return buffer ; +} + + Index: ssgaScreenDump.h =================================================================== RCS file: /cvsroot/plib/plib/src/ssgAux/ssgaScreenDump.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ssgaScreenDump.h 27 Jun 2003 08:15:15 -0000 1.1 +++ ssgaScreenDump.h 16 Feb 2004 02:26:28 -0000 1.2 @@ -1,3 +1,14 @@ -void ssgaScreenDump ( char *filename, int width, int height ) ; +/* Dump to disk in '.rgb' format */ + +void ssgaScreenDump ( char *filename, + int width, int height, + int frontBuffer = TRUE ) ; + +/* Dump to a memory buffer - three bytes per pixel */ + +unsigned char *ssgaScreenDump ( int width, int height, + int frontBuffer = TRUE ) ; + + |
From: Steve B. <sj...@us...> - 2004-02-16 02:34:16
|
Update of /cvsroot/plib/plib/src/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20530/plib/src/util Modified Files: ul.h Log Message: Added the 'PW' library. Added some functionality to the ssgAux screen dump facility so you can dump to an array in memory as an alternative to dumping it straight to disk. Index: ul.h =================================================================== RCS file: /cvsroot/plib/plib/src/util/ul.h,v retrieving revision 1.61 retrieving revision 1.62 diff -u -d -r1.61 -r1.62 --- ul.h 4 Jul 2003 13:50:56 -0000 1.61 +++ ul.h 16 Feb 2004 02:26:29 -0000 1.62 @@ -95,40 +95,47 @@ #endif /* - Add specialised includes... + Add specialised includes/defines... */ #ifdef UL_WIN32 #include <windows.h> #include <mmsystem.h> #include <regstr.h> +#define UL_WGL 1 #endif #ifdef UL_CYGWIN #include <unistd.h> +#define UL_WGL 1 #endif #ifdef UL_BEOS #include <be/kernel/image.h> +#define UL_GLX 1 #endif #ifdef UL_MACINTOSH #include <CodeFragments.h> #include <unistd.h> +#define UL_AGL 1 #endif #ifdef UL_MAC_OSX #include <unistd.h> +#define UL_CGL 1 #endif #if defined(UL_LINUX) || defined(UL_BSD) || defined(UL_IRIX) || defined(UL_SOLARIS) #include <unistd.h> #include <dlfcn.h> #include <fcntl.h> +#define UL_GLX 1 #endif #if defined(UL_BSD) #include <sys/param.h> +#define UL_GLX 1 #endif #include <assert.h> |
From: Steve B. <sj...@us...> - 2004-02-16 02:34:15
|
Update of /cvsroot/plib/plib/src/pw In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20530/plib/src/pw Added Files: Makefile.am pw.cxx pw.h pwMacOSX.cxx pwWindows.cxx pwX11.cxx Log Message: Added the 'PW' library. Added some functionality to the ssgAux screen dump facility so you can dump to an array in memory as an alternative to dumping it straight to disk. --- NEW FILE: Makefile.am --- if BUILD_PW lib_LIBRARIES = libplibpw.a include_HEADERS = pw.h libplibpw_a_SOURCES = pw.cxx pwX11.cxx pwWindows.cxx pwMacOSX.cxx INCLUDES = -I$(top_srcdir)/src/util endif EXTRA_DIST = pw.dsp --- NEW FILE: pw.cxx --- #include "ul.h" #include "pw.h" /* This space intentionally left blank */ --- NEW FILE: pw.h --- #ifndef _PW_H_ #define _PW_H_ 1 typedef void pwResizeCB ( int w, int h ) ; typedef void pwExitCB () ; typedef void pwKeybdFunc ( int key, int updown, int x, int y ) ; typedef void pwMouseFunc ( int key, int updown, int x, int y ) ; typedef void pwMousePosFunc ( int x, int y ) ; void pwInit ( int multisample, int num_samples, pwKeybdFunc *kb, pwMouseFunc *ms, pwMousePosFunc *mp, pwResizeCB *rcb = NULL, pwExitCB *ecb = NULL ) ; void pwInit ( int x, int y, int w, int h, int multisample, char *title, int border, int num_samples, pwKeybdFunc *kb, pwMouseFunc *ms, pwMousePosFunc *mp, pwResizeCB *rcb = NULL, pwExitCB *ecb = NULL ) ; int pwGetModifiers () ; void pwSwapBuffers () ; void pwGetSize ( int *w, int *h ) ; void pwSetSizeOrigin ( int x, int y, int w, int h ) ; void pwSetSize ( int x, int y ) ; void pwSetOrigin ( int w, int h ) ; void pwSetCursor ( int c ) ; void pwCleanup () ; #define PW_CURSOR_NONE 0 #define PW_CURSOR_RIGHT 1 #define PW_CURSOR_LEFT 2 #define PW_CURSOR_QUERY 3 #define PW_CURSOR_AIM 4 #define PW_CURSOR_CIRCLE 5 #define PW_CURSOR_WAIT 6 #define PW_CURSOR_CROSS 7 #define PW_CURSOR_CUSTOM 8 /* WARNING: These have to be the same as PU_KEY_whatever. */ #define PW_KEY_SPECIAL_OFFSET 256 #define PW_KEY_F1 (1 + PW_KEY_SPECIAL_OFFSET) #define PW_KEY_F2 (2 + PW_KEY_SPECIAL_OFFSET) #define PW_KEY_F3 (3 + PW_KEY_SPECIAL_OFFSET) #define PW_KEY_F4 (4 + PW_KEY_SPECIAL_OFFSET) #define PW_KEY_F5 (5 + PW_KEY_SPECIAL_OFFSET) #define PW_KEY_F6 (6 + PW_KEY_SPECIAL_OFFSET) #define PW_KEY_F7 (7 + PW_KEY_SPECIAL_OFFSET) #define PW_KEY_F8 (8 + PW_KEY_SPECIAL_OFFSET) #define PW_KEY_F9 (9 + PW_KEY_SPECIAL_OFFSET) #define PW_KEY_F10 (10 + PW_KEY_SPECIAL_OFFSET) #define PW_KEY_F11 (11 + PW_KEY_SPECIAL_OFFSET) #define PW_KEY_F12 (12 + PW_KEY_SPECIAL_OFFSET) #define PW_KEY_LEFT (100+ PW_KEY_SPECIAL_OFFSET) #define PW_KEY_UP (101+ PW_KEY_SPECIAL_OFFSET) #define PW_KEY_RIGHT (102+ PW_KEY_SPECIAL_OFFSET) #define PW_KEY_DOWN (103+ PW_KEY_SPECIAL_OFFSET) #define PW_KEY_PAGE_UP (104+ PW_KEY_SPECIAL_OFFSET) #define PW_KEY_PAGE_DOWN (105+ PW_KEY_SPECIAL_OFFSET) #define PW_KEY_HOME (106+ PW_KEY_SPECIAL_OFFSET) #define PW_KEY_END (107+ PW_KEY_SPECIAL_OFFSET) #define PW_KEY_INSERT (108+ PW_KEY_SPECIAL_OFFSET) /* The three standard keyboard modifiers */ #define PW_SHIFT 1 #define PW_CTRL 2 #define PW_ALT 4 /* Whether a button has been pressed (DOWN) or released (UP) */ #define PW_DOWN 0 #define PW_UP 1 /* Mouse Buttons */ #define PW_LEFT_BUTTON 0 #define PW_MIDDLE_BUTTON 1 #define PW_RIGHT_BUTTON 2 #endif --- NEW FILE: pwMacOSX.cxx --- #include "ul.h" /* ONLY COMPILE THIS FILE FOR MAC-OS/X SYSTEMS */ #ifdef UL_MAC_OSX #include "pw.h" void defaultExitFunc () { pwCleanup () ; exit ( 0 ) ; } void pwInit ( int multisample, int num_samples, pwKeybdFunc *kb, pwMouseFunc *ms, pwMousePosFunc *mp, pwResizeCB *rcb, pwExitCB *ecb ) { /* Open a full-screen window here please. */ fprintf ( stderr, "PW: ***** NOT IMPLEMENTED FOR OS-X YET!! *****\n" ) ; } void pwInit ( int x, int y, int w, int h, int multisample, char *title, int border, int num_samples, pwKeybdFunc *kb, pwMouseFunc *ms, pwMousePosFunc *mp, pwResizeCB *rcb, pwExitCB *ecb ) { /* Open a regular window here please. */ fprintf ( stderr, "PW: ***** NOT IMPLEMENTED FOR OS-X YET!! *****\n" ) ; } void pwGetSize ( int *w, int *h ) { } void pwSetCursor ( int c ) { } void pwSetSize ( int w, int h ) { } void pwSetOrigin ( int x, int y ) { } void pwSetSizeOrigin ( int x, int y, int w, int h ) { } void pwSwapBuffers () { } void pwCleanup () { } #endif --- NEW FILE: pwWindows.cxx --- #include "ul.h" /* ONLY COMPILE THIS FILE FOR MS-WINDOWS SYSTEMS */ #ifdef UL_WIN32 #include "pw.h" void defaultExitFunc () { pwCleanup () ; exit ( 0 ) ; } void pwInit ( int multisample, int num_samples, pwKeybdFunc *kb, pwMouseFunc *ms, pwMousePosFunc *mp, pwResizeCB *rcb, pwExitCB *ecb ) { /* Open a full-screen window here please. */ fprintf ( stderr, "PW: ***** NOT IMPLEMENTED FOR MS-WINDOWS YET!! *****\n" ) ; } void pwInit ( int x, int y, int w, int h, int multisample, char *title, int border, int num_samples, pwKeybdFunc *kb, pwMouseFunc *ms, pwMousePosFunc *mp, pwResizeCB *rcb, pwExitCB *ecb ) { /* Open a regular window here please. */ fprintf ( stderr, "PW: ***** NOT IMPLEMENTED FOR MS-WINDOWS YET!! *****\n" ) ; } void pwGetSize ( int *w, int *h ) { } void pwSetCursor ( int c ) { } void pwSetSize ( int w, int h ) { } void pwSetOrigin ( int x, int y ) { } void pwSetSizeOrigin ( int x, int y, int w, int h ) { } void pwSwapBuffers () { } void pwCleanup () { } #endif --- NEW FILE: pwX11.cxx --- #include "ul.h" /* ONLY COMPILE THIS FILE FOR GLX/X11 EQUIPPED SYSTEMS */ #ifdef UL_GLX #include "pw.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <assert.h> extern "C" { #include <X11/Xlib.h> #include <X11/Xatom.h> #include <X11/keysym.h> [...548 lines suppressed...] #ifdef NEED_GAMMA void pwSetGamma ( float g ) { XF86VidModeGamma gamma ; gamma.red = gamma.green = gamma.blue = g ; XF86VidModeSetGamma ( currDisplay, currScreen, & gamma ) ; } #endif void pwCleanup () { glXDestroyContext ( currDisplay, currContext ) ; XDestroyWindow ( currDisplay, currHandle ) ; XFlush ( currDisplay ) ; } #endif |
From: Steve B. <sj...@us...> - 2004-02-16 02:34:15
|
Update of /cvsroot/plib/plib/src/pui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20530/plib/src/pui Modified Files: pu.cxx pu.h Log Message: Added the 'PW' library. Added some functionality to the ssgAux screen dump facility so you can dump to an array in memory as an alternative to dumping it straight to disk. Index: pu.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/pu.cxx,v retrieving revision 1.64 retrieving revision 1.65 diff -u -d -r1.64 -r1.65 --- pu.cxx 7 Feb 2003 15:02:49 -0000 1.64 +++ pu.cxx 16 Feb 2004 02:26:28 -0000 1.65 @@ -37,55 +37,21 @@ static int puWindowWidth = 400 ; static int puWindowHeight = 400 ; +static int openGLSize = 0 ; -static int openGLSize = 0 ; +void puSetResizeMode ( int mode ) { openGLSize = mode ; } -#ifdef PU_NOT_USING_GLUT -int puGetWindow ( void ) { return 0 ; } [...139 lines suppressed...] + +int puGetWindowHeight ( void ) +{ + if ( openGLSize ) + return puWindowHeight ; + + return glutGet ( (GLenum) GLUT_WINDOW_HEIGHT ) ; +} + + +int puGetWindowWidth ( void ) +{ + if ( openGLSize ) + return puWindowWidth ; + + return glutGet ( (GLenum) GLUT_WINDOW_WIDTH ) ; +} + +#endif + Index: pu.h =================================================================== RCS file: /cvsroot/plib/plib/src/pui/pu.h,v retrieving revision 1.141 retrieving revision 1.142 diff -u -d -r1.141 -r1.142 --- pu.h 12 Jul 2003 00:45:58 -0000 1.141 +++ pu.h 16 Feb 2004 02:26:28 -0000 1.142 @@ -108,6 +108,11 @@ #define PU_DRAG 255 #define PU_CONTINUAL PU_DRAG +/* + WARNING: These have to be the same as PW_KEY_whatever and also + the same as (GLUT_KEY_whatever+256) +*/ + #define PU_KEY_GLUT_SPECIAL_OFFSET 256 #define PU_KEY_F1 (1 + PU_KEY_GLUT_SPECIAL_OFFSET) @@ -349,6 +354,7 @@ void puDisplay ( int window_number ) ; /* Deprecated */ int puMouse ( int button, int updown, int x, int y ) ; int puMouse ( int x, int y ) ; +int puKeyboard ( int key, int updown, int x, int y ) ; /* For PW */ int puKeyboard ( int key, int updown ) ; void puHideCursor ( void ) ; void puShowCursor ( void ) ; |
From: Steve B. <sj...@us...> - 2004-02-16 02:34:13
|
Update of /cvsroot/plib/plib/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20530/plib/doc Modified Files: index.html Log Message: Added the 'PW' library. Added some functionality to the ssgAux screen dump facility so you can dump to an array in memory as an alternative to dumping it straight to disk. Index: index.html =================================================================== RCS file: /cvsroot/plib/plib/doc/index.html,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- index.html 5 Sep 2002 06:14:56 -0000 1.28 +++ index.html 16 Feb 2004 02:26:26 -0000 1.29 @@ -59,6 +59,7 @@ <A HREF="js/index.html"><IMG SRC="JS.png" ALT="JS" BORDER="0" width=75 height=25></A> <A HREF="net/index.html"><IMG SRC="NET.png" ALT="NET" BORDER="0" width=75 height=25></A><br> <A HREF="sl/index.html"><IMG SRC="SL.png" ALT="SL" BORDER="0" width=75 height=25></A> +<A HREF="pw/index.html"><IMG SRC="PW.png" ALT="PW" BORDER="0" width=75 height=25></A> <br> </TD> <TD> @@ -75,8 +76,9 @@ rendering, a GUI, networking, 3D math library and a collection of handy utility functions. All are 100% portable across nearly all modern computing platforms. What's more, it's -all available on line - and completely free. - +all available on line - and completely free. Each library component +is fairly independent of the others - so if you want to use SDL, +GTK, GLUT, or FLTK instead of PLIB's 'PW' windowing library, you can. <p> The latest stable version of PLIB is 1.6.0 - go to the <A HREF="download.html">DOWNLOAD</A> section to get a |
From: Steve B. <sj...@us...> - 2004-02-16 02:34:13
|
Update of /cvsroot/plib/plib/examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20530/plib/examples Modified Files: configure.in Log Message: Added the 'PW' library. Added some functionality to the ssgAux screen dump facility so you can dump to an array in memory as an alternative to dumping it straight to disk. Index: configure.in =================================================================== RCS file: /cvsroot/plib/plib/examples/configure.in,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- configure.in 30 Nov 2003 21:03:23 -0000 1.36 +++ configure.in 16 Feb 2004 02:26:27 -0000 1.37 @@ -31,6 +31,10 @@ [ --enable-js build JS examples default: yes],, enable_js=yes) +AC_ARG_ENABLE(pw, +[ --enable-pw build PW examples default: yes],, +enable_pw=yes) + AC_ARG_ENABLE(net, [ --enable-net build NET examples default: yes],, enable_net=yes) @@ -68,6 +72,7 @@ AM_CONDITIONAL(BUILD_FNT, test "x$enable_fnt" = "xyes") AM_CONDITIONAL(BUILD_JS, test "x$enable_js" = "xyes") +AM_CONDITIONAL(BUILD_PW, test "x$enable_pw" = "xyes") AM_CONDITIONAL(BUILD_NET, test "x$enable_net" = "xyes") AM_CONDITIONAL(BUILD_PUI, test "x$enable_pui" = "xyes") AM_CONDITIONAL(BUILD_SG, test "x$enable_sg" = "xyes") @@ -253,6 +258,7 @@ Makefile \ src/Makefile \ src/js/Makefile \ + src/pw/Makefile \ src/pui/Makefile \ src/sg/Makefile \ src/sl/Makefile \ @@ -290,6 +296,7 @@ Building FNT examples: $enable_fnt Building JS examples: $enable_js + Building PW examples: $enable_pw Building NET examples: $enable_net Building PUI examples: $enable_pui Building SG examples: $enable_sg |
From: Steve B. <sj...@us...> - 2004-02-16 02:34:13
|
Update of /cvsroot/plib/plib/examples/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20530/plib/examples/src Modified Files: Makefile.am Log Message: Added the 'PW' library. Added some functionality to the ssgAux screen dump facility so you can dump to an array in memory as an alternative to dumping it straight to disk. Index: Makefile.am =================================================================== RCS file: /cvsroot/plib/plib/examples/src/Makefile.am,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Makefile.am 5 Sep 2002 06:35:24 -0000 1.4 +++ Makefile.am 16 Feb 2004 02:26:27 -0000 1.5 @@ -1,3 +1,3 @@ -SUBDIRS = js pui sl sg ssg fnt net util psl +SUBDIRS = js pui sl sg ssg fnt net util psl pw |
From: Steve B. <sj...@us...> - 2004-02-16 02:34:13
|
Update of /cvsroot/plib/plib/doc/pw In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20530/plib/doc/pw Added Files: index.html Log Message: Added the 'PW' library. Added some functionality to the ssgAux screen dump facility so you can dump to an array in memory as an alternative to dumping it straight to disk. --- NEW FILE: index.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <META name="keywords" content="PW, PLIB, OpenGL, window, library, portable, interface, games, Baker, Steve, pwInit"> <META name="description" content="The PLIB minimal Windowing Library (PW) is a portable interface that makes it as simple as possible to make an OpenGL application that can open a single window and read the mouse and keyboard. It is a wrapper to make the various underlying OS mechanisms look the same to application code."> <TITLE>A PLIB Windowing Library.</TITLE> </HEAD> <BODY text="#B5A642" link="#8FFF8F" vlink="#18A515" alink="#20336B" bgcolor="#005000" background="../marble.png"> <TABLE> <TR> <TD> <H1>A PLIB Windowing Library.</H1> </TD> </TR> <TR> <TD> [...142 lines suppressed...] PW_CURSOR_NONE 0 PW_CURSOR_RIGHT 1 PW_CURSOR_LEFT 2 PW_CURSOR_QUERY 3 PW_CURSOR_AIM 4 PW_CURSOR_CIRCLE 5 PW_CURSOR_WAIT 6 PW_CURSOR_CROSS 7 PW_CURSOR_CUSTOM 8 </pre> <ADDRESS> <A HREF="http://www.sjbaker.org"> Steve J. Baker.</A> <<A HREF="mailto:sjb...@ai...">sjb...@ai...</A>> </ADDRESS> </table> </BODY> </HTML> |