Skip to content

Commit

Permalink
Create a Draco header container
Browse files Browse the repository at this point in the history
  • Loading branch information
B3zaleel committed Jul 14, 2024
1 parent abd0465 commit cec1284
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Draco/IO/DracoHeader.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Draco.IO;

public class DracoHeader(byte majorVersion, byte minorVersion, byte encoderType, byte encoderMethod, ushort flags)
{
public byte MajorVersion { get; } = majorVersion;
public byte MinorVersion { get; } = minorVersion;
public ushort Version { get; } = Constants.BitStreamVersion(majorVersion, minorVersion);
public byte EncoderType { get; } = encoderType;
public byte EncoderMethod { get; } = encoderMethod;
public ushort Flags { get; } = flags;
}

0 comments on commit cec1284

Please sign in to comment.