diff --git a/README.md b/README.md index c6cc299..cf72ae4 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,9 @@ make cocoa make CC=emcc wasm ``` +# Flow of Manigraph +![Flow of Manigraph](doc/flow.svg) + # Design Manigraph is a program designed with sustainability in mind. It is built to be portable, resource-efficient, and easy to maintain and scale. The program @@ -56,3 +59,4 @@ they are connected through dependencies. It also highlights the scenarios where files are not independent of one another, ![File layout](doc/file_layout.svg) + diff --git a/doc/flow.svg b/doc/flow.svg new file mode 100644 index 0000000..a5e1c06 --- /dev/null +++ b/doc/flow.svg @@ -0,0 +1,10 @@ + + + + + + + + StartnoFail?Create WindowStart OPENGLcontextLoad OPENGl shaders,and Fix_Mat toshader.nonoFail?Fail?yesyesExitExityesExitUpdate Rot Mat andLoad to Shaderw/QuaternionLoad Mesh Color toShaderAnim.Index?Update angle,Load Anim. Index andangle to ShaderyesnoUnset angle and Anim.Index and load themto ShaderAngle >2PI ?yesnoDraw MeshMesh is setyesnoFlow of ManigraphInput/RenderPoll inputMain loopMainUpdate ContextWinodw isresized?yesnoUpdate QuaternionScroll isused?yesnoSet up projection andmeshFile isDroped?yesnoKey isPressed?Update ProjectionSet up Anim. IndexyesnoUpdate QuaternionKey isDown?yesnoWindow isClose?yesnoExit \ No newline at end of file