Commit Graph

17 Commits

Author SHA1 Message Date
jordan4ibanez 725f202598 Package glTF spec docs with comments
* git --CRUSH

And try to make this line the same

Now undo my gitignore nonsense

Hail mary

Move these functions to the top

More documentation

Add some serious documentation

Move this to the top

Readability & documentation

Add some documentation

Add spec documentation

Make this more more complex to make it less complex

Move this up & document

Make this more readable for me

Document and make this more readable

Move this out of the way and document it

Update CGLTFMeshFileLoader.cpp

Documentation

Document

Update CGLTFMeshFileLoader.cpp

Document

Move entry point to bottom

Part 5

Part 4

Part 3

Part 2

Allman -> OTBS (readability for me)

Consolidate

Remove unneeded function

These files are annoying

* fix #1

* fix 2

* indentation

* Remove redundant function

* Remove redundant function

* add trailing new line

* Stop an interesting build error with a template

* Code reduction

* Document bytestride

* Add more detail to chain hierarchy

* Dump this huge vscode thing in here for no reason

* Document 3 more functions

* Document copyTcoords

* Dump in (incorrect) scale documentation for node

* Add a readable description

* Fix incorrect getScale

* Add update based on context of function

* Add documentation, fix another one

* Document another

* Document another

* And document another

* Document this nice function

* Bolt in some future use documentation

* Add highlighting for IDE

* Just shovel on more docs to this

* 2 more comments

* I think that's all of them

* Add some wild west debuggin

* And then update this comment

* Bolt on isAccessorNormalized()

* Bolt in an absolute hack job to test

* Now clean this mess up and give josiah ref material

* Fix Josiah's request for scale

* Fix josiah request

* Fix josiah request .vscode

Fix indentation

Fix indentation

Fix indentation

* Unfix getScale()

again
2024-04-18 11:46:36 -05:00
JosiahWI 9c21e2ec1b Handle byte stride on vertex buffers
Vertex buffers (and only vertex buffers) may have a byte stride
specified.
2024-04-18 11:46:36 -05:00
JosiahWI 5aa9f8dcf4 Refactor vertex loading 2024-04-18 11:46:36 -05:00
JosiahWI 311a176cf0 Extract loadPrimitives method from createMesh 2024-04-18 11:46:35 -05:00
JosiahWI f383dd3c84 Rename ModelParser to MeshExtractor 2024-04-18 11:46:35 -05:00
JosiahWI 84a556a723 Mark ModelParser constructors noexcept 2024-04-18 11:46:35 -05:00
JosiahWI bd07af3ad4 Document readVec3DF and getScale 2024-04-18 11:46:35 -05:00
JosiahWI dc9928f978 Add const to numeric parameters 2024-04-18 11:46:35 -05:00
JosiahWI 18ebadc0ab Return vector from getVertices 2024-04-18 11:46:35 -05:00
JosiahWI 3d2a3f4701 Refactor getIndices() 2024-04-18 11:46:35 -05:00
JosiahWI 0d7bcc90bb Add r-value reference constructor to ModelParser 2024-04-18 11:46:35 -05:00
JosiahWI 420742f856 Fix function declaration indents 2024-04-18 11:46:35 -05:00
JosiahWI 9e6c8fa80c Move parsing methods into ModelParser class 2024-04-18 11:46:35 -05:00
JosiahWI f90f7817f6 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 11:46:21 -05:00
JosiahWI 4888c3b765 Remove unneeded tinygltf include from header 2024-04-18 11:44:31 -05:00
JosiahWI ac7bac9a3a Load vertex coordinates from glTF buffer 2024-04-18 11:42:06 -05:00
JosiahWI 40a1edef7f Test invalid JSON
Also converted all .cpp and .h line endings to CRLF in this commit.
2024-04-18 11:42:04 -05:00