<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -27,6 +27,9 @@ import derelict.sdl.sdl;
 import derelict.opengl.gl;
 import derelict.opengl.glu;
 
+import tango.stdc.stringz;
+
+
 final class Scene
 {
 	// This is the constructor, and is charged with loading the engine.
@@ -63,20 +66,20 @@ final class Scene
 		}
 	}
 	
-	void setup(char[] title)
+	static void setup(char[] title)
 	{
 		SDL_WM_SetCaption( toStringz(title), null );
 		running = true;
 	}
 	
-	bool isRunning()
+	static bool isRunning()
 	{
 		return running;
 	}
 	
-	private bool running;
+	private static bool running = false;
 	
-	void processEvents()
+	static void processEvents()
 	{
 		SDL_Event event;
 		// get all events
@@ -93,13 +96,18 @@ final class Scene
 				case SDL_VIDEORESIZE:
 					// the window has been resized so we need to set up our viewport and projection according to 
 					// the new size
-					windowResize(event.resize.w, event.resize.h);
+					Render.sceneSize(event.resize.w, event.resize.h);
 					break;
 				default:
 					break;
 			}
 		}
 	}
+
+	private static char[] getSDLError()
+	{
+		return fromStringz(SDL_GetError());
+	}
 }
 
 
@@ -118,11 +126,11 @@ debug (scene)
 	unittest
 	{
 		Scene.setup(&quot;My Game&quot;);
-		Render.setup(640,480,bpp32,DOUBLEBUFFER);
+		Render.setup(640,480,BitDepth.bpp32);
 		
-		while(isRunning)
+		while(Scene.isRunning)
 		{
-			processEvents();
+			Scene.processEvents();
 		}
 	}
 } </diff>
      <filename>fgsfds/Scene.d</filename>
    </modified>
    <modified>
      <diff>@@ -24,7 +24,7 @@ import derelict.sdl.sdl;
 import derelict.opengl.gl;
 import derelict.opengl.glu;
 
-enum ScreenFlags : uint
+enum : uint
 {
 	FULLSCREEN = SDL_FULLSCREEN,
 	RESIZABLE = SDL_RESIZABLE,
@@ -58,7 +58,7 @@ final class Render
 			DerelictSDL.load();
 	}
 
-	static void setup(int width, int height, BitDepth bitPerPixel = 32, ScreenFlags flags)
+	static void setup(int width, int height, BitDepth bitPerPixel, uint flags = 0)
 	{
 		// Set our opengl attributes
 		ushort[] bpp = bppToArray(bitPerPixel);
@@ -77,9 +77,11 @@ final class Render
 		}
 		
 		sceneSize(width, height);
+
+		active = true;
 	}
 
-	private static void sceneSize(int width, int height)
+	static void sceneSize(int width, int height)
 	{
 		if(height &lt;= 0)
 			height = 1;
@@ -112,7 +114,7 @@ final class Render
 		}
 	}
 
-	private static bool activeWindow = flase;
+	private static bool active = false;
 }
 
 class RenderException : Exception</diff>
      <filename>fgsfds/video/Render.d</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>fgsfds/video/Window.d</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>a82129114567cea8da17340dada8fdf2735105f0</id>
    </parent>
  </parents>
  <author>
    <name>Gabriel Anderson</name>
    <email>zettablade@gmail.com</email>
  </author>
  <url>http://github.com/zettablade/fgsfds/commit/c6f8144bdce35d92f1e5a1d8b31218d4a1258726</url>
  <id>c6f8144bdce35d92f1e5a1d8b31218d4a1258726</id>
  <committed-date>2008-07-29T17:42:11-07:00</committed-date>
  <authored-date>2008-07-29T17:42:11-07:00</authored-date>
  <message>Compiles</message>
  <tree>8fd5d98f729aa6c720b1c0db6db727b93947fe5b</tree>
  <committer>
    <name>Gabriel Anderson</name>
    <email>zettablade@gmail.com</email>
  </committer>
</commit>
