Skip to content

Source Code

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:

pen contains platform specific code and abstractions for the following:

put contains platform agnostic code using the abstractions provided by pen, it contains the following modules:

Clone this wiki locally