Răsfoiți Sursa

Added a version number to the encoder that will appear in the usage text.
The purpose is to make it easier to determine if a binary version of the encoder is old or not because the gameplay-deps zip contains an encoder binary.
Cleared LocalDebuggerCommandArguments.

Darryl Gough 12 ani în urmă
părinte
comite
b22d6773ca

+ 2 - 1
tools/encoder/gameplay-encoder.vcxproj.user

@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <LocalDebuggerCommandArguments>-s 72 -p arial.ttf</LocalDebuggerCommandArguments>
+    <LocalDebuggerCommandArguments>
+    </LocalDebuggerCommandArguments>
     <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
     <LocalDebuggerEnvironment>
     </LocalDebuggerEnvironment>

+ 5 - 0
tools/encoder/src/EncoderArguments.cpp

@@ -8,6 +8,9 @@
     #define realpath(A,B)    _fullpath(B,A,PATH_MAX)
 #endif
 
+// The encoder version number should be incremented when a feature is added to the encoder.
+// The encoder version is not the same as the GPB version.
+#define ENCODER_VERSION "1.8.0"
 #define HEIGHTMAP_SIZE_MAX 2049
 
 namespace gameplay
@@ -288,6 +291,8 @@ void EncoderArguments::printUsage() const
     "  -s <size>\tSize of the bitmap font. (in pixels).\n" \
     "  -p\t\tOutput font preview.\n" \
     "  -f Format of font. -f:b (BITMAP), -f:d (DISTANCE_FIELD).\n" \
+    "\n" \
+    "Encoder version: " ENCODER_VERSION "\n" \
     "\n");
     exit(8);
 }