2
0
Эх сурвалжийг харах

Merge pull request #3852 from krishty/3ds-namespace

style fix: namespace instead of class with public static members
Kim Kulling 4 жил өмнө
parent
commit
71c48581f3

+ 3 - 13
code/AssetLib/3DS/3DSHelper.h

@@ -61,20 +61,10 @@ namespace D3DS {
 #include <assimp/Compiler/pushpack1.h>
 #include <assimp/Compiler/pushpack1.h>
 
 
 // ---------------------------------------------------------------------------
 // ---------------------------------------------------------------------------
-/** Discreet3DS class: Helper class for loading 3ds files. Defines chunks
-*  and data structures.
+/** Defines chunks and data structures.
 */
 */
-class Discreet3DS {
-private:
-    Discreet3DS() AI_NO_EXCEPT {
-        // empty
-    }
-
-    ~Discreet3DS() {
-        // empty
-    }
+namespace Discreet3DS {
 
 
-public:
     //! data structure for a single chunk in a .3ds file
     //! data structure for a single chunk in a .3ds file
     struct Chunk {
     struct Chunk {
         uint16_t Flag;
         uint16_t Flag;
@@ -314,7 +304,7 @@ public:
         // camera sub-chunks
         // camera sub-chunks
         CHUNK_CAM_RANGES = 0x4720
         CHUNK_CAM_RANGES = 0x4720
     };
     };
-};
+}
 
 
 // ---------------------------------------------------------------------------
 // ---------------------------------------------------------------------------
 /** Helper structure representing a 3ds mesh face */
 /** Helper structure representing a 3ds mesh face */