Bläddra i källkod

Added GetCompressedTextureSupport() to Graphics. Always true on Direct3D9.

Lasse Öörni 13 år sedan
förälder
incheckning
40709f2d63
3 ändrade filer med 4 tillägg och 1 borttagningar
  1. 1 1
      Docs/GettingStarted.dox
  2. 1 0
      Docs/ScriptAPI.dox
  3. 2 0
      Engine/Graphics/Direct3D9/D3D9Graphics.h

+ 1 - 1
Docs/GettingStarted.dox

@@ -31,7 +31,7 @@ To actually make Urho3D.exe do something useful, it must be supplied with the na
 
 
 \page Running Running Urho3D
 \page Running Running Urho3D
 
 
-For Windows & Direct3D9 mode, Urho3D requires Windows XP or newer, DirectX 9.0c, and a display adapter with SM2.0 support. SM3.0 is highly recommended. For OpenGL mode, an OpenGL 2.0 capable display adapter with EXT_framebuffer_object, EXT_packed_depth_stencil, EXT_texture_compression_s3tc and EXT_texture_filter_anisotropic extensions is required.
+For Windows & Direct3D9 mode, Urho3D requires Windows XP or newer, DirectX 9.0c, and a display adapter with SM2.0 support. SM3.0 is highly recommended. For OpenGL mode, an OpenGL 2.0 capable display adapter with EXT_framebuffer_object, EXT_packed_depth_stencil and EXT_texture_filter_anisotropic extensions is required.
 
 
 The main executable Urho3D.exe in the Bin directory contains all the engine runtime functionality. However, it does not contain any inbuilt logic or application, and therefore must be supplied with the name of the application script file it should run:
 The main executable Urho3D.exe in the Bin directory contains all the engine runtime functionality. However, it does not contain any inbuilt logic or application, and therefore must be supplied with the name of the application script file it should run:
 
 

+ 1 - 0
Docs/ScriptAPI.dox

@@ -2309,6 +2309,7 @@ Properties:<br>
 - bool hardwareDepthSupport (readonly)
 - bool hardwareDepthSupport (readonly)
 - bool hardwareShadowSupport (readonly)
 - bool hardwareShadowSupport (readonly)
 - bool hiresShadowSupport (readonly)
 - bool hiresShadowSupport (readonly)
+- bool compressedTextureSupport (readonly)
 - bool forceSM2
 - bool forceSM2
 - IntVector2[]@ resolutions (readonly)
 - IntVector2[]@ resolutions (readonly)
 - int[]@ multiSampleLevels (readonly)
 - int[]@ multiSampleLevels (readonly)

+ 2 - 0
Engine/Graphics/Direct3D9/D3D9Graphics.h

@@ -221,6 +221,8 @@ public:
     bool GetHiresShadowSupport() const { return hiresShadowSupport_; }
     bool GetHiresShadowSupport() const { return hiresShadowSupport_; }
     /// Return whether stream offset is supported.
     /// Return whether stream offset is supported.
     bool GetStreamOffsetSupport() const { return streamOffsetSupport_; }
     bool GetStreamOffsetSupport() const { return streamOffsetSupport_; }
+    /// Return whether DXT texture compression is supported. Always true on Direct3D9.
+    bool GetCompressedTextureSupport() const { return true; }
     /// Return supported fullscreen resolutions.
     /// Return supported fullscreen resolutions.
     PODVector<IntVector2> GetResolutions() const;
     PODVector<IntVector2> GetResolutions() const;
     /// Return supported multisampling levels.
     /// Return supported multisampling levels.