You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alex Dixon edited this page Jan 16, 2021
·
17 revisions
Coding Philosophy
Header files keep nice clean minimal procedural interfaces and cpp files hide the implementations, for this reason hopefully looking in the header files should provide decent code documentation through comments and clearly named functions.
Other key points to coding style:
Minimalistic.
Data oriented.
Shallow call stacks.
Minimise dependencies in headers.
Hide implementation in cpp files.
Prefer pure functions.
Limited use of dynamic polymorphism.
Multithreaded systems using command buffers to communicate.
Navigating the source
pmtech is split into 2 static libraries, pen and put
Browsing the header files of these libraries and using the examples as a guide should hopefully provide decent enough documentation to get started: