Commit Graph

15 Commits

Author SHA1 Message Date
JosiahWI 53c92b0b1d Refactor vertex loading 2024-04-18 07:33:37 -05:00
JosiahWI 0896aae906 Extract loadPrimitives method from createMesh 2024-04-18 07:33:36 -05:00
JosiahWI 3930bd8c85 Rename ModelParser to MeshExtractor 2024-04-18 07:32:53 -05:00
JosiahWI 0f73c30a1f Mark ModelParser constructors noexcept 2024-04-18 07:31:37 -05:00
JosiahWI 22f6012d2e Document readVec3DF and getScale 2024-04-18 07:30:47 -05:00
JosiahWI fd41ee02df Add const to numeric parameters 2024-04-18 07:28:34 -05:00
JosiahWI 60a5f5746f Return vector from getVertices 2024-04-18 07:28:03 -05:00
JosiahWI ea22b642c1 Refactor getIndices() 2024-04-18 07:27:42 -05:00
JosiahWI 50da04297f Add r-value reference constructor to ModelParser 2024-04-18 07:27:20 -05:00
JosiahWI 85fdf95afa Fix function declaration indents 2024-04-18 07:26:48 -05:00
JosiahWI 79bfd8afbe Move parsing methods into ModelParser class 2024-04-18 07:26:11 -05:00
JosiahWI 7e0d57b4fe Reorganize CGLTFMeshFileLoader help functions
I moved them all into static methods and changed the ordering in the
source file so that createMesh() would be close to the top of the file.
I also corrected formatting in some of the function declarations since I
had to change them anyway.
2024-04-18 07:25:34 -05:00
JosiahWI eaebd34c4e Remove unneeded tinygltf include from header 2024-04-18 07:24:01 -05:00
JosiahWI a20ac715ce Load vertex coordinates from glTF buffer 2024-04-18 07:20:22 -05:00
JosiahWI 21c3c16557 Test invalid JSON
Also converted all .cpp and .h line endings to CRLF in this commit.
2024-04-18 07:19:30 -05:00