Thanks to visit codestin.com
Credit goes to github.com

Skip to content

arnkoen/poki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poki

Poki (pronounced pokee) is a small WIP framework for games and creative coding.
Features:

  • model loading (gltf/glb and m3d)
  • gltf keyframe animations
  • m3d skeletal animations
  • qoi, png, webp and dds image/texture loading
  • ogg sound loading and spatial playback
  • phong shading

Where is the ui-stuff? And where are the functions for 2D drawing? What about noise? There are other libraries, which already do these things really well and are really easy to integrate with poki. Have a look at sokol_imgui, sokol_gp and FastNoiseLite. For text rendering and generating 3D-geometry you can have a look here.
If you still feel, that there are essential things missing, feel free to open an issue.

Audio has been moved outside the core. This is because it does not support sound input, which is not optimal for some creative coding use cases. Have a look at libs like miniaudio or rtAudio, if you need it. Also, if you'd like some advanced audio engine for games, you should have a look at SoLoud.

The built-in phong shader uses the alpha channel of the diffuse texture as a specular map. If you want to pack your image accordingly, you can use pk-image.
For tools regarding the m3d model format, have a look here https://gitlab.com/bztsrc/model3d.

The license for poki itself is the uLicense. For the licenses of the dependencies, please have a look at the headers in the "deps" folder.

Thanks:

building

There is a small CMake script as an example, but building poki is very easy, you just need to compile poki.c. It's recommended to also define the sokol graphics backend in your build script (SOKOL_GLCORE, SOKOL_D3D11, etc...). If you don't want to use sokol_app.h, you can define PK_NO_SAPP in your build script. The Cmake script should work on Linux and Windows, but the project itself should build on macOS and for the browser via emscripten too.
I do not have the time and ressources to test compilation on mac and clang on a regular basis. Feel free to open an issue, if you run into problems.
For rebuilding the shaders, you'll need sokol-shdc somewhere in your path. For more info have a look at the sokol-shdc docs and at the script inside the "shaders" directory.

About

small creative coding framework

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages