<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,11 +1,13 @@
 Changelog for Photon
-$Id: CHANGELOG.txt,v 1.13 2005/11/13 07:59:48 cozman Exp $
+$Id: CHANGELOG.txt,v 1.14 2005/11/15 02:59:08 cozman Exp $
 
 ! : Major Changes   (potentially breaking existing code)
 + : New Features   
 * : Minor Changes   (bugfixes and behind-the-scenes changes)
 
 0.1.0
+    ! Changed createDisplay to use an enum to set fullscreen/windowed mode.
+    * Added first official tutorial.
     * Major documentation sweep, much more useful for casual users. Also fixed 
         tons of documentation mismatches.
     * Fixed bug where app would hang if run() was called with no active state or</diff>
      <filename>CHANGELOG.txt</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 #  James Turk (jpt2433@rit.edu)
 #
 # Version:
-#  $Id: SConstruct,v 1.24 2005/11/13 07:59:48 cozman Exp $
+#  $Id: SConstruct,v 1.25 2005/11/15 02:59:08 cozman Exp $
 
 import os,os.path
 import glob
@@ -96,7 +96,7 @@ env.Default(LIBRARY)
 
 # Documentation
 ndoc = env.Command('docs/index.html', './include',
-    &quot;&quot;&quot;NaturalDocs -nag -i $SOURCES -i ndoc/pages -o HTML ./docs -p ./ndoc&quot;&quot;&quot;)
+    &quot;&quot;&quot;NaturalDocs -nag -i $SOURCES -i ndoc/pages -i ndoc/tutorials -o HTML ./docs -p ./ndoc&quot;&quot;&quot;)
 env.Alias(&quot;docs&quot;,ndoc)
 env.AlwaysBuild(ndoc)
 
@@ -112,9 +112,3 @@ for test_src in test_srcs:
                             'physfs','corona','freetype']))
 env.Alias('tests',tests)
 
-# Visual C++ Projects
-#if(os.name == 'nt'):
-#    msvc = env.MSVSProject(target = 'msvc/photon' + env['MSVSPROJECTSUFFIX'],
-#        srcs = getFilesMulti(SRC_DIRS, '*.cpp'), incs = INC_FILES,
-#        buildtarget = lib, variant = 'Release')
-#    env.Alias('msvc',msvc)</diff>
      <filename>SConstruct</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 //  James Turk (jpt2433@rit.edu)
 //
 // Version:
-//  $Id: Application.hpp,v 1.23 2005/11/13 07:59:48 cozman Exp $
+//  $Id: Application.hpp,v 1.24 2005/11/15 02:59:08 cozman Exp $
 
 #ifndef PHOTON_APPLICATION_HPP
 #define PHOTON_APPLICATION_HPP
@@ -105,12 +105,13 @@ public:
     //  alphaBits   - desired bits per pixel for alpha value
     //  depthBits   - desired bitdepth of depth buffer
     //  stencilBits - desired bitdepth of stencil buffer
-    //  fullscreen  - true: fullscreen, false: windowed
+    //  fullscreen  - &lt;DisplayMode&gt;, DISP_FULLSCREEN or DISP_WINDOWED
     //  [title      - title of application, optional]
     void createDisplay(uint width, uint height,
                         uint redBits, uint greenBits, uint blueBits,
                         uint alphaBits, uint depthBits, uint stencilBits,
-                        bool fullscreen, const std::string&amp; title=&quot;Photon App&quot;);
+                        DisplayMode mode, 
+                        const std::string&amp; title=&quot;Photon App&quot;);
 
     // Function: createDisplay
     //  This function attempts to create a display with the given parameters.
@@ -123,10 +124,10 @@ public:
     //  bpp         - desired bits per pixel (aka bitdepth) of display
     //  depthBits   - desired bitdepth of depth buffer
     //  stencilBits - desired bitdepth of stencil buffer
-    //  fullscreen  - true: fullscreen, false: windowed
+    //  fullscreen  - &lt;DisplayMode&gt;, DISP_FULLSCREEN or DISP_WINDOWED
     //  [title       - title of application, optional]
     void createDisplay(uint width, uint height, uint bpp,
-                        uint depthBits, uint stencilBits, bool fullscreen,
+                        uint depthBits, uint stencilBits, DisplayMode mode, 
                         const std::string&amp; title=&quot;Photon App&quot;);
                         
     // Function: setTitle</diff>
      <filename>include/Application.hpp</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 //  James Turk (jpt2433@rit.edu)
 //
 // Version:
