NPL Common Libraries¶
NPL common Libraries contains a rich and open source collection of libraries covering: io, networking, 2d/3d graphics, web server, data structure, and many other software frameworks.
NPL common libraries can be installed in
zip or in plain source code. When you deploy your application, you can choose to use our pre-made zip file or deploy only used files in a zip package by yourself.
If you installed NPL runtime via ParaCraftSDK on windows platform, you will already have NPL common library installed in
If you installed NPL runtime from source code on linux. It does not have NPL common libraries preinstalled. Instead you need to copy or link the
script folder to your project’s working directory.
The folder to link to can be found here, which contains thousands of open source and documented files all written in NPL.
For minimum server-side application development, include this:
For full-fledged heavy 2d/3d application development, include this:
NPL libraries are themselves written in pure NPL scripts. They usually have no external dependencies, but on the low level NPL API provided by NPL runtime. These API is in turn implemented in C/C++ in cross-platform ways.
The documentation for low level API is here https://codedocs.xyz/LiXizhi/NPLRuntime/modules.html
However, it is not particularly useful to read low level API. All you need to do it is to glance over it, and then dive into the source code of NPL libraries here.