Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

WinRT: removed an unneeded class created by MSVC 11's Direct3D templa…

…te app
  • Loading branch information
DavidLudwig committed Oct 28, 2012
1 parent 781340d commit b26d4f9fdcfab6dc4a5826b9f8e3046bcadfde58
Showing with 1 addition and 82 deletions.
  1. +0 −1 VisualC/SDL/SDL_VS2012_WinRT.vcxproj
  2. +0 −76 src/video/windowsrt/BasicTimer.h
  3. +1 −5 src/video/windowsrt/SDL_WinRTApp.cpp
@@ -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" />

This file was deleted.

@@ -1,6 +1,5 @@
#include "SDLmain_WinRT_common.h"
#include "SDL_WinRTApp.h"
#include "BasicTimer.h"

extern "C" {
#include "SDL_assert.h"
@@ -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.
}

0 comments on commit b26d4f9

Please sign in to comment.