From 989565227bd7c992f719314e47ba18c6ca01ebe0 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 13 Jul 2005 01:04:59 +0000 Subject: [PATCH] add SupportsThreadedRendering flag (not in OGL yet) --- stepmania/src/RageDisplay.h | 1 + stepmania/src/RageDisplay_D3D.cpp | 5 +++++ stepmania/src/RageDisplay_D3D.h | 1 + 3 files changed, 7 insertions(+) diff --git a/stepmania/src/RageDisplay.h b/stepmania/src/RageDisplay.h index d4373ec675..1e6bf0ab54 100644 --- a/stepmania/src/RageDisplay.h +++ b/stepmania/src/RageDisplay.h @@ -141,6 +141,7 @@ public: virtual void SetBlendMode( BlendMode mode ) = 0; virtual bool SupportsTextureFormat( PixelFormat pixfmt, bool realtime=false ) = 0; + virtual bool SupportsThreadedRendering() { return false; } /* return 0 if failed or internal texture resource handle * (unsigned in OpenGL, texture pointer in D3D) */ diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index b56ea55453..89204dc28a 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -682,6 +682,11 @@ bool RageDisplay_D3D::SupportsTextureFormat( PixelFormat pixfmt, bool realtime ) return SUCCEEDED( hr ); } +bool RageDisplay_D3D::SupportsThreadedRendering() +{ + return true; +} + RageSurface* RageDisplay_D3D::CreateScreenshot() { #if defined(XBOX) diff --git a/stepmania/src/RageDisplay_D3D.h b/stepmania/src/RageDisplay_D3D.h index 20539564af..e3a6ea82a5 100644 --- a/stepmania/src/RageDisplay_D3D.h +++ b/stepmania/src/RageDisplay_D3D.h @@ -18,6 +18,7 @@ public: VideoModeParams GetVideoModeParams() const; void SetBlendMode( BlendMode mode ); bool SupportsTextureFormat( PixelFormat pixfmt, bool realtime=false ); + bool SupportsThreadedRendering(); unsigned CreateTexture( PixelFormat pixfmt, RageSurface* img,