Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
WinRT: removed an unneeded class created by MSVC 11's Direct3D templa…
Browse files Browse the repository at this point in the history
…te app
  • Loading branch information
DavidLudwig committed Oct 28, 2012
1 parent 781340d commit b26d4f9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 82 deletions.
1 change: 0 additions & 1 deletion VisualC/SDL/SDL_VS2012_WinRT.vcxproj
Expand Up @@ -238,7 +238,6 @@
<ClInclude Include="..\..\src\video\SDL_RLEaccel_c.h" />
<ClInclude Include="..\..\src\video\SDL_shape_internals.h" />
<ClInclude Include="..\..\src\video\SDL_sysvideo.h" />
<ClInclude Include="..\..\src\video\windowsrt\BasicTimer.h" />
<ClInclude Include="..\..\src\video\windowsrt\CubeRenderer.h" />
<ClInclude Include="..\..\src\video\windowsrt\Direct3DBase.h" />
<ClInclude Include="..\..\src\video\windowsrt\DirectXHelper.h" />
Expand Down
76 changes: 0 additions & 76 deletions src/video/windowsrt/BasicTimer.h

This file was deleted.

6 changes: 1 addition & 5 deletions src/video/windowsrt/SDL_WinRTApp.cpp
@@ -1,6 +1,5 @@
#include "SDLmain_WinRT_common.h"
#include "SDL_WinRTApp.h"
#include "BasicTimer.h"

extern "C" {
#include "SDL_assert.h"
Expand Down Expand Up @@ -90,15 +89,12 @@ void SDL_WinRTApp::Run()
SDL_WinRT_main(argc, argv);
}

BasicTimer^ timer = ref new BasicTimer();

while (!m_windowClosed)
{
if (m_windowVisible)
{
timer->Update();
CoreWindow::GetForCurrentThread()->Dispatcher->ProcessEvents(CoreProcessEventsOption::ProcessAllIfPresent);
m_renderer->Update(timer->Total, timer->Delta);
m_renderer->Update(0.0f, 0.0f);
m_renderer->Render();
m_renderer->Present(); // This call is synchronized to the display frame rate.
}
Expand Down

0 comments on commit b26d4f9

Please sign in to comment.