Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
deftypes [2019/03/12 14:54] – [G3D File Format] admindeftypes [2020/01/09 14:21] – [Notice] admin
Line 156: Line 156:
  
 ===== Notice ===== ===== Notice =====
 +
 +Every G3D file starts with some header information, where is defined which format and options are used.
 +The header format is described below:
  
 <file pascal> <file pascal>
 +  TGorillaG3DFormat = (BSONFormat, JSONFormat);
 +  
   TGorillaG3DOption  = (   TGorillaG3DOption  = (
     None,     None,
Line 167: Line 172:
   TGorillaG3DOptions = Set Of TGorillaG3DOption;   TGorillaG3DOptions = Set Of TGorillaG3DOption;
  
-  /// <summary> 
-  /// The G3D header information which defines the exported format (bson or json) 
-  /// and options like zipped, beautified, ... 
-  /// Also the G3D format version is given for future adjustments. 
-  /// </summary> 
   TGorillaG3DHeader = record   TGorillaG3DHeader = record
-    /// <summary> +    /// DEFAULT-VALUE = "Gorilla3D " 
-    ///   10 characters identify the exporter tool +    /// 10 characters identify the exporter tool
-    /// </summary>+
     Exporter : Array[0..9] of Byte;     Exporter : Array[0..9] of Byte;
-    /// <summary> 
-    ///   Version the file was generated. 
-    /// </summary> 
     Version : Cardinal;     Version : Cardinal;
-    /// <summary> +    /// Datetime when the file was generated. (8 byte float value)
-    ///   Datetime when the file was generated. (8 byte float value) +
-    /// </summary>+
     Timestamp : TDateTime;     Timestamp : TDateTime;
-    /// <summary> +    /// The data format the was stored (bson or json).
-    ///   The data format the was stored (bson or json). +
-    /// </summary>+
     Format  : TGorillaG3DFormat;     Format  : TGorillaG3DFormat;
-    /// <summary> +    /// enum with values above
-    ///   Number of options used for generating the data format +
-    ///   (zipped, beautified, fast-compression, ...) +
-    /// </summary>+
     Options : TGorillaG3DOptions;     Options : TGorillaG3DOptions;
- 
-    constructor Create(AZipped : Boolean; AFormat : TGorillaG3DFormat); 
   end;   end;
 </file> </file>
 +
 +Next step: [[transparency|Transparency]]