[Plib-cvs] plib/src/pw pw.dsp,NONE,1.1 pwWindows.cxx,1.1,1.2
Brought to you by:
sjbaker
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 ) ; } |