changeset 68:c4ece16cf995

Finish cleaning up memory leaks; Starting on screen manager
author koryspansel <koryspansel@bendbroadband.com>
date Fri, 07 Oct 2011 13:31:52 -0700
parents 8e7ebab350e7
children d1be174e5585
files LightClone/LightClone.vcproj LightClone/Source/ResourceManager.cpp LightClone/Source/Screen.cpp LightClone/Source/Screen.h LightClone/Source/ScreenManager.cpp LightClone/Source/ScreenManager.h
diffstat 6 files changed, 186 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/LightClone/LightClone.vcproj	Fri Oct 07 01:15:28 2011 -0700
+++ b/LightClone/LightClone.vcproj	Fri Oct 07 13:31:52 2011 -0700
@@ -306,6 +306,14 @@
 					>
 				</File>
 				<File
+					RelativePath=".\Source\Screen.cpp"
+					>
+				</File>
+				<File
+					RelativePath=".\Source\ScreenManager.cpp"
+					>
+				</File>
+				<File
 					RelativePath=".\Source\Service.cpp"
 					>
 				</File>
@@ -488,6 +496,14 @@
 					>
 				</File>
 				<File
+					RelativePath=".\Source\Screen.h"
+					>
+				</File>
+				<File
+					RelativePath=".\Source\ScreenManager.h"
+					>
+				</File>
+				<File
 					RelativePath=".\Source\Service.h"
 					>
 				</File>
--- a/LightClone/Source/ResourceManager.cpp	Fri Oct 07 01:15:28 2011 -0700
+++ b/LightClone/Source/ResourceManager.cpp	Fri Oct 07 13:31:52 2011 -0700
@@ -88,7 +88,7 @@
 	}
 
 	FontCache::Iterator kFont			= kFontCache.Begin();
-	FontCache::Iterator kFontEnd		= kFontCache.Begin();
+	FontCache::Iterator kFontEnd		= kFontCache.End();
 
 	for(; kFont != kFontEnd; ++kFont)
 	{
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LightClone/Source/Screen.cpp	Fri Oct 07 13:31:52 2011 -0700
@@ -0,0 +1,41 @@
+/*
+ * Screen
+ */
+
+#include "Screen.h"
+
+/*
+ * ~Screen
+ */
+Screen::~Screen()
+{
+}
+
+/*
+ * Initialize
+ */
+ErrorCode Screen::Initialize()
+{
+	return Error_Success;
+}
+
+/*
+ * Terminate
+ */
+void Screen::Terminate()
+{
+}
+
+/*
+ * Update
+ */
+void Screen::Update(float fElapsed)
+{
+}
+
+/*
+ * Render
+ */
+void Screen::Render()
+{
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LightClone/Source/Screen.h	Fri Oct 07 13:31:52 2011 -0700
@@ -0,0 +1,43 @@
+/*
+ * Screen
+ */
+
+#ifndef __SCREEN_H__
+#define __SCREEN_H__
+
+#include "Core.h"
+
+/*
+ * Screen
+ */
+class Screen
+{
+public:
+
+	/*
+	 * ~Screen
+	 */
+	virtual ~Screen();
+
+	/*
+	 * Initialize
+	 */
+	virtual ErrorCode Initialize();
+
+	/*
+	 * Terminate
+	 */
+	virtual void Terminate();
+
+	/*
+	 * Update
+	 */
+	virtual void Update(float fElapsed);
+
+	/*
+	 * Render
+	 */
+	virtual void Render();
+};
+
+#endif //__SCREEN_H__
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LightClone/Source/ScreenManager.cpp	Fri Oct 07 13:31:52 2011 -0700
@@ -0,0 +1,41 @@
+/*
+ * ScreenManager
+ */
+
+#include "ScreenManager.h"
+
+/*
+ * ScreenManager
+ */
+ScreenManager::ScreenManager()
+{
+}
+
+/*
+ * Initialize
+ */
+ErrorCode ScreenManager::Initialize()
+{
+	return Error_Success;
+}
+
+/*
+ * Terminate
+ */
+void ScreenManager::Terminate()
+{
+}
+
+/*
+ * Update
+ */
+void ScreenManager::Update(float fElapsed)
+{
+}
+
+/*
+ * Render
+ */
+void ScreenManager::Render()
+{
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LightClone/Source/ScreenManager.h	Fri Oct 07 13:31:52 2011 -0700
@@ -0,0 +1,44 @@
+/*
+ * ScreenManager
+ */
+
+#ifndef __SCREENMANAGER_H__
+#define __SCREENMANAGER_H__
+
+#include "Core.h"
+#include "Screen.h"
+
+/*
+ * ScreenManager
+ */
+class ScreenManager
+{
+public:
+
+	/*
+	 * ScreenManager
+	 */
+	ScreenManager();
+
+	/*
+	 * Initialize
+	 */
+	ErrorCode Initialize();
+
+	/*
+	 * Terminate
+	 */
+	void Terminate();
+
+	/*
+	 * Update
+	 */
+	void Update(float fElapsed);
+
+	/*
+	 * Render
+	 */
+	void Render();
+};
+
+#endif //__SCREENMANAGER_H__