-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from B3zaleel/implement-ctm-loading
Implement ctm loading
- Loading branch information
Showing
19 changed files
with
704 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,8 @@ StyleCopReport.xml | |
*_h.h | ||
*.ilk | ||
*.meta | ||
*obj/ | ||
!*Obj/ | ||
*.iobj | ||
*.pch | ||
*.pdb | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace ThreeDModels.Format.Ctm; | ||
|
||
public enum CompressionMethod | ||
{ | ||
RAW = 0x00574152, | ||
MG1 = 0x0031474d, | ||
MG2 = 0x0032474d, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace ThreeDModels.Format.Ctm; | ||
|
||
public static class Constants | ||
{ | ||
public const int Version = 0x00000005; | ||
public const int PackedDataPropsSize = 5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using ThreeDModels.Format.Ctm.Elements; | ||
|
||
namespace ThreeDModels.Format.Ctm; | ||
|
||
public class Ctm | ||
{ | ||
public List<Vertex> Vertices { get; set; } = []; | ||
public List<Triangle> Triangles { get; set; } = []; | ||
public List<UvMap> UvMaps { get; set; } = []; | ||
public List<AttributeMap> AttributeMaps { get; set; } = []; | ||
public required CompressionMethod CompressionMethod { get; set; } = CompressionMethod.RAW; | ||
public int Flags { get; set; } = 0; | ||
public string Comment { get; set; } = string.Empty; | ||
} |
Oops, something went wrong.