# HG changeset patch # User koryspansel # Date 1318019512 25200 # Node ID c4ece16cf995c842b9b49b98f3d8965b6dc160e6 # Parent 8e7ebab350e7a1bee56fa43bf460d6c7811cebd8 Finish cleaning up memory leaks; Starting on screen manager diff -r 8e7ebab350e7 -r c4ece16cf995 LightClone/LightClone.vcproj --- 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 @@ > + + + + @@ -488,6 +496,14 @@ > + + + + diff -r 8e7ebab350e7 -r c4ece16cf995 LightClone/Source/ResourceManager.cpp --- 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) { diff -r 8e7ebab350e7 -r c4ece16cf995 LightClone/Source/Screen.cpp --- /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() +{ +} diff -r 8e7ebab350e7 -r c4ece16cf995 LightClone/Source/Screen.h --- /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__ diff -r 8e7ebab350e7 -r c4ece16cf995 LightClone/Source/ScreenManager.cpp --- /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() +{ +} diff -r 8e7ebab350e7 -r c4ece16cf995 LightClone/Source/ScreenManager.h --- /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__