-//  $Id: entrypoint.hpp,v 1.10 2005/08/16 06:32:39 cozman Exp $
+//  $Id: entrypoint.hpp,v 1.11 2005/11/15 02:59:08 cozman Exp $
 
 
 #ifndef PHOTON_ENTRYPOINT_HPP
@@ -33,7 +33,7 @@
 //     Application&amp; app(Application::getInstance);
 //
 //     // create window
-//     app.createDisplay(800,600,32,0,0,false);
+//     app.createDisplay(800,600,32,0,0,DISP_WINDOWED);
 // 
 //     // set current state
 //     app.setState&lt;MainMenu&gt;();</diff>
      <filename>include/entrypoint.hpp</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 //  James Turk (jpt2433@rit.edu)
 //
 // Version:
-//  $Id: types.hpp,v 1.9 2005/11/13 07:59:48 cozman Exp $
+//  $Id: types.hpp,v 1.10 2005/11/15 02:59:08 cozman Exp $
 
 #ifndef PHOTON_TYPES_HPP
 #define PHOTON_TYPES_HPP
@@ -330,6 +330,16 @@ enum ScrollDir
     SCROLL_UP, SCROLL_DOWN
 };
 
+// Enum: DisplayMode
+// Enumeration defining types of displays.
+//
+//  DISP_WINDOWED   - Windowed Mode
+//  DISP_FULLSCREEN - Fullscreen Mode
+enum DisplayMode
+{
+    DISP_WINDOWED, DISP_FULLSCREEN
+};
+
 }
 
 #endif  //PHOTON_TYPES_HPP</diff>
      <filename>include/types.hpp</filename>
    </modified>
    <modified>
      <diff>@@ -43,7 +43,7 @@ int PhotonMain(const StrVec&amp; args)
 {
     Application&amp; app(Application::getInstance());
     
-    app.createDisplay(800,600,32,0,0,false);
+    app.createDisplay(800,600,32,0,0,DISP_WINDOWED);
 
     app.setState&lt;SomeState&gt;();
     app.run();
@@ -102,7 +102,7 @@ the following two pieces of code produce identical results:
 
 (code)
 // Sample 1 : Too Much Typing :(
-Application::getInstance().createDisplay(800,600,32,0,0,true);
+Application::getInstance().createDisplay(800,600,32,0,0,DISP_FULLSCREEN);
 Application::getInstance().setState&lt;SomeState&gt;();
 Application::getInstance().run();
 (end)
@@ -111,7 +111,7 @@ Application::getInstance().run();
 (code)
 // Sample 2 : Preferred
 Application&amp; app(Application::getInstance());
-app.createDisplay(800,600,32,0,0,true);
+app.createDisplay(800,600,32,0,0,DISP_FULLSCREEN);
 app.setState&lt;SomeState&gt;();
 app.run();
 (end)
@@ -119,7 +119,7 @@ app.run();
 &lt;Application&gt; is a fairly important class, it provides the means for managing
 the display, input, timer, task and state system.  For simple 2D applications
 the only thing that needs to be done to configure the display is a single call
-to &lt;Application::createDisplay&gt; (width, height, depth, 0, 0, fullscreen, title).
+to &lt;Application::createDisplay&gt; (width, height, depth, 0, 0, displayMode, title).
 The input, timing, and task systems will be addressed in future tutorials, or
 check them out in &lt;Application's&gt; docs.  What about the state system?  Well that
 brings us to our next topic...
@@ -199,7 +199,7 @@ int PhotonMain(const StrVec&amp; args)
     Application&amp; app(Application::getInstance());
     
     // create the display, in this case a 800x600 window with 32 bit depth
-    app.createDisplay(800,600,32,0,0,false);
+    app.createDisplay(800,600,32,0,0,DISP_WINDOWED);
 
     // set the application state to SomeState (a State-derived class)
     app.setState&lt;SomeState&gt;();
@@ -256,4 +256,4 @@ if you need specific help try asking for help on the Photon mailing lists
 (&lt;http://lists.sourceforge.net/lists/listinfo/photon-users&gt;).
 
 Written for Photon 0.1.0 by James:
-     $Id: tutorial01.txt,v 1.2 2005/11/14 20:14:18 cozman Exp $
+     $Id: tutorial01.txt,v 1.3 2005/11/15 02:59:08 cozman Exp $</diff>
      <filename>ndoc/tutorials/tutorial01.txt</filename>
    </modified>
    <modified>
      <diff>@@ -8,9 +8,6 @@
 &lt;node CREATED=&quot;1129352407402&quot; ID=&quot;_Freemind_Link_115594103&quot; MODIFIED=&quot;1130559303873&quot; TEXT=&quot;0.1.0&quot; VSHIFT=&quot;-14&quot;&gt;
 &lt;font BOLD=&quot;true&quot; NAME=&quot;SansSerif&quot; SIZE=&quot;12&quot;/&gt;
 &lt;node CREATED=&quot;1129352407404&quot; ID=&quot;_Freemind_Link_1084322991&quot; MODIFIED=&quot;1129352407404&quot; TEXT=&quot;Publicity&quot;&gt;
-&lt;node CREATED=&quot;1129352407404&quot; ID=&quot;_Freemind_Link_482028560&quot; MODIFIED=&quot;1129352407404&quot; TEXT=&quot;Tutorials&quot;&gt;
-&lt;node CREATED=&quot;1130465655991&quot; ID=&quot;Freemind_Link_1572314923&quot; MODIFIED=&quot;1130465660152&quot; TEXT=&quot;NDocTorials&quot;/&gt;
-&lt;/node&gt;
 &lt;node CREATED=&quot;1129352407404&quot; ID=&quot;_Freemind_Link_1870184326&quot; MODIFIED=&quot;1129352407404&quot; TEXT=&quot;example game&quot;&gt;
 &lt;node CREATED=&quot;1130471560606&quot; ID=&quot;Freemind_Link_613629773&quot; MODIFIED=&quot;1130471562533&quot; TEXT=&quot;tank game&quot;/&gt;
 &lt;/node&gt;
@@ -60,7 +57,7 @@
 &lt;/node&gt;
 &lt;/node&gt;
 &lt;/node&gt;
-&lt;node COLOR=&quot;#147f1e&quot; CREATED=&quot;1129352407415&quot; ID=&quot;_Freemind_Link_438641521&quot; MODIFIED=&quot;1129352407415&quot; POSITION=&quot;left&quot; TEXT=&quot;Version: $Id: photon.mm,v 1.31 2005/11/13 07:59:48 cozman Exp $&quot;&gt;
+&lt;node COLOR=&quot;#147f1e&quot; CREATED=&quot;1129352407415&quot; ID=&quot;_Freemind_Link_438641521&quot; MODIFIED=&quot;1129352407415&quot; POSITION=&quot;left&quot; TEXT=&quot;Version: $Id: photon.mm,v 1.32 2005/11/15 02:59:08 cozman Exp $&quot;&gt;
 &lt;font ITALIC=&quot;true&quot; NAME=&quot;SansSerif&quot; SIZE=&quot;12&quot;/&gt;
 &lt;/node&gt;
 &lt;node CREATED=&quot;1129352407415&quot; ID=&quot;_Freemind_Link_853483912&quot; MODIFIED=&quot;1129352407415&quot; POSITION=&quot;left&quot; TEXT=&quot;Current Problems&quot;&gt;</diff>
      <filename>photon.mm</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 //  James Turk (jpt2433@rit.edu)
 //
 // Version:
-//  $Id: Application.cpp,v 1.30 2005/10/28 22:12:44 cozman Exp $
+//  $Id: Application.cpp,v 1.31 2005/11/15 02:59:08 cozman Exp $
 
 #include &quot;Application.hpp&quot;
 
@@ -185,12 +185,12 @@ bool Application::isActive()
 void Application::createDisplay(uint width, uint height,
                             uint redBits, uint greenBits, uint blueBits,
                             uint alphaBits, uint depthBits, uint stencilBits,
-                            bool fullscreen, const std::string &amp;title)
+                            DisplayMode mode, const std::string &amp;title)
 {
     GLboolean status;
-    status = glfwOpenWindow(width, height, redBits, greenBits,
-                            blueBits, alphaBits, depthBits, stencilBits,
-                            fullscreen ? GLFW_FULLSCREEN : GLFW_WINDOW);
+    status = glfwOpenWindow(width, height, redBits, greenBits, blueBits, 
+                    alphaBits, depthBits, stencilBits,
+                    mode == DISP_FULLSCREEN ? GLFW_FULLSCREEN : GLFW_WINDOW);
     if(status == GL_FALSE)
     {
         throw APIError(&quot;Failed to create display.&quot;);
@@ -216,7 +216,7 @@ void Application::createDisplay(uint width, uint height,
 }
 
 void Application::createDisplay(uint width, uint height, uint bpp,
-                            uint depthBits, uint stencilBits, bool fullscreen,
+                            uint depthBits, uint stencilBits, DisplayMode mode,
                             const std::string &amp;title)
 {
     // call main version of createDisplay with individual values for rgba bits
@@ -224,19 +224,19 @@ void Application::createDisplay(uint width, uint height, uint bpp,
     {
         case 8:
             createDisplay(width, height, 3, 3, 2, 0, depthBits, stencilBits,
-                            fullscreen, title);
+                            mode, title);
             break;
         case 16:
             createDisplay(width, height, 5, 6, 5, 0, depthBits, stencilBits,
-                            fullscreen, title);
+                            mode, title);
             break;
         case 24:
             createDisplay(width, height, 8, 8, 8, 0, depthBits, stencilBits,
-                            fullscreen, title);
+                            mode, title);
             break;
         case 32:
             createDisplay(width, height, 8, 8, 8, 8, depthBits, stencilBits,
-                            fullscreen, title);
+                            mode, title);
             break;
         default:
             throw ArgumentException(&quot;bpp argument of createDisplay must be &quot;</diff>
      <filename>src/Application.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 //  James Turk (jpt2433@rit.edu)
 //
 // Version:
-//  $Id: Audio_test.cpp,v 1.17 2005/08/18 05:59:56 cozman Exp $
+//  $Id: Audio_test.cpp,v 1.18 2005/11/15 02:59:08 cozman Exp $
 
 #include &quot;photon.hpp&quot;
 using namespace photon;
@@ -186,7 +186,7 @@ int PhotonMain(const StrVec&amp; args)
 {
     Application&amp; app(Application::getInstance());
     
-    app.createDisplay(800,600,32,0,0,false);    // create window
+    app.createDisplay(800,600,32,0,0,DISP_WINDOWED);    // create window
     app.initAudioCore();                        // initialize audio core
 
     // be sure to add FPSDisplayTask</diff>
      <filename>test/Audio_test.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 //  James Turk (jpt2433@rit.edu)
 //
 // Version:
-//  $Id: Font_test.cpp,v 1.13 2005/08/17 06:35:56 cozman Exp $
+//  $Id: Font_test.cpp,v 1.14 2005/11/15 02:59:08 cozman Exp $
 
 #include &quot;photon.hpp&quot;
 using namespace photon;
@@ -51,7 +51,7 @@ int PhotonMain(const StrVec&amp; args)
 {
     Application&amp; app(Application::getInstance());
     
-    app.createDisplay(800,600,32,0,0,false);    // create window
+    app.createDisplay(800,600,32,0,0,DISP_WINDOWED);    // create window
 
     // be sure to add FPSDisplayTask
     //TaskManager::getInstance().addTask(util::TaskPtr(new FPSDisplayTask()));</diff>
      <filename>test/Font_test.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 //  James Turk (jpt2433@rit.edu)
 //
 // Version:
-//  $Id: Image_test.cpp,v 1.13 2005/08/17 06:35:56 cozman Exp $
+//  $Id: Image_test.cpp,v 1.14 2005/11/15 02:59:08 cozman Exp $
 
 #include &quot;photon.hpp&quot;
 using namespace photon;
@@ -62,7 +62,7 @@ int PhotonMain(const StrVec&amp; args)
 {
     Application&amp; app(Application::getInstance());
     
-    app.createDisplay(800,600,32,0,0,false);    // create window
+    app.createDisplay(800,600,32,0,0,DISP_WINDOWED);    // create window
 
     // be sure to add FPSDisplayTask
     app.getUpdateTaskManager().addTask(util::TaskPtr(new FPSDisplayTask()));</diff>
      <filename>test/Image_test.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 //  James Turk (jpt2433@rit.edu)
 //
 // Version:
-//  $Id: Input_test.cpp,v 1.12 2005/08/17 06:35:56 cozman Exp $
+//  $Id: Input_test.cpp,v 1.13 2005/11/15 02:59:08 cozman Exp $
 
 #include &quot;photon.hpp&quot;
 using namespace photon;
@@ -121,7 +121,7 @@ int PhotonMain(const StrVec&amp; args)
 {
     Application&amp; app(Application::getInstance());
     
-    app.createDisplay(800,600,32,0,0,false);    // create window
+    app.createDisplay(800,600,32,0,0,DISP_WINDOWED);    // create window
 
     // be sure to add FPSDisplayTask
     app.getUpdateTaskManager().addTask(util::TaskPtr(new FPSDisplayTask()));</diff>
      <filename>test/Input_test.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 //  James Turk (jpt2433@rit.edu)
 //
 // Version:
-//  $Id: Pen_test.cpp,v 1.10 2005/08/17 06:35:56 cozman Exp $
+//  $Id: Pen_test.cpp,v 1.11 2005/11/15 02:59:08 cozman Exp $
 
 #include &quot;photon.hpp&quot;
 using namespace photon;
@@ -75,7 +75,7 @@ int PhotonMain(const StrVec&amp; args)
 {
     Application&amp; app(Application::getInstance());
     
-    app.createDisplay(800,600,32,0,0,false);    // create window
+    app.createDisplay(800,600,32,0,0,DISP_WINDOWED);    // create window
 
     // be sure to add FPSDisplayTask
     app.getUpdateTaskManager().addTask(util::TaskPtr(new FPSDisplayTask()));</diff>
      <filename>test/Pen_test.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 //  James Turk (jpt2433@rit.edu)
 //
 // Version:
-//  $Id: State_test.cpp,v 1.4 2005/08/16 06:32:39 cozman Exp $
+//  $Id: State_test.cpp,v 1.5 2005/11/15 02:59:08 cozman Exp $
 
 #include &quot;photon.hpp&quot;
 using namespace photon;
@@ -314,7 +314,7 @@ int PhotonMain(const StrVec&amp; args)
 {
     Application&amp; app(Application::getInstance());
     
-    app.createDisplay(800,600,32,0,0,false);    // create window
+    app.createDisplay(800,600,32,0,0,DISP_WINDOWED);    // create window
     app.setFixedUpdateStep(true, .01);
 
     // add archives to search path</diff>
      <filename>test/State_test.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 //  James Turk (jpt2433@rit.edu)
 //
 // Version:
-//  $Id: Texture_test.cpp,v 1.11 2005/08/17 06:35:56 cozman Exp $
+//  $Id: Texture_test.cpp,v 1.12 2005/11/15 02:59:08 cozman Exp $
 
 #include &quot;photon.hpp&quot;
 using namespace photon;
@@ -75,7 +75,7 @@ int PhotonMain(const StrVec&amp; args)
 {
     Application&amp; app(Application::getInstance());
     
-    app.createDisplay(800,600,32,0,0,false);    // create window
+    app.createDisplay(800,600,32,0,0,DISP_WINDOWED);    // create window
 
     // be sure to add FPSDisplayTask
     app.getUpdateTaskManager().addTask(util::TaskPtr(new FPSDisplayTask()));</diff>
      <filename>test/Texture_test.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ea8ba7d458d7b12659b5d071813f332d5a167c3f</id>
    </parent>
  </parents>
  <author>
    <name>James Turk</name>
    <email>james.p.turk@gmail.com</email>
  </author>
  <url>http://github.com/jamesturk/photon/commit/4fb8e96267a65750f746796a4e7bd6dec0ca9da5</url>
  <id>4fb8e96267a65750f746796a4e7bd6dec0ca9da5</id>
  <committed-date>2005-11-14T18:59:08-08:00</committed-date>
  <authored-date>2005-11-14T18:59:08-08:00</authored-date>
  <message>windowed/fullscreen fix</message>
  <tree>92b7fa40b374501910bdcc223f1fa90977339baf</tree>
  <committer>
    <name>James Turk</name>
    <email>james.p.turk@gmail.com</email>
  </committer>
</commit>